예제 #1
0
        public new static vtkGenericAdaptorCell SafeDownCast(vtkObjectBase o)
        {
            vtkGenericAdaptorCell vtkGenericAdaptorCell = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkGenericAdaptorCell.vtkGenericAdaptorCell_SafeDownCast_44((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkGenericAdaptorCell = (vtkGenericAdaptorCell)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkGenericAdaptorCell.Register(null);
                }
            }
            return(vtkGenericAdaptorCell);
        }
        public vtkGenericAdaptorCell GetLastCell()
        {
            vtkGenericAdaptorCell vtkGenericAdaptorCell = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkGenericInterpolatedVelocityField.vtkGenericInterpolatedVelocityField_GetLastCell_10(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkGenericAdaptorCell = (vtkGenericAdaptorCell)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkGenericAdaptorCell.Register(null);
                }
            }
            return(vtkGenericAdaptorCell);
        }
예제 #3
0
        public virtual vtkGenericAdaptorCell GetGenericCell()
        {
            vtkGenericAdaptorCell vtkGenericAdaptorCell = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkGenericSubdivisionErrorMetric.vtkGenericSubdivisionErrorMetric_GetGenericCell_03(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkGenericAdaptorCell = (vtkGenericAdaptorCell)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkGenericAdaptorCell.Register(null);
                }
            }
            return(vtkGenericAdaptorCell);
        }