Beispiel #1
0
        public new vtkOpenGLLight NewInstance()
        {
            vtkOpenGLLight result      = null;
            uint           mteStatus   = 0u;
            uint           mteIndex    = 4294967295u;
            uint           rawRefCount = 0u;
            IntPtr         intPtr      = vtkOpenGLLight.vtkOpenGLLight_NewInstance_04(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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

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