Commit e304a8060dc103adbd9e90555e35b6201236d782

Authored by tfmoraes
1 parent 2a157607

ENH: On changing the cursor using the slice number from the previous cursor

invesalius/data/viewer_slice.py
... ... @@ -167,9 +167,9 @@ class Viewer(wx.Panel):
167 167 #self.cursor = cursor
168 168  
169 169 cursor.SetOrientation(self.orientation)
170   - coordinates = {"SAGITAL": [self.slice_number, 0, 0],
171   - "CORONAL": [0, self.slice_number, 0],
172   - "AXIAL": [0, 0, self.slice_number]}
  170 + coordinates = {"SAGITAL": [slice_data.number, 0, 0],
  171 + "CORONAL": [0, slice_data.number, 0],
  172 + "AXIAL": [0, 0, slice_data.number]}
173 173 cursor.SetPosition(coordinates[self.orientation])
174 174 cursor.SetSpacing(self.imagedata.GetSpacing())
175 175 cursor.SetColour(self._brush_cursor_colour)
... ...
invesalius/data/volume.py
... ... @@ -365,6 +365,10 @@ class Volume():
365 365 volume_mapper.SetInput(image2.GetOutput())
366 366 volume_mapper.IntermixIntersectingGeometryOn()
367 367  
  368 + # TODO: Look to this
  369 + #volume_mapper = vtk.vtkVolumeTextureMapper2D()
  370 + #volume_mapper.SetInput(image2.GetOutput())
  371 +
368 372 #Cut Plane
369 373 CutPlane(image2.GetOutput(), volume_mapper)
370 374  
... ...