Esempio n. 1
0
        public new static vtkImageImport New()
        {
            vtkImageImport result      = null;
            uint           mteStatus   = 0u;
            uint           mteIndex    = 4294967295u;
            uint           rawRefCount = 0u;
            IntPtr         intPtr      = vtkImageImport.vtkImageImport_New(ref mteStatus, ref mteIndex, ref rawRefCount);

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

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