public virtual vtkGenericCellIterator NewCellIterator(int dim)
        {
            vtkGenericCellIterator vtkGenericCellIterator = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkGenericDataSet.vtkGenericDataSet_NewCellIterator_25(base.GetCppThis(), dim, ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkGenericCellIterator = (vtkGenericCellIterator)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkGenericCellIterator.Register(null);
                }
            }
            return(vtkGenericCellIterator);
        }
Esempio n. 2
0
        public new static vtkGenericCellIterator SafeDownCast(vtkObjectBase o)
        {
            vtkGenericCellIterator vtkGenericCellIterator = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkGenericCellIterator.vtkGenericCellIterator_SafeDownCast_10((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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