9 #ifndef __vtkMRMLAnnotationControlPointsNode_h 10 #define __vtkMRMLAnnotationControlPointsNode_h 44 void WriteXML(ostream& of,
int indent)
override;
50 void WriteCLI(std::vector<std::string>& commandLine,
51 std::string prefix,
int coordinateSystem = 0,
52 int multipleFlag = 1)
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 int InvokePendingModifiedEvent()
Invokes any modified events that are pending.
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file
virtual void WriteCLI(std::vector< std::string > &vtkNotUsed(commandLine), std::string vtkNotUsed(prefix), int vtkNotUsed(coordinateSystemFlag)=0, int vtkNotUsed(multipleFlag)=1)
virtual int GetDisableModifiedEvent()
Turn on/off generating InvokeEvent for set macros.
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
int InvokePendingModifiedEvent() override
int NumberingScheme
How the next annotation will be numbered in it's Text field.
void ProcessMRMLEvents(vtkObject *, unsigned long, void *) override
alternative method to propagate events generated in Display nodes
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
A set of MRML Nodes that supports serialization and undo/redo.
void operator=(const vtkMRMLAnnotationNode &)
void UpdateScene(vtkMRMLScene *scene) override
Finds the storage node and read the data
virtual const char * GetAttributeTypesEnumAsString(int val)
A superclass 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)
vtkMRMLStorageNode * CreateDefaultStorageNode() override
#define vtkMRMLCopyContentDefaultMacro(thisClassName)
void Modified() override
Customized version of Modified() allowing to compress vtkCommand::ModifiedEvent.
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.
virtual void ResetAnnotations()