def __init__(self, imageData=None): MarkerWindowInteractor.__init__(self) ThreeDimRenderWindow.__init__(self) if shared.debug: print "PlaneWidgetsXYZ.__init__()" self.vtksurface = None self.interactButtons = (1,2,3) self.sharedPicker = vtk.vtkCellPicker() #self.sharedPicker.SetTolerance(0.005) self.SetPicker(self.sharedPicker) self.pwX = vtk.vtkImagePlaneWidget() self.pwY = vtk.vtkImagePlaneWidget() self.pwZ = vtk.vtkImagePlaneWidget() self.axes_labels = [] self.set_image_data(imageData) self.Render() self.vtk_translation = np.zeros(3, 'd') self.vtk_rotation = np.zeros(3, 'd')
def __init__(self, imageData=None): PyLocatorRenderWindow.__init__(self) ThreeDimRenderWindow.__init__(self) self.surface_actors = {} self.AddObserver('KeyPressEvent', self.key_press)