9 #ifndef __vtkMRMLAnnotationLineDisplayNode_h 10 #define __vtkMRMLAnnotationLineDisplayNode_h 14 #include "vtkSlicerAnnotationsModuleMRMLExport.h" 22 void PrintSelf ( ostream& os, vtkIndent indent )
override;
36 void WriteXML ( ostream& of,
int indent )
override;
59 void SetLineThickness(
double thickness);
60 vtkGetMacro(LineThickness,
double);
63 vtkSetClampMacro(LabelPosition,
double, 0.0, 1.0);
64 vtkGetMacro(LabelPosition,
double);
67 vtkBooleanMacro(LabelVisibility,
int);
68 vtkSetMacro(LabelVisibility,
int);
69 vtkGetMacro(LabelVisibility,
int);
72 vtkSetMacro(TickSpacing,
double);
73 vtkGetMacro(TickSpacing,
double);
76 vtkSetMacro(MaxTicks,
int);
77 vtkGetMacro(MaxTicks,
int);
80 inline void SliceProjectionDashedOn();
83 inline void SliceProjectionDashedOff();
86 inline void SliceProjectionColoredWhenParallelOn();
89 inline void SliceProjectionColoredWhenParallelOff();
92 inline void SliceProjectionThickerOnTopOn();
95 inline void SliceProjectionThickerOnTopOff();
99 inline void SliceProjectionUseRulerColorOn();
103 inline void SliceProjectionUseRulerColorOff();
115 ProjectionDashed = 0x02,
116 ProjectionColoredWhenParallel = 0x04,
117 ProjectionThickerOnTop = 0x08,
118 ProjectionUseRulerColor = 0x10
123 vtkSetMacro(UnderLineThickness,
double);
124 vtkGetMacro(UnderLineThickness,
double);
128 vtkSetMacro(OverLineThickness,
double);
129 vtkGetMacro(OverLineThickness,
double);
156 this->SetSliceProjection( this->GetSliceProjection() |
164 this->SetSliceProjection( this->GetSliceProjection() &
172 this->SetSliceProjection( this->GetSliceProjection() |
180 this->SetSliceProjection( this->GetSliceProjection() &
188 this->SetSliceProjection( this->GetSliceProjection() |
196 this->SetSliceProjection( this->GetSliceProjection() &
204 this->SetSliceProjection( this->GetSliceProjection() |
212 this->SetSliceProjection( this->GetSliceProjection() &
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
void UpdateScene(vtkMRMLScene *scene) override
Finds the storage node and read the data.
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file
void SliceProjectionUseRulerColorOff()
void SliceProjectionColoredWhenParallelOff()
Set line color unchanged when parallel to slice plane.
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void CreateBackup()
Creates a backup of the current MRML state of this node and keeps a reference.
void SliceProjectionDashedOff()
Set SliceProjection to Plain.
void SliceProjectionThickerOnTopOff()
Set line thickness uniform.
void SliceProjectionDashedOn()
Set SliceProjection to Dashed.
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
A set of MRML Nodes that supports serialization and undo/redo.
virtual void RestoreBackup()
void Copy(vtkMRMLNode *node) override
Copy node contents from another node of the same type. Does not copy node ID and Scene. Performs deep copy - an independent copy is created from all data, including bulk data.
void SliceProjectionUseRulerColorOn()
void SliceProjectionColoredWhenParallelOn()
Set line colored when parallel to slice plane.
void operator=(const vtkMRMLAnnotationDisplayNode &)
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
void SliceProjectionThickerOnTopOn()
Set line thicker when on top of the plane, thiner when under.
static vtkMRMLAnnotationDisplayNode * New()
Abstract Superclass for all specific types of MRML nodes.
void ProcessMRMLEvents(vtkObject *, unsigned long, void *) override
double UnderLineThickness