24 #ifndef __vtkMRMLTransformDisplayNode_h 25 #define __vtkMRMLTransformDisplayNode_h 29 class vtkColorTransferFunction;
45 void PrintSelf ( ostream& os, vtkIndent indent ) VTK_OVERRIDE;
71 virtual
void ReadXMLAttributes ( const
char** atts ) VTK_OVERRIDE;
75 virtual
void WriteXML ( ostream& of,
int indent ) VTK_OVERRIDE;
80 virtual
void Copy (
vtkMRMLNode *node ) VTK_OVERRIDE;
84 virtual const
char* GetNodeTagName ( ) VTK_OVERRIDE {
return "TransformDisplayNode";}
90 void * ) VTK_OVERRIDE;
104 void SetAndObserveGlyphPointsNode(
vtkMRMLNode* node);
106 vtkSetMacro(VisualizationMode,
int);
107 vtkGetMacro(VisualizationMode,
int);
110 static const char* ConvertVisualizationModeToString(
int modeIndex);
113 static int ConvertVisualizationModeFromString(
const char* modeString);
116 vtkSetMacro(GlyphSpacingMm,
double);
117 vtkGetMacro(GlyphSpacingMm,
double);
118 vtkSetMacro(GlyphScalePercent,
double);
119 vtkGetMacro(GlyphScalePercent,
double);
120 vtkSetMacro(GlyphDisplayRangeMaxMm,
double);
121 vtkGetMacro(GlyphDisplayRangeMaxMm,
double);
122 vtkSetMacro(GlyphDisplayRangeMinMm,
double);
123 vtkGetMacro(GlyphDisplayRangeMinMm,
double);
124 vtkSetMacro(GlyphType,
int);
125 vtkGetMacro(GlyphType,
int);
128 static const char* ConvertGlyphTypeToString(
int typeIndex);
131 static int ConvertGlyphTypeFromString(
const char* typeString);
133 vtkSetMacro(GlyphTipLengthPercent,
double);
134 vtkGetMacro(GlyphTipLengthPercent,
double);
135 vtkSetMacro(GlyphDiameterMm,
double);
136 vtkGetMacro(GlyphDiameterMm,
double);
137 vtkSetMacro(GlyphShaftDiameterPercent,
double);
138 vtkGetMacro(GlyphShaftDiameterPercent,
double);
139 vtkSetMacro(GlyphResolution,
int);
140 vtkGetMacro(GlyphResolution,
int);
143 vtkSetMacro(GridScalePercent,
double);
144 vtkGetMacro(GridScalePercent,
double);
145 vtkSetMacro(GridSpacingMm,
double);
146 vtkGetMacro(GridSpacingMm,
double);
147 vtkSetMacro(GridLineDiameterMm,
double);
148 vtkGetMacro(GridLineDiameterMm,
double);
149 vtkSetMacro(GridResolutionMm,
double);
150 vtkGetMacro(GridResolutionMm,
double);
151 vtkSetMacro(GridShowNonWarped,
bool);
152 vtkGetMacro(GridShowNonWarped,
bool);
155 unsigned int GetNumberOfContourLevels();
156 void SetContourLevelsMm(
double*,
int size);
157 double* GetContourLevelsMm();
158 void GetContourLevelsMm(std::vector<double> &levels);
159 std::string GetContourLevelsMmAsString();
160 void SetContourLevelsMmFromString(
const char* str);
161 static std::vector<double> ConvertContourLevelsFromString(
const char* str);
162 static std::string ConvertContourLevelsToString(
const std::vector<double>& levels);
163 static bool IsContourLevelEqual(
const std::vector<double>& levels1,
const std::vector<double>& levels2);
165 vtkSetMacro(ContourResolutionMm,
double);
166 vtkGetMacro(ContourResolutionMm,
double);
167 vtkSetMacro(ContourOpacity,
double);
168 vtkGetMacro(ContourOpacity,
double);
171 vtkGetMacro(EditorVisibility,
bool);
172 vtkSetMacro(EditorVisibility,
bool);
173 vtkBooleanMacro(EditorVisibility,
bool);
174 vtkGetMacro(EditorSliceIntersectionVisibility,
bool);
175 vtkSetMacro(EditorSliceIntersectionVisibility,
bool);
176 vtkBooleanMacro(EditorSliceIntersectionVisibility,
bool);
177 vtkGetMacro(EditorTranslationEnabled,
bool);
178 vtkSetMacro(EditorTranslationEnabled,
bool);
179 vtkBooleanMacro(EditorTranslationEnabled,
bool);
180 vtkGetMacro(EditorRotationEnabled,
bool);
181 vtkSetMacro(EditorRotationEnabled,
bool);
182 vtkBooleanMacro(EditorRotationEnabled,
bool);
183 vtkGetMacro(EditorScalingEnabled,
bool);
184 vtkSetMacro(EditorScalingEnabled,
bool);
185 vtkBooleanMacro(EditorScalingEnabled,
bool);
189 void UpdateEditorBounds();
192 TransformUpdateEditorBoundsEvent = 2750
197 void SetDefaultColors();
199 vtkColorTransferFunction* GetColorMap();
200 void SetColorMap(vtkColorTransferFunction* newColorMap);
204 static std::vector<double> StringToDoubleVector(
const char* sourceStr);
205 static std::string DoubleVectorToString(
const double* values,
int numberOfValues);
virtual void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData) VTK_OVERRIDE
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
void operator=(const vtkMRMLDisplayNode &)
MRML node for representing a volume (image stack).
MRML node to represent procedurally defined color information.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Abstract class that contains graphical display properties for displayable nodes.
Abstract Superclass for all specific types of MRML nodes.