Esempio n. 1
0
        public virtual vtkLocator GetSpatialRepresentation()
        {
            vtkLocator vtkLocator  = null;
            uint       mteStatus   = 0u;
            uint       mteIndex    = 4294967295u;
            uint       rawRefCount = 0u;
            IntPtr     intPtr      = vtkSpatialRepresentationFilter.vtkSpatialRepresentationFilter_GetSpatialRepresentation_05(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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

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