コード例 #1
0
        public virtual vtkIncrementalPointLocator GetLocator()
        {
            vtkIncrementalPointLocator vtkIncrementalPointLocator = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkCleanPolyData.vtkCleanPolyData_GetLocator_14(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkIncrementalPointLocator = (vtkIncrementalPointLocator)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkIncrementalPointLocator.Register(null);
                }
            }
            return(vtkIncrementalPointLocator);
        }
コード例 #2
0
        public new static vtkIncrementalPointLocator SafeDownCast(vtkObjectBase o)
        {
            vtkIncrementalPointLocator vtkIncrementalPointLocator = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkIncrementalPointLocator.vtkIncrementalPointLocator_SafeDownCast_13((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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