1 #ifndef __vtkMRMLAnnotationFiducialNode_h 2 #define __vtkMRMLAnnotationFiducialNode_h 4 #include "vtkSlicerAnnotationsModuleMRMLExport.h" 7 #include <vtkStdString.h> 32 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "AnnotationFiducials";}
34 virtual const char*
GetIcon() VTK_OVERRIDE {
return ":/Icons/AnnotationPoint.png";}
36 int SetFiducial(
double newControl[3],
int selectedFlag,
int visibleFlag);
76 return this->SetFiducialCoordinates(newCoord);
90 bool GetFiducialCoordinates(
double coord[3]);
94 FiducialNodeAddedEvent = 0,
106 void SetTextFromID();
static vtkMRMLAnnotationControlPointsNode * New()
vtkStdString GetFiducialLabel()
int SetControlPointWorldCoordinates(int id, double newControl[3], int selectedFlag, int visibleFlag)
int GetFiducialValue()
return atoi(this->GetText(1).c_str());
void SetFiducialValue(const char *newValue)
int SetFiducialCoordinates(double x, double y, double z)
double * GetFiducialCoordinates()
MRML node to represent a fiducial in the Annotations module - deprecated.
vtkStdString GetText(int id)
A superclass for other storage nodes.
void SetFiducialLabel(const char *newLabel)
Selected and visible are currently always set to 1 and are controlled by selected and visible flag...
double * GetControlPointCoordinates(vtkIdType id)
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE
MRMLNode methods.
void SetText(int id, const char *newText, int selectedFlag, int visibleFlag)
int SetFiducialCoordinates(double newCoord[3], int selFlag=1, int visFlag=1)
void operator=(const vtkMRMLAnnotationControlPointsNode &)
void GetControlPointWorldCoordinates(vtkIdType id, double *point)
Abstract Superclass for all specific types of MRML nodes.
virtual const char * GetIcon() VTK_OVERRIDE
int SetFiducialWorldCoordinates(double newCoord[3], int selFlag=1, int visFlag=1)
int SetControlPoint(int id, double newControl[3], int selectedFlag, int visibleFlag)
void GetFiducialWorldCoordinates(double *point)