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/MarkupsFiducial.png";}
47 const char*
GetAddIcon()
override {
return ":/Icons/MarkupsFiducialMouseModePlace.png";}
48 const char*
GetPlaceAddIcon()
override {
return ":/Icons/MarkupsFiducialMouseModePlaceAdd.png";}
72 void WriteXML(ostream& of,
int indent)
override;
86 vtkSetMacro(MaximumNumberOfControlPoints,
int);
91 vtkSetMacro(RequiredNumberOfControlPoints,
int);
107 vtkWarningMacro(
"vtkMRMLMarkupsFiducialNode::GetNumberOfFiducials method is deprecated, please use GetNumberOfControlPoints instead");
111 int AddFiducial(
double x,
double y,
double z, std::string label = std::string())
113 vtkWarningMacro(
"vtkMRMLMarkupsFiducialNode::AddFiducial method is deprecated, please use AddControlPoint instead");
120 vtkWarningMacro(
"vtkMRMLMarkupsFiducialNode::AddFiducialFromArray method is deprecated, please use AddControlPoint instead");
126 vtkWarningMacro(
"vtkMRMLMarkupsFiducialNode::GetNthFiducialPosition method is deprecated, please use GetNthControlPointPosition instead");
132 vtkWarningMacro(
"vtkMRMLMarkupsFiducialNode::SetNthFiducialPosition method is deprecated, please use SetNthControlPointPosition instead");
138 vtkWarningMacro(
"vtkMRMLMarkupsFiducialNode::SetNthFiducialPositionFromArray method is deprecated, please use SetNthControlPointPositionFromArray instead");
144 vtkWarningMacro(
"vtkMRMLMarkupsFiducialNode::GetNthFiducialSelected method is deprecated, please use GetNthControlPointSelected instead");
150 vtkWarningMacro(
"vtkMRMLMarkupsFiducialNode::SetNthFiducialSelected method is deprecated, please use SetNthControlPointSelected instead");
156 vtkWarningMacro(
"vtkMRMLMarkupsFiducialNode::GetNthFiducialLocked method is deprecated, please use GetNthControlPointLocked instead");
162 vtkWarningMacro(
"vtkMRMLMarkupsFiducialNode::SetNthFiducialLocked method is deprecated, please use SetNthControlPointLocked instead");
168 vtkWarningMacro(
"vtkMRMLMarkupsFiducialNode::GetNthFiducialVisibility method is deprecated, please use GetNthControlPointVisibility instead");
174 vtkWarningMacro(
"vtkMRMLMarkupsFiducialNode::SetNthFiducialVisibility method is deprecated, please use SetNthControlPointVisibility instead");
180 vtkWarningMacro(
"vtkMRMLMarkupsFiducialNode::GetNthFiducialLabel method is deprecated, please use GetNthControlPointLabel instead");
186 vtkWarningMacro(
"vtkMRMLMarkupsFiducialNode::SetNthFiducialLabel method is deprecated, please use SetNthControlPointLabel instead");
192 vtkWarningMacro(
"vtkMRMLMarkupsFiducialNode::GetNthFiducialAssociatedNodeID method is deprecated, please use GetNthControlPointAssociatedNodeID instead");
198 vtkWarningMacro(
"vtkMRMLMarkupsFiducialNode::SetNthFiducialAssociatedNodeID method is deprecated, please use SetNthControlPointAssociatedNodeID instead");
204 vtkWarningMacro(
"vtkMRMLMarkupsFiducialNode::SetNthFiducialWorldCoordinates method is deprecated, please use SetNthControlPointPositionWorld instead");
210 vtkWarningMacro(
"vtkMRMLMarkupsFiducialNode::GetNthFiducialWorldCoordinates method is deprecated, please use GetNthControlPointPositionWorld instead");
bool GetNthControlPointSelected(int n=0)
void GetNthFiducialWorldCoordinates(int n, double coords[4])
int GetNumberOfControlPoints()
Return the number of control points that are stored in this node.
void SetNthControlPointLabel(int n, std::string label)
const char * GetDefaultNodeNamePrefix() override
Get markup short name.
int AddFiducial(double x, double y, double z, std::string label=std::string())
void GetNthFiducialPosition(int n, double pos[3])
std::string GetNthFiducialLabel(int n=0)
void SetNthControlPointPositionFromArray(const int pointIndex, const double pos[3], int positionStatus=PositionDefined)
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)
bool GetNthFiducialVisibility(int n=0)
void SetNthControlPointLocked(int n, bool flag)
void operator=(const vtkMRMLMarkupsNode &)
const char * GetAddIcon() override
void SetNthFiducialPosition(int n, double x, double y, double z)
void SetNthFiducialSelected(int n, bool flag)
void CreateDefaultDisplayNodes() override
Create and observe default display node(s)
void SetNthControlPointAssociatedNodeID(int n, std::string id)
void SetNthControlPointPositionWorld(const int pointIndex, const double x, const double y, const double z, int positionStatus=PositionDefined)
void SetNthFiducialLabel(int n, std::string label)
vtkMRMLCopyContentMacro(vtkMRMLMarkupsNode)
std::string GetNthControlPointAssociatedNodeID(int n=0)
void SetNthControlPointSelected(int n, bool flag)
bool GetNthFiducialLocked(int n=0)
void SetNthFiducialPositionFromArray(int n, double pos[3])
const char * GetTypeDisplayName() override
void SetNthFiducialVisibility(int n, bool flag)
const char * GetIcon() override
vtkMRMLNode * CreateNodeInstance() override=0
MRMLNode methods.
void SetNthFiducialWorldCoordinates(int n, double coords[4])
int GetNumberOfFiducials()
const char * GetPlaceAddIcon() override
void GetNthControlPointPosition(int pointIndex, double point[3])
bool GetNthControlPointVisibility(int n=0)
std::string GetNthControlPointLabel(int n=0)
std::string GetNthFiducialAssociatedNodeID(int n=0)
void SetNthControlPointVisibility(int n, bool flag)
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
bool GetNthFiducialSelected(int n=0)
void SetNthFiducialAssociatedNodeID(int n, const char *id)
void SetNthFiducialLocked(int n, bool flag)
Abstract Superclass for all specific types of MRML nodes.
int AddFiducialFromArray(double pos[3], std::string label=std::string())
bool GetNthControlPointLocked(int n=0)
const char * GetMarkupType() override
Get markup type internal name.
int GetNthControlPointPositionWorld(int pointIndex, double worldxyz[3])
void SetNthControlPointPosition(const int pointIndex, const double x, const double y, const double z, int positionStatus=PositionDefined)
Set of the Nth control point position from coordinates.
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
int AddControlPoint(vtkVector3d point, std::string label=std::string())
void PrintSelf(ostream &os, vtkIndent indent) override