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)
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)
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()
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()