diff --git a/invesalius/data/cursor_actors.py b/invesalius/data/cursor_actors.py index d715a14..6d1ed94 100644 --- a/invesalius/data/cursor_actors.py +++ b/invesalius/data/cursor_actors.py @@ -49,6 +49,7 @@ class CursorCircle: """ Function to plot the circle """ + print "Building circle cursor", self.orientation r = self.radius t = 0 @@ -68,6 +69,8 @@ class CursorCircle: self.mapper.SetInputConnection(self.segment.GetOutputPort()) self.actor.SetMapper(self.mapper) + self.actor.GetProperty().SetOpacity(self.opacity) + self.actor.GetProperty().SetColor(self.colour) self.actor.PickableOff() def GenerateCicleSegment(self, t): @@ -210,6 +213,7 @@ class CursorRectangle: """ Function to plot the Retangle """ + print "Building rectangle cursor", self.orientation mapper = vtk.vtkPolyDataMapper() self.retangle = vtk.vtkCubeSource() self.actor = actor = vtk.vtkActor() diff --git a/invesalius/data/viewer_slice.py b/invesalius/data/viewer_slice.py index a7acef4..c6f7ad6 100755 --- a/invesalius/data/viewer_slice.py +++ b/invesalius/data/viewer_slice.py @@ -522,9 +522,8 @@ class Viewer(wx.Panel): colour_wx = pubsub_evt.data colour_vtk = [colour/float(255) for colour in colour_wx] self._brush_cursor_colour = colour_vtk - if self.cursor: - self.cursor.SetColour(colour_vtk) - self.interactor.Render() + if self.slice_data.cursor: + self.slice_data.cursor.SetColour(colour_vtk) def ChangeBrushActor(self, pubsub_evt): brush_type = pubsub_evt.data -- libgit2 0.21.2