9 #ifndef __vtkMRMLAnnotationControlPointsNode_h 10 #define __vtkMRMLAnnotationControlPointsNode_h 27 virtual void PrintAnnotationInfo(ostream& os, vtkIndent indent,
int titleFlag = 1) VTK_OVERRIDE;
33 virtual
vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
36 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "AnnotationControlPoints";}
44 virtual void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
50 virtual void WriteCLI(std::vector<std::string>& commandLine,
51 std::string prefix,
int coordinateSystem = 0,
52 int multipleFlag = 1) VTK_OVERRIDE;
64 void * ) VTK_OVERRIDE;
69 ControlPointModifiedEvent = 19010,
103 int AddControlPoint(
double newControl[3],
int selectedFlag,
int visibleFlag);
105 int SetControlPoint(
int id,
double newControl[3],
int selectedFlag,
int visibleFlag);
107 int SetControlPointWorldCoordinates(
int id,
double newControl[3],
int selectedFlag,
int visibleFlag);
109 int SetControlPoint(
int id,
double newControl[3]);
111 int SetControlPointWorldCoordinates(
int id,
double newControl[3]);
113 void DeleteControlPoint(
int id);
117 double* GetControlPointCoordinates(vtkIdType
id);
119 void GetControlPointWorldCoordinates(vtkIdType
id,
double *
point);
121 int GetNumberOfControlPoints();
127 NUM_CP_ATTRIBUTE_TYPES
139 void CreateAnnotationPointDisplayNode();
148 SchemeMax = UsePrevious,
153 virtual void SetNumberingScheme(
int numberingScheme);
154 vtkGetMacro(NumberingScheme,
int);
157 const char* GetNumberingSchemeAsString();
158 const char* GetNumberingSchemeAsString(
int g);
159 void SetNumberingSchemeFromString(
const char *schemeString);
175 void ResetControlPoints();
179 void ResetControlPointsAttributesAll();
NumberingSchemes
flags to determine how the next fiducial added to the list is labelled
virtual void ReadXMLAttributes(const char **atts) VTK_OVERRIDE
Read node attributes from XML file.
virtual int InvokePendingModifiedEvent()
Invokes any modified events that are pending.
virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE
Copy the node's attributes to this object.
virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE
Copy the node's attributes to this object.
virtual void WriteCLI(std::vector< std::string > &vtkNotUsed(commandLine), std::string vtkNotUsed(prefix), int vtkNotUsed(coordinateSystemFlag)=0, int vtkNotUsed(multipleFlag)=1)
void UpdateScene(vtkMRMLScene *scene) VTK_OVERRIDE
Finds the storage node and read the data.
virtual int GetDisableModifiedEvent()
Turn on/off generating InvokeEvent for set macros.
~vtkMRMLAnnotationControlPointsNode()
virtual void WriteXML(ostream &of, int indent) VTK_OVERRIDE
Write this node's information to a MRML file in XML format.
int NumberingScheme
How the next annotation will be numbered in it's Text field.
virtual int InvokePendingModifiedEvent() VTK_OVERRIDE
A set of MRML Nodes that supports serialization and undo/redo.
void operator=(const vtkMRMLAnnotationNode &)
virtual const char * GetAttributeTypesEnumAsString(int val)
virtual void ProcessMRMLEvents(vtkObject *, unsigned long, void *) VTK_OVERRIDE
alternative method to propagate events generated in Display nodes
A supercalss for other storage nodes.
virtual int GetModifiedEventPending()
static vtkMRMLAnnotationNode * New()
virtual void Initialize(vtkMRMLScene *mrmlScene)
virtual void PrintAnnotationInfo(ostream &os, vtkIndent indent, int titleFlag=1)
virtual vtkMRMLStorageNode * CreateDefaultStorageNode() VTK_OVERRIDE
virtual void Modified() VTK_OVERRIDE
Customized version of Modified() allowing to compress vtkCommand::ModifiedEvent.
Abstract Superclass for all specific types of MRML nodes.
virtual void ResetAnnotations()
virtual void Modified() VTK_OVERRIDE
Customized version of Modified() allowing to compress vtkCommand::ModifiedEvent.