9 #ifndef __vtkMRMLAnnotationLinesNode_h 10 #define __vtkMRMLAnnotationLinesNode_h 43 void WriteXML(ostream& of,
int indent)
override;
67 int AddLine(
int ctrlPtIdStart,
int ctrlPtIdEnd,
int selectedFlag,
int visibleFlag);
68 int SetLine(
int id,
int ctrlPtIdStart,
int ctrlPtIdEnd,
int selectedFlag,
int visibleFlag);
70 int SetControlPoint(
int id,
double newControl[3],
int selectedFlag,
int visibleFlag);
74 double localPoint[4]={0,0,0,1};
76 return this->
SetControlPoint(
id, localPoint, selectedFlag, visibleFlag);
79 void DeleteLine(
int id);
80 int GetEndPointsId(vtkIdType lineID, vtkIdType ctrlPtID[2]);
81 int GetNumberOfLines();
85 void CreateAnnotationLineDisplayNode();
91 NUM_LINE_ATTRIBUTE_TYPES
118 void ResetLinesAttributesAll();
void ResetAnnotations() override
vtkMRMLCopyContentDefaultMacro(vtkMRMLAnnotationControlPointsNode)
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file
int SetControlPointWorldCoordinates(int id, double newControl[3], int selectedFlag, int visibleFlag)
void Initialize(vtkMRMLScene *mrmlScene) override
void ProcessMRMLEvents(vtkObject *, unsigned long, void *) override
alternative method to propagate events generated in Display nodes
static vtkMRMLAnnotationControlPointsNode * New()
void PrintAnnotationInfo(ostream &os, vtkIndent indent, int titleFlag=1) override
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
A set of MRML Nodes that supports serialization and undo/redo.
A superclass for other storage nodes.
vtkMRMLStorageNode * CreateDefaultStorageNode() override
void operator=(const vtkMRMLAnnotationControlPointsNode &)
void UpdateScene(vtkMRMLScene *scene) override
Finds the storage node and read the data
Abstract Superclass for all specific types of MRML nodes.
const char * GetAttributeTypesEnumAsString(int val) override
int SetControlPoint(int id, double newControl[3], int selectedFlag, int visibleFlag)