9 #ifndef __vtkMRMLAnnotationLinesNode_h 10 #define __vtkMRMLAnnotationLinesNode_h 26 virtual void PrintAnnotationInfo(ostream& os, vtkIndent indent,
int titleFlag = 1) VTK_OVERRIDE;
32 virtual
vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
35 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "AnnotationLines";}
43 virtual void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
56 void * ) VTK_OVERRIDE;
68 int AddLine(
int ctrlPtIdStart,
int ctrlPtIdEnd,
int selectedFlag,
int visibleFlag);
69 int SetLine(
int id,
int ctrlPtIdStart,
int ctrlPtIdEnd,
int selectedFlag,
int visibleFlag);
71 int SetControlPoint(
int id,
double newControl[3],
int selectedFlag,
int visibleFlag);
73 int SetControlPointWorldCoordinates(
int id,
double newControl[3],
int selectedFlag,
int visibleFlag)
75 double localPoint[4]={0,0,0,1};
77 return this->
SetControlPoint(
id, localPoint, selectedFlag, visibleFlag);
80 void DeleteLine(
int id);
81 int GetEndPointsId(vtkIdType lineID, vtkIdType ctrlPtID[2]);
82 int GetNumberOfLines();
86 void CreateAnnotationLineDisplayNode();
92 NUM_LINE_ATTRIBUTE_TYPES
111 void CreatePolyData();
119 void ResetLinesAttributesAll();
121 bool InitializeLinesFlag;
void UpdateScene(vtkMRMLScene *scene) VTK_OVERRIDE
Finds the storage node and read the data
const char * GetAttributeTypesEnumAsString(int val) VTK_OVERRIDE
virtual void WriteXML(ostream &of, int indent) VTK_OVERRIDE
Write this node's information to a MRML file in XML format.
virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE
Copy the node's attributes to this object.
static vtkMRMLAnnotationControlPointsNode * New()
virtual void ReadXMLAttributes(const char **atts) VTK_OVERRIDE
Read node attributes from XML file
virtual void ResetAnnotations() VTK_OVERRIDE
virtual void ProcessMRMLEvents(vtkObject *, unsigned long, void *) VTK_OVERRIDE
alternative method to propagate events generated in Display nodes
A set of MRML Nodes that supports serialization and undo/redo.
A superclass for other storage nodes.
virtual vtkMRMLStorageNode * CreateDefaultStorageNode() VTK_OVERRIDE
Abstract Superclass for all specific types of MRML nodes.
int SetControlPoint(int id, double newControl[3], int selectedFlag, int visibleFlag)
virtual void PrintAnnotationInfo(ostream &os, vtkIndent indent, int titleFlag=1) VTK_OVERRIDE