1#ifndef __vtkMRMLAnnotationFiducialNode_h
2#define __vtkMRMLAnnotationFiducialNode_h
4#include "vtkSlicerAnnotationsModuleMRMLExport.h"
7#include <vtkStdString.h>
34 const char*
GetIcon()
override {
return ":/Icons/AnnotationPoint.png";}
36 int SetFiducial(
double newControl[3],
int selectedFlag,
int visibleFlag);
41 this->SetText(0,newLabel,1,1);
46 return this->GetText(0);
51 this->SetText(1,newValue,1,1);
62 return this->SetControlPoint(0,newCoord,selFlag,visFlag);
67 return this->SetControlPointWorldCoordinates(0,newCoord,selFlag,visFlag);
76 return this->SetFiducialCoordinates(newCoord);
81 return this->GetControlPointCoordinates(0);
86 this->GetControlPointWorldCoordinates(0, point);
94 FiducialNodeAddedEvent = 0,
MRML node to represent a fiducial in the Annotations module - deprecated.
static vtkMRMLAnnotationFiducialNode * New()
vtkMRMLAnnotationFiducialNode()
void GetFiducialWorldCoordinates(double *point)
vtkStdString GetFiducialLabel()
const char * GetIcon() override
vtkMRMLAnnotationFiducialNode(const vtkMRMLAnnotationFiducialNode &)
double * GetFiducialCoordinates()
int SetFiducial(double newControl[3], int selectedFlag, int visibleFlag)
bool GetFiducialCoordinates(double coord[3])
returns true and control point coordinate 0 on success, false and 0,0,0 on failure
void operator=(const vtkMRMLAnnotationFiducialNode &)
void SetFiducialValue(const char *newValue)
int GetFiducialValue()
return atoi(this->GetText(1).c_str());
int SetFiducialCoordinates(double x, double y, double z)
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
int SetFiducialCoordinates(double newCoord[3], int selFlag=1, int visFlag=1)
~vtkMRMLAnnotationFiducialNode() override
int SetFiducialWorldCoordinates(double newCoord[3], int selFlag=1, int visFlag=1)
void SetFiducialLabel(const char *newLabel)
Selected and visible are currently always set to 1 and are controlled by selected and visible flag.
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
Abstract Superclass for all specific types of MRML nodes.
A superclass for other storage nodes.