Пример #1
0
        public new static vtkGPUInfo New()
        {
            vtkGPUInfo result      = null;
            uint       mteStatus   = 0u;
            uint       mteIndex    = 4294967295u;
            uint       rawRefCount = 0u;
            IntPtr     intPtr      = vtkGPUInfo.vtkGPUInfo_New(ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkGPUInfo)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
Пример #2
0
        public virtual vtkGPUInfo GetGPUInfo(int i)
        {
            vtkGPUInfo vtkGPUInfo  = null;
            uint       mteStatus   = 0u;
            uint       mteIndex    = 4294967295u;
            uint       rawRefCount = 0u;
            IntPtr     intPtr      = vtkGPUInfoList.vtkGPUInfoList_GetGPUInfo_01(base.GetCppThis(), i, ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkGPUInfo = (vtkGPUInfo)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkGPUInfo.Register(null);
                }
            }
            return(vtkGPUInfo);
        }
Пример #3
0
        public new static vtkGPUInfo SafeDownCast(vtkObjectBase o)
        {
            vtkGPUInfo vtkGPUInfo  = null;
            uint       mteStatus   = 0u;
            uint       mteIndex    = 4294967295u;
            uint       rawRefCount = 0u;
            IntPtr     intPtr      = vtkGPUInfo.vtkGPUInfo_SafeDownCast_08((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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