Esempio n. 1
0
        public virtual vtkCellLocator GetLocator()
        {
            vtkCellLocator vtkCellLocator = null;
            uint           mteStatus      = 0u;
            uint           mteIndex       = 4294967295u;
            uint           rawRefCount    = 0u;
            IntPtr         intPtr         = vtkIterativeClosestPointTransform.vtkIterativeClosestPointTransform_GetLocator_05(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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

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