예제 #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)
예제 #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)
예제 #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()
예제 #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()