Example #1
0
  def hideGUI(self):
    plot = self.get3DPlot()

    if plot:
        plot.hideWidgets()
    elif self.bg != True:
      from vtk_ui.manager import get_manager, manager_exists
      if manager_exists(self.renWin.GetInteractor()):
          manager = get_manager(self.renWin.GetInteractor())
          self.renWin.RemoveRenderer(manager.renderer)
Example #2
0
  def hideGUI(self):
    plot = self.get3DPlot()

    if plot:
        plot.hideWidgets()
    elif self.bg != True:
      from vtk_ui.manager import get_manager, manager_exists
      if manager_exists(self.renWin.GetInteractor()):
          manager = get_manager(self.renWin.GetInteractor())
          self.renWin.RemoveRenderer(manager.renderer)
          self.renWin.RemoveRenderer(manager.actor_renderer)
Example #3
0
  def showGUI(self, render=True):
    plot = self.get3DPlot()

    if plot:
        plot.showWidgets()
    elif self.bg != True:
      from vtk_ui.manager import get_manager, manager_exists
      if manager_exists(self.renWin.GetInteractor()):
          manager = get_manager(self.renWin.GetInteractor())
          self.renWin.AddRenderer(manager.renderer)
          # Bring the manager's renderer to the top of the stack
          manager.elevate()
      if render:
          self.renWin.Render()
Example #4
0
  def showGUI(self, render=True):
    plot = self.get3DPlot()

    if plot:
        plot.showWidgets()
    elif self.bg != True:
      from vtk_ui.manager import get_manager, manager_exists
      if manager_exists(self.renWin.GetInteractor()):
          manager = get_manager(self.renWin.GetInteractor())
          self.renWin.AddRenderer(manager.renderer)
          self.renWin.AddRenderer(manager.actor_renderer)
          # Bring the manager's renderer to the top of the stack
          manager.elevate()
      if render:
          self.renWin.Render()