Slicer 5.4
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkMRMLVolumeRenderingDisplayNode.h
Go to the documentation of this file.
1/*=auto=========================================================================
2
3 Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
4
5 See COPYRIGHT.txt
6 or http://www.slicer.org/copyright/copyright.txt for details.
7
8 Program: 3D Slicer
9 Module: $RCSfile: vtkMRMLVolumeRenderingDisplayNode.h,v $
10 Date: $Date: 2006/03/19 17:12:29 $
11 Version: $Revision: 1.3 $
12
13=========================================================================auto=*/
14
15#ifndef __vtkMRMLVolumeRenderingDisplayNode_h
16#define __vtkMRMLVolumeRenderingDisplayNode_h
17
18// Volume Rendering includes
19#include "vtkSlicerVolumeRenderingModuleMRMLExport.h"
20
21// MRML includes
22#include "vtkMRMLDisplayNode.h"
23class vtkIntArray;
27class vtkMRMLViewNode;
30
34class VTK_SLICER_VOLUMERENDERING_MODULE_MRML_EXPORT vtkMRMLVolumeRenderingDisplayNode
35 : public vtkMRMLDisplayNode
36{
37public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42 void ReadXMLAttributes( const char** atts) override;
43
45 void WriteXML(ostream& of, int indent) override;
46
48 void Copy(vtkMRMLNode *node) override;
49
50 const char* GetVolumeNodeID();
52
54 void SetAndObserveVolumePropertyNodeID(const char *volumePropertyNodeID);
56
58 void SetAndObserveShaderPropertyNodeID(const char *shaderPropertyNodeID);
61
62 const char* GetROINodeID();
63 void SetAndObserveROINodeID(const char *roiNodeID);
68
70
72
73 vtkSetMacro(CroppingEnabled,int);
74 vtkGetMacro(CroppingEnabled,int);
75 vtkBooleanMacro(CroppingEnabled,int);
76
77 vtkSetVector2Macro(Threshold, double);
78 vtkGetVectorMacro(Threshold, double, 2);
79
80 vtkGetMacro(FollowVolumeDisplayNode, int);
81 vtkSetMacro(FollowVolumeDisplayNode, int);
82
83 vtkGetMacro(IgnoreVolumeDisplayNodeThreshold, int);
84 vtkSetMacro(IgnoreVolumeDisplayNodeThreshold, int);
85
86 vtkGetMacro(UseSingleVolumeProperty, int);
87 vtkSetMacro(UseSingleVolumeProperty, int);
88
89 vtkSetVector2Macro(WindowLevel, double);
90 vtkGetVectorMacro(WindowLevel, double, 2);
91
92protected:
97
98 void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData) override;
99
102 static const char* ROINodeReferenceRole;
106
107protected:
110
111 double Threshold[2];
112
116
118
120 double WindowLevel[2];
121};
122
123#endif
Abstract class that contains graphical display properties for displayable nodes.
MRML node to represent an ROI markup.
Abstract Superclass for all specific types of MRML nodes.
A set of MRML Nodes that supports serialization and undo/redo.
vtkMRMLShaderPropertyNode volume shader custom code and custom uniform variables defined by users or ...
MRML node to represent a 3D view.
MRML node for representing a volume (image stack).
vtkMRMLVolumePropertyNode contains the transfer functions (scalar opacity, color and gradient opacity...
int FollowVolumeDisplayNode
Follow window/level and thresholding setting in volume display node.
vtkMRMLVolumeRenderingDisplayNode(const vtkMRMLVolumeRenderingDisplayNode &)
int CroppingEnabled
Flag indicating whether cropping is enabled.
vtkMRMLShaderPropertyNode * GetShaderPropertyNode()
void PrintSelf(ostream &os, vtkIndent indent) override
vtkMRMLVolumeNode * GetVolumeNode()
vtkMRMLShaderPropertyNode * GetOrCreateShaderPropertyNode(vtkMRMLScene *mrmlScene)
void operator=(const vtkMRMLVolumeRenderingDisplayNode &)
vtkMRMLVolumePropertyNode * GetVolumePropertyNode()
vtkMRMLViewNode * GetFirstViewNode()
vtkMRMLMarkupsROINode * GetMarkupsROINode()
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object.
void SetAndObserveVolumePropertyNodeID(const char *volumePropertyNodeID)
vtkMRMLDisplayableNode * GetROINode()
vtkMRMLAnnotationROINode * GetAnnotationROINode()
Deprecated. Use GetROINode() instead for retrieving the markups ROI node.
void SetAndObserveROINodeID(const char *roiNodeID)
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData) override
void SetAndObserveShaderPropertyNodeID(const char *shaderPropertyNodeID)
void ReadXMLAttributes(const char **atts) override
Set node attributes.