9 #ifndef __vtkMRMLAnnotationLineDisplayNode_h 10 #define __vtkMRMLAnnotationLineDisplayNode_h 14 #include "vtkSlicerAnnotationsModuleMRMLExport.h" 22 void PrintSelf ( ostream& os, vtkIndent indent ) VTK_OVERRIDE;
32 virtual
void ReadXMLAttributes ( const
char** atts ) VTK_OVERRIDE;
36 virtual
void WriteXML ( ostream& of,
int indent ) VTK_OVERRIDE;
41 virtual
void Copy (
vtkMRMLNode *node ) VTK_OVERRIDE;
45 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "AnnotationLineDisplay";}
55 void * ) VTK_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);
134 void RestoreBackup() VTK_OVERRIDE;
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() &
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void SliceProjectionUseRulerColorOff()
void SliceProjectionColoredWhenParallelOff()
Set line color unchanged when parallel to slice plane.
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.
A set of MRML Nodes that supports serialization and undo/redo.
virtual void ProcessMRMLEvents(vtkObject *, unsigned long, void *) VTK_OVERRIDE
void SliceProjectionUseRulerColorOn()
void SliceProjectionColoredWhenParallelOn()
Set line colored when parallel to slice plane.
virtual void UpdateScene(vtkMRMLScene *scene) VTK_OVERRIDE
Finds the storage node and read the data.
void operator=(const vtkMRMLAnnotationDisplayNode &)
virtual vtkMRMLNode * CreateNodeInstance() VTK_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.
double UnderLineThickness