Commit ffac2338a739b8531caf97574a077c120a259f9a

Authored by tatiana
1 parent 6b02c8b8

ENC: sorting raycasting name list

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
invesalius/data/volume.py
... ... @@ -200,7 +200,7 @@ class Volume():
200 200 print ">>>", color_preset
201 201 if color_preset != "No CLUT":
202 202 p = plistlib.readPlist(
203   - os.path.join(constants.RAYCASTING_PRESETS_DIRECTORY,
  203 + os.path.join(const.RAYCASTING_PRESETS_DIRECTORY,
204 204 'color_list', color_preset + '.plist'))
205 205 print "nome clut", p
206 206 r = p['Red']
... ... @@ -377,7 +377,7 @@ class Volume():
377 377 # Changed the vtkVolumeRayCast to vtkFixedPointVolumeRayCastMapper
378 378 # because it's faster and the image is better
379 379 # TODO: To test if it's true.
380   - if constants.TYPE_RAYCASTING_MAPPER:
  380 + if const.TYPE_RAYCASTING_MAPPER:
381 381 volume_mapper = vtk.vtkVolumeRayCastMapper()
382 382 #volume_mapper.AutoAdjustSampleDistancesOff()
383 383 volume_mapper.SetInput(image2.GetOutput())
... ...