24 #ifndef __vtkMRMLMarkupsDisplayNode_h 25 #define __vtkMRMLMarkupsDisplayNode_h 27 #include "vtkSlicerMarkupsModuleMRMLExport.h" 37 void PrintSelf ( ostream& os, vtkIndent indent ) VTK_OVERRIDE;
46 virtual
void ReadXMLAttributes ( const
char** atts ) VTK_OVERRIDE;
49 virtual
void WriteXML ( ostream& of,
int indent ) VTK_OVERRIDE;
53 virtual
void Copy (
vtkMRMLNode *node ) VTK_OVERRIDE;
56 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "MarkupsDisplay";};
64 void * ) VTK_OVERRIDE;
67 vtkGetMacro(TextScale,
double);
68 vtkSetMacro(TextScale,
double);
96 void SetGlyphType(
int type);
97 vtkGetMacro(GlyphType,
int);
99 int GlyphTypeIs3D(
int glyphType);
103 const char* GetGlyphTypeAsString();
104 const char* GetGlyphTypeAsString(
int g);
105 void SetGlyphTypeFromString(
const char *glyphString);
108 void SetGlyphScale(
double scale);
109 vtkGetMacro(GlyphScale,
double);
115 ResetToDefaultsEvent = 19001,
123 vtkSetMacro(SliceProjection,
int);
124 vtkGetMacro(SliceProjection,
int);
127 inline void SliceProjectionOn();
130 inline void SliceProjectionOff();
134 vtkSetVector3Macro(SliceProjectionColor,
double);
135 vtkGetVector3Macro(SliceProjectionColor,
double);
139 vtkSetClampMacro(SliceProjectionOpacity,
double, 0.0, 1.0);
140 vtkGetMacro(SliceProjectionOpacity,
double);
144 inline void SliceProjectionUseFiducialColorOn();
148 inline void SliceProjectionUseFiducialColorOff();
152 inline bool GetSliceProjectionUseFiducialColor();
156 inline void SliceProjectionOutlinedBehindSlicePlaneOn();
160 inline void SliceProjectionOutlinedBehindSlicePlaneOff();
164 inline bool GetSliceProjectionOutlinedBehindSlicePlane();
174 ProjectionOff = 0x00,
176 ProjectionUseFiducialColor = 0x02,
177 ProjectionOutlinedBehindSlicePlane = 0x04
189 static const char* GlyphTypesNames[GlyphMax+2];
192 double SliceProjectionColor[3];
199 this->SetSliceProjection( this->GetSliceProjection() |
206 this->SetSliceProjection( this->GetSliceProjection() &
213 this->SetSliceProjection( this->GetSliceProjection() |
220 this->SetSliceProjection( this->GetSliceProjection() &
227 if (this->GetSliceProjection() &
228 this->ProjectionUseFiducialColor)
241 this->SetSliceProjection( this->GetSliceProjection() |
248 this->SetSliceProjection( this->GetSliceProjection() &
255 if (this->GetSliceProjection() &
256 this->ProjectionOutlinedBehindSlicePlane)
void SliceProjectionUseFiducialColorOff()
bool GetSliceProjectionOutlinedBehindSlicePlane()
int GetMaximumGlyphType()
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.
bool GetSliceProjectionUseFiducialColor()
A set of MRML Nodes that supports serialization and undo/redo.
void SliceProjectionOutlinedBehindSlicePlaneOn()
void SliceProjectionUseFiducialColorOn()
void operator=(const vtkMRMLDisplayNode &)
int GetMinimumGlyphType()
Return the min/max glyph types, for iterating over them in tcl.
void SliceProjectionOutlinedBehindSlicePlaneOff()
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void SliceProjectionOn()
Set SliceProjection to On.
Abstract class that contains graphical display properties for displayable nodes.
double SliceProjectionOpacity
Abstract Superclass for all specific types of MRML nodes.
virtual void UpdateScene(vtkMRMLScene *scene) VTK_OVERRIDE
Finds the storage node and read the data.
void SliceProjectionOff()
Set SliceProjection to Off.