Example #1
0
 def on_remove_actors(self):
     """removes multiple vtk actors"""
     gui = self.parent()
     if gui is not None:
         if self.nodes_edit.style is not None:
             self.nodes_edit.style.remove_actors()
         if self.elements_edit.style is not None:
             self.elements_edit.style.remove_actors()
         remove_actors_from_gui(gui, self.actors, render=True, force_render=True)
         gui.Render()
     self.actors = []
Example #2
0
 def on_remove_actors(self):
     """removes multiple vtk actors"""
     gui = self.parent()
     if gui is not None:
         remove_actors_from_gui(gui, self.actors, render=True)
     self.actors = []
Example #3
0
 def remove_highlight_actor(self):
     """removes the highlighted actor"""
     gui = self.win_parent
     remove_actors_from_gui(gui, self.actors, render=True)
     self.actors = []