1 #ifndef __vtkMRMLAnnotationSplineNode_h 2 #define __vtkMRMLAnnotationSplineNode_h 22 virtual
vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
25 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "AnnotationRuler";}
33 virtual void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
46 void * ) VTK_OVERRIDE;
56 vtkGetStringMacro(DistanceAnnotationFormat);
57 vtkSetStringMacro(DistanceAnnotationFormat);
61 double GetDistanceAnnotationScale();
62 void SetDistanceAnnotationScale(
double init);
66 int GetDistanceAnnotationVisibility();
67 void SetDistanceAnnotationVisibility(
int flag);
69 int SetRuler(vtkIdType line1Id,
int sel,
int vis);
73 vtkGetMacro(Resolution,
int);
74 vtkSetMacro(Resolution,
int);
78 double *GetPointColour();
79 void SetPointColour(
double initColor[3]);
83 double *GetLineColour();
84 void SetLineColour(
double newColor[3]);
88 double *GetDistanceAnnotationTextColour();
89 void SetDistanceAnnotationTextColour(
double initColor[3]);
93 double GetSplineMeasurement();
94 void SetSplineMeasurement(
double val);
100 SplineNodeAddedEvent = 0,
116 int AddControlPoint(
double newControl[3],
int selectedFlag,
int visibleFlag);
void Initialize(vtkMRMLScene *mrmlScene) VTK_OVERRIDE
virtual void PrintAnnotationInfo(ostream &os, vtkIndent indent, int titleFlag=1) VTK_OVERRIDE
int AddControlPoint(double newControl[3], int selectedFlag, int visibleFlag)
void operator=(const vtkMRMLAnnotationLinesNode &)
virtual void ReadXMLAttributes(const char **atts) VTK_OVERRIDE
Read node attributes from XML file.
char * DistanceAnnotationFormat
int SetControlPoint(int id, double newControl[3], int selectedFlag, int visibleFlag)
A set of MRML Nodes that supports serialization and undo/redo.
virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE
Copy the node's attributes to this object.
virtual void WriteXML(ostream &of, int indent) VTK_OVERRIDE
Write this node's information to a MRML file in XML format.
double * GetControlPointCoordinates(vtkIdType id)
static vtkMRMLAnnotationLinesNode * New()
Abstract Superclass for all specific types of MRML nodes.
virtual void ProcessMRMLEvents(vtkObject *, unsigned long, void *) VTK_OVERRIDE
alternative method to propagate events generated in Display nodes
void UpdateScene(vtkMRMLScene *scene) VTK_OVERRIDE
Finds the storage node and read the data.