15 #ifndef __vtkSlicerVolumeRenderingLogic_h 16 #define __vtkSlicerVolumeRenderingLogic_h 19 #include "vtkSlicerVolumeRenderingModuleLogicExport.h" 38 class vtkColorTransferFunction;
40 class vtkPiecewiseFunction;
41 class vtkScalarsToColors;
42 class vtkVolumeProperty;
67 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
73 void RegisterRenderingMethod(
const char* methodName,
74 const char* displayNodeClassName);
76 std::map<std::string, std::string> GetRenderingMethods();
81 vtkSetStringMacro(DefaultRenderingMethod);
82 vtkGetStringMacro(DefaultRenderingMethod);
88 vtkSetMacro(UseLinearRamp,
bool);
89 vtkGetMacro(UseLinearRamp,
bool);
118 void AddAllVolumeRenderingDisplayNodes();
122 void RemoveAllVolumeRenderingDisplayNodes();
133 void CopyDisplayToVolumeRenderingDisplayNode(
142 void CopyScalarDisplayToVolumeRenderingDisplayNode(
151 void CopyLabelMapDisplayToVolumeRenderingDisplayNode(
170 void SetThresholdToVolumeProp(
171 double scalarRange[2],
double threshold[2],
172 vtkVolumeProperty* node,
173 bool linearRamp =
false,
bool stayUpAtUpperLimit =
false);
197 void SetWindowLevelToVolumeProp(
198 double scalarRange[2],
double windowLevel[2],
199 vtkLookupTable* lut, vtkVolumeProperty* node);
204 void SetGradientOpacityToVolumeProp(
205 double scalarRange[2], vtkVolumeProperty* node);
210 void SetLabelMapToVolumeProp(
211 vtkScalarsToColors* lut, vtkVolumeProperty* node);
232 char *displayNodeID);
299 bool IsDifferentFunction(vtkPiecewiseFunction* function1,
300 vtkPiecewiseFunction* function2)
const;
304 bool IsDifferentFunction(vtkColorTransferFunction* function1,
305 vtkColorTransferFunction* function2)
const;
static vtkSlicerModuleLogic * New()
The Usual vtk class functions.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
MRML node for representing a volume display attributes.
static const char * GetIconVolumeReferenceRole()
std::vector< vtkMRMLNode * > DisplayNodesType
virtual void OnMRMLNodeModified(vtkMRMLNode *)
A set of MRML Nodes that supports serialization and undo/redo.
virtual void OnMRMLSceneNodeAdded(vtkMRMLNode *)
virtual void RegisterNodes()
virtual void OnMRMLSceneNodeRemoved(vtkMRMLNode *)
vtkMRMLScene * PresetsScene
char * DefaultRenderingMethod
virtual void ObserveMRMLScene()
virtual void SetMRMLSceneInternal(vtkMRMLScene *newScene)
MRML node for representing a volume (image stack).
MRML node to represent a 3D view.
std::map< std::string, std::string > RenderingMethods
MRML node for representing a volume (image stack).
Abstract Superclass for all specific types of MRML nodes.
DisplayNodesType DisplayNodes
vtkMRMLVolumePropertyNode contains the transfer functions (scalar opacity, color and gradient opacity...
MRML node for representing a volume display attributes.
MRML node for representing a volume display attributes.