1 #ifndef __vtkMRMLAnnotationSplineNode_h 2 #define __vtkMRMLAnnotationSplineNode_h 33 void WriteXML(ostream& of,
int indent)
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);
int AddControlPoint(double newControl[3], int selectedFlag, int visibleFlag)
void ProcessMRMLEvents(vtkObject *, unsigned long, void *) override
alternative method to propagate events generated in Display nodes
void operator=(const vtkMRMLAnnotationLinesNode &)
void PrintAnnotationInfo(ostream &os, vtkIndent indent, int titleFlag=1) override
void UpdateScene(vtkMRMLScene *scene) override
Finds the storage node and read the data
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
char * DistanceAnnotationFormat
int SetControlPoint(int id, double newControl[3], int selectedFlag, int visibleFlag)
A set of MRML Nodes that supports serialization and undo/redo.
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object
double * GetControlPointCoordinates(vtkIdType id)
static vtkMRMLAnnotationLinesNode * New()
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
Abstract Superclass for all specific types of MRML nodes.
void Initialize(vtkMRMLScene *mrmlScene) override
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file