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

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

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