Example #1
0
        private void HookErrorWindowEvents()
        {
            if (null == this.ErrorWindow)
            {
                this.ErrorWindow  = Kitware.VTK.vtkOutputWindow.GetInstance();
                this.ErrorHandler = new Kitware.VTK.vtkObject.vtkObjectEventHandler(ErrorWindow_ErrorHandler);

                this.ErrorWindow.ErrorEvt += this.ErrorHandler;
            }
        }
Example #2
0
        public new static vtkOutputWindow New()
        {
            vtkOutputWindow result      = null;
            uint            mteStatus   = 0u;
            uint            mteIndex    = 4294967295u;
            uint            rawRefCount = 0u;
            IntPtr          intPtr      = vtkOutputWindow.vtkOutputWindow_New(ref mteStatus, ref mteIndex, ref rawRefCount);

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

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkOutputWindow = (vtkOutputWindow)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkOutputWindow.Register(null);
                }
            }
            return(vtkOutputWindow);
        }
Example #4
0
        public static vtkOutputWindow GetInstance()
        {
            vtkOutputWindow vtkOutputWindow = null;
            uint            mteStatus       = 0u;
            uint            mteIndex        = 4294967295u;
            uint            rawRefCount     = 0u;
            IntPtr          intPtr          = vtkOutputWindow.vtkOutputWindow_GetInstance_06(ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkOutputWindow = (vtkOutputWindow)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkOutputWindow.Register(null);
                }
            }
            return(vtkOutputWindow);
        }
Example #5
0
        private void HookErrorWindowEvents()
        {
            if (null == this.ErrorWindow)
            {
                this.ErrorWindow = Kitware.VTK.vtkOutputWindow.GetInstance();
                this.ErrorHandler = new Kitware.VTK.vtkObject.vtkObjectEventHandler(ErrorWindow_ErrorHandler);

                this.ErrorWindow.ErrorEvt += this.ErrorHandler;
            }
        }
Example #6
0
 public static void SetInstance(vtkOutputWindow instance)
 {
     vtkOutputWindow.vtkOutputWindow_SetInstance_14((instance == null) ? default(HandleRef) : instance.GetCppThis());
 }