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