From e304a8060dc103adbd9e90555e35b6201236d782 Mon Sep 17 00:00:00 2001 From: tfmoraes Date: Wed, 12 Aug 2009 12:14:31 +0000 Subject: [PATCH] ENH: On changing the cursor using the slice number from the previous cursor --- invesalius/data/viewer_slice.py | 6 +++--- invesalius/data/volume.py | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/invesalius/data/viewer_slice.py b/invesalius/data/viewer_slice.py index 544f759..7f1b736 100755 --- a/invesalius/data/viewer_slice.py +++ b/invesalius/data/viewer_slice.py @@ -167,9 +167,9 @@ class Viewer(wx.Panel): #self.cursor = cursor cursor.SetOrientation(self.orientation) - coordinates = {"SAGITAL": [self.slice_number, 0, 0], - "CORONAL": [0, self.slice_number, 0], - "AXIAL": [0, 0, self.slice_number]} + coordinates = {"SAGITAL": [slice_data.number, 0, 0], + "CORONAL": [0, slice_data.number, 0], + "AXIAL": [0, 0, slice_data.number]} cursor.SetPosition(coordinates[self.orientation]) cursor.SetSpacing(self.imagedata.GetSpacing()) cursor.SetColour(self._brush_cursor_colour) diff --git a/invesalius/data/volume.py b/invesalius/data/volume.py index 97dcde6..162376b 100755 --- a/invesalius/data/volume.py +++ b/invesalius/data/volume.py @@ -365,6 +365,10 @@ class Volume(): volume_mapper.SetInput(image2.GetOutput()) volume_mapper.IntermixIntersectingGeometryOn() + # TODO: Look to this + #volume_mapper = vtk.vtkVolumeTextureMapper2D() + #volume_mapper.SetInput(image2.GetOutput()) + #Cut Plane CutPlane(image2.GetOutput(), volume_mapper) -- libgit2 0.21.2