public RescueBlockUnit(int orientation,
                        RescueBlock parentBlock,
                        RescueUnit parentUnit,
                        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)
 {
     nativeNdx = Create_RescueBlockUnit2(orientation,
                                         (parentBlock == null) ? 0 : parentBlock.nativeNdx,
                                         (parentUnit == null) ? 0 : parentUnit.nativeNdx,
                                         i_origin,
                                         i_step,
                                         i_lowbound,
                                         i_count,
                                         j_origin,
                                         j_step,
                                         j_lowbound,
                                         j_count,
                                         k_lowbound,
                                         k_count,
                                         missingValue);
 }
        public bool RemoveFrom(RescueBlock existingObject)
        {
            bool myReturn = RemoveFrom3(nativeNdx
                                        , (existingObject == null) ? 0 : existingObject.nativeNdx);

            return(myReturn);
        }
        public RescueBlock Block()
        {
            long returnNdx = Block7(nativeNdx);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueBlock myReturn = new RescueBlock(returnNdx);
                return(myReturn);
            }
        }
        public RescueBlock ObjectIdentifiedBy(long identifier)
        {
            long returnNdx = ObjectIdentifiedBy7(nativeNdx
                                                 , identifier);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueBlock myReturn = new RescueBlock(returnNdx);
                return(myReturn);
            }
        }
        public RescueBlock ObjectNamed(string nameIn)
        {
            long returnNdx = ObjectNamed6(nativeNdx
                                          , nameIn);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueBlock myReturn = new RescueBlock(returnNdx);
                return(myReturn);
            }
        }
        public RescueBlock NthObject(long ordinal)
        {
            long returnNdx = NthObject5(nativeNdx
                                        , ordinal);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueBlock myReturn = new RescueBlock(returnNdx);
                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);
 }
Exemple #9
0
        public RescueHistoryObject NthObject(long ordinal)
        {
            long returnNdx = NthObject4(nativeNdx
                                        , ordinal);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueHistoryObject myReturn = new RescueHistoryObject(returnNdx);
                int isA = myReturn.IsA();
                switch (isA)
                {
                case RescueObject.R_RescueBlock:
                    myReturn = new RescueBlock(returnNdx);
                    break;

                case RescueObject.R_RescueBlockUnitSide:
                    myReturn = new RescueBlockUnitSide(returnNdx);
                    break;

                case RescueObject.R_RescueCoordinateSystem:
                    myReturn = new RescueCoordinateSystem(returnNdx);
                    break;

                case RescueObject.R_RescueDataContainer:
                    myReturn = new RescueDataContainer(returnNdx);
                    break;

                case RescueObject.R_RescueFaultIntersection:
                    myReturn = new RescueFaultIntersection(returnNdx);
                    break;

                case RescueObject.R_RescueGeobodyPart:
                    myReturn = new RescueGeobodyPart(returnNdx);
                    break;

                case RescueObject.R_RescueGeobodyVolume:
                    myReturn = new RescueGeobodyVolume(returnNdx);
                    break;

                case RescueObject.R_RescueGeometry:
                    myReturn = new RescueGeometry(returnNdx);
                    break;

                case RescueObject.R_RescueGrid:
                    myReturn = new RescueGrid(returnNdx);
                    break;

                case RescueObject.R_RescueHistory:
                    myReturn = new RescueHistory(returnNdx);
                    break;

                case RescueObject.R_RescueIJSurface:
                    myReturn = new RescueIJSurface(returnNdx);
                    break;

                case RescueObject.R_RescueLogicalOrder:
                    myReturn = new RescueLogicalOrder(returnNdx);
                    break;

                case RescueObject.R_RescueLogicalOrderEntry:
                    myReturn = new RescueLogicalOrderEntry(returnNdx);
                    break;

                case RescueObject.R_RescueLookup:
                    myReturn = new RescueLookup(returnNdx);
                    break;

                case RescueObject.R_RescueMacroVolume:
                    myReturn = new RescueMacroVolume(returnNdx);
                    break;

                case RescueObject.R_RescueModel:
                    myReturn = new RescueModel(returnNdx);
                    break;

                case RescueObject.R_RescueModelPropertyGroup:
                    myReturn = new RescueModelPropertyGroup(returnNdx);
                    break;

                case RescueObject.R_RescueProperty:
                    myReturn = new RescueProperty(returnNdx);
                    break;

                case RescueObject.R_RescuePropertyGroup:
                    myReturn = new RescuePropertyGroup(returnNdx);
                    break;

                case RescueObject.R_RescueTimeStepGroup:
                    myReturn = new RescueTimeStepGroup(returnNdx);
                    break;

                case RescueObject.R_RescueWellbore:
                    myReturn = new RescueWellbore(returnNdx);
                    break;

                case RescueObject.R_RescueWellboreProperty:
                    myReturn = new RescueWellboreProperty(returnNdx);
                    break;

                case RescueObject.R_RescueWireframe:
                    myReturn = new RescueWireframe(returnNdx);
                    break;

                case RescueObject.R_RescueWireframeOwner:
                    myReturn = new RescueWireframeOwner(returnNdx);
                    break;
                }
                return(myReturn);
            }
        }
 public RescueBlockUnit(RescueBlock parentBlock,
                        RescueUnit parentUnit)
 {
     nativeNdx = Create_RescueBlockUnit0((parentBlock == null) ? 0 : parentBlock.nativeNdx,
                                         (parentUnit == null) ? 0 : parentUnit.nativeNdx);
 }
 public void AddTo(RescueBlock newObject)
 {
     AddTo2(nativeNdx
            , (newObject == null) ? 0 : newObject.nativeNdx);
 }