public RescueSurface ParentSurface()
        {
            long returnNdx = ParentSurface16(nativeNdx);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueSurface myReturn = new RescueSurface(returnNdx);
                int           isA      = myReturn.IsA();
                switch (isA)
                {
                case RescueObject.R_RescueReferenceSurface:
                    myReturn = new RescueReferenceSurface(returnNdx);
                    break;

                case RescueObject.R_RescueSection:
                    myReturn = new RescueSection(returnNdx);
                    break;
                }
                return(myReturn);
            }
        }
        public bool RemoveFrom(RescueReferenceSurface existingObject)
        {
            bool myReturn = RemoveFrom3(nativeNdx
                                        , (existingObject == null) ? 0 : existingObject.nativeNdx);

            return(myReturn);
        }
        public RescueReferenceSurface ObjectNamed(string nameIn)
        {
            long returnNdx = ObjectNamed6(nativeNdx
                                          , nameIn);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueReferenceSurface myReturn = new RescueReferenceSurface(returnNdx);
                int isA = myReturn.IsA();
                switch (isA)
                {
                case RescueObject.R_RescueBlockUnitHorizonSurface:
                    myReturn = new RescueBlockUnitHorizonSurface(returnNdx);
                    break;
                }
                return(myReturn);
            }
        }
        public RescueReferenceSurface NthObject(long ordinal)
        {
            long returnNdx = NthObject5(nativeNdx
                                        , ordinal);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueReferenceSurface myReturn = new RescueReferenceSurface(returnNdx);
                int isA = myReturn.IsA();
                switch (isA)
                {
                case RescueObject.R_RescueBlockUnitHorizonSurface:
                    myReturn = new RescueBlockUnitHorizonSurface(returnNdx);
                    break;
                }
                return(myReturn);
            }
        }
        public RescueReferenceSurface ObjectIdentifiedBy(long identifier)
        {
            long returnNdx = ObjectIdentifiedBy7(nativeNdx
                                                 , identifier);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueReferenceSurface myReturn = new RescueReferenceSurface(returnNdx);
                int isA = myReturn.IsA();
                switch (isA)
                {
                case RescueObject.R_RescueBlockUnitHorizonSurface:
                    myReturn = new RescueBlockUnitHorizonSurface(returnNdx);
                    break;
                }
                return(myReturn);
            }
        }
 public RescueBlockUnit(int orientation,
                        RescueBlock parentBlock,
                        RescueUnit parentUnit,
                        float i_origin,
                        float i_step,
                        int i_lowbound,
                        int i_count,
                        float j_origin,
                        float j_step,
                        int j_lowbound,
                        int j_count,
                        int k_lowbound,
                        int k_count,
                        float missingValue,
                        RescueReferenceSurface referenceSurfaceIn,
                        float referenceOffsetIn,
                        float thicknessIn,
                        int onOffLapIn)
 {
     nativeNdx = Create_RescueBlockUnit4(orientation,
                                         (parentBlock == null) ? 0 : parentBlock.nativeNdx,
                                         (parentUnit == null) ? 0 : parentUnit.nativeNdx,
                                         i_origin,
                                         i_step,
                                         (long)i_lowbound,
                                         (long)i_count,
                                         j_origin,
                                         j_step,
                                         (long)j_lowbound,
                                         (long)j_count,
                                         (long)k_lowbound,
                                         (long)k_count,
                                         missingValue,
                                         (referenceSurfaceIn == null) ? 0 : referenceSurfaceIn.nativeNdx,
                                         referenceOffsetIn,
                                         thicknessIn,
                                         onOffLapIn);
 }
 public RescueBlockUnit(int orientation,
                        RescueBlock parentBlock,
                        RescueUnit parentUnit,
                        float i_origin,
                        float i_step,
                        int i_lowbound,
                        int i_count,
                        float j_origin,
                        float j_step,
                        int j_lowbound,
                        int j_count,
                        int k_lowbound,
                        int k_count,
                        float missingValue,
                        RescueReferenceSurface topSurfaceIn,
                        float topOffsetIn,
                        RescueReferenceSurface bottomSurfaceIn,
                        float bottomOffsetIn)
 {
     nativeNdx = Create_RescueBlockUnit3(orientation,
                                         (parentBlock == null) ? 0 : parentBlock.nativeNdx,
                                         (parentUnit == null) ? 0 : parentUnit.nativeNdx,
                                         i_origin,
                                         i_step,
                                         (long)i_lowbound,
                                         (long)i_count,
                                         j_origin,
                                         j_step,
                                         (long)j_lowbound,
                                         (long)j_count,
                                         (long)k_lowbound,
                                         (long)k_count,
                                         missingValue,
                                         (topSurfaceIn == null) ? 0 : topSurfaceIn.nativeNdx,
                                         topOffsetIn,
                                         (bottomSurfaceIn == null) ? 0 : bottomSurfaceIn.nativeNdx,
                                         bottomOffsetIn);
 }
Esempio n. 8
0
 public RescueGeobodyPart(int orientation,
                          RescueGeobody parentBody,
                          float i_origin,
                          float i_step,
                          long i_lowbound,
                          long i_count,
                          float j_origin,
                          float j_step,
                          long j_lowbound,
                          long j_count,
                          long k_lowbound,
                          long k_count,
                          float missingValue,
                          RescueReferenceSurface topSurfaceIn,
                          float topOffsetIn,
                          RescueReferenceSurface bottomSurfaceIn,
                          float bottomOffsetIn)
 {
     nativeNdx = Create_RescueGeobodyPart3(orientation,
                                           (parentBody == null) ? 0 : parentBody.nativeNdx,
                                           i_origin,
                                           i_step,
                                           i_lowbound,
                                           i_count,
                                           j_origin,
                                           j_step,
                                           j_lowbound,
                                           j_count,
                                           k_lowbound,
                                           k_count,
                                           missingValue,
                                           (topSurfaceIn == null) ? 0 : topSurfaceIn.nativeNdx,
                                           topOffsetIn,
                                           (bottomSurfaceIn == null) ? 0 : bottomSurfaceIn.nativeNdx,
                                           bottomOffsetIn);
 }
Esempio n. 9
0
 public RescueGeobodyPart(int orientation,
                          RescueGeobody parentBody,
                          float i_origin,
                          float i_step,
                          long i_lowbound,
                          long i_count,
                          float j_origin,
                          float j_step,
                          long j_lowbound,
                          long j_count,
                          long k_lowbound,
                          long k_count,
                          float missingValue,
                          RescueReferenceSurface referenceSurfaceIn,
                          float referenceOffsetIn,
                          float thicknessIn,
                          int onOffLapIn)
 {
     nativeNdx = Create_RescueGeobodyPart4(orientation,
                                           (parentBody == null) ? 0 : parentBody.nativeNdx,
                                           i_origin,
                                           i_step,
                                           i_lowbound,
                                           i_count,
                                           j_origin,
                                           j_step,
                                           j_lowbound,
                                           j_count,
                                           k_lowbound,
                                           k_count,
                                           missingValue,
                                           (referenceSurfaceIn == null) ? 0 : referenceSurfaceIn.nativeNdx,
                                           referenceOffsetIn,
                                           thicknessIn,
                                           onOffLapIn);
 }
 public void AddTo(RescueReferenceSurface newObject)
 {
     AddTo2(nativeNdx
            , (newObject == null) ? 0 : newObject.nativeNdx);
 }