コード例 #1
0
        public new static vtkExtractRectilinearGrid New()
        {
            vtkExtractRectilinearGrid result = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkExtractRectilinearGrid.vtkExtractRectilinearGrid_New(ref mteStatus, ref mteIndex, ref rawRefCount);

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

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