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

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

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkInteractorStyleSwitch = (vtkInteractorStyleSwitch)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkInteractorStyleSwitch.Register(null);
                }
            }
            return(vtkInteractorStyleSwitch);
        }
Example #3
0
 protected override void OnHandleCreated(EventArgs e)
 {
     if (!base.DesignMode)
     {
         vtkLogoWidget vtkLogoWidget = new vtkLogoWidget();
         this.m_Renderer     = vtkRenderer.New();
         this.m_RenderWindow = vtkRenderWindow.New();
         IntPtr xDisplay = this.GetXDisplay();
         bool   flag     = false;
         if (IntPtr.Zero != xDisplay)
         {
             flag = true;
         }
         if (flag)
         {
             this.m_RenderWindowInteractor = vtkGenericRenderWindowInteractor.New();
             this.m_RenderWindow.SetDisplayId(xDisplay);
         }
         else
         {
             this.m_RenderWindowInteractor = vtkRenderWindowInteractor.New();
         }
         vtkInteractorStyleSwitch vtkInteractorStyleSwitch = this.m_RenderWindowInteractor.GetInteractorStyle() as vtkInteractorStyleSwitch;
         if (null != vtkInteractorStyleSwitch)
         {
             vtkInteractorStyleSwitch.SetCurrentStyleToTrackballCamera();
         }
         this.m_RenderWindow.SetParentId(base.Handle);
         this.m_RenderWindow.AddRenderer(this.m_Renderer);
         if (!flag)
         {
             this.AttachInteractor();
         }
         vtkLogoWidget.Dispose();
     }
     base.OnHandleCreated(e);
 }