18 #ifndef __vtkMRMLMarkupsFiducialNode_h 19 #define __vtkMRMLMarkupsFiducialNode_h 25 #include "vtkSlicerMarkupsModuleMRMLExport.h" 44 void PrintSelf(ostream& os, vtkIndent indent)
override;
46 const char*
GetIcon()
override {
return ":/Icons/MarkupsMouseModePlace.png";}
60 void WriteXML(ostream& of,
int indent)
override;
73 vtkSetMacro(MaximumNumberOfControlPoints,
int);
78 vtkSetMacro(RequiredNumberOfControlPoints,
int);
83 int AddFiducial(
double x,
double y,
double z);
84 int AddFiducial(
double x,
double y,
double z, std::string label);
86 int AddFiducialFromArray(
double pos[3], std::string label = std::string());
88 void GetNthFiducialPosition(
int n,
double pos[3]);
90 void SetNthFiducialPosition(
int n,
double x,
double y,
double z);
92 void SetNthFiducialPositionFromArray(
int n,
double pos[3]);
94 bool GetNthFiducialSelected(
int n = 0);
96 void SetNthFiducialSelected(
int n,
bool flag);
98 bool GetNthFiducialLocked(
int n = 0);
100 void SetNthFiducialLocked(
int n,
bool flag);
102 bool GetNthFiducialVisibility(
int n = 0);
110 void SetNthFiducialVisibility(
int n,
bool flag);
112 std::string GetNthFiducialLabel(
int n = 0);
114 void SetNthFiducialLabel(
int n, std::string label);
116 std::string GetNthFiducialAssociatedNodeID(
int n = 0);
118 void SetNthFiducialAssociatedNodeID(
int n,
const char*
id);
120 void SetNthFiducialWorldCoordinates(
int n,
double coords[4]);
122 void GetNthFiducialWorldCoordinates(
int n,
double coords[4]);
int GetNumberOfControlPoints()
Return the number of control points that are stored in this node.
static vtkMRMLMarkupsNode * New()
MRML node to represent a fiducial markup Fiducial Markups nodes contain a list of control points...
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
void operator=(const vtkMRMLMarkupsNode &)
void CreateDefaultDisplayNodes() override
Create and observe default display node(s)
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object
const char * GetIcon() override
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
int GetNumberOfFiducials()
Get the number of fiducials in this node.
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
Abstract Superclass for all specific types of MRML nodes.
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void PrintSelf(ostream &os, vtkIndent indent) override