18 #ifndef __vtkMRMLMarkupsFiducialNode_h 19 #define __vtkMRMLMarkupsFiducialNode_h 25 #include "vtkSlicerMarkupsModuleMRMLExport.h" 30 #include <vtkSmartPointer.h> 49 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
51 virtual const char*
GetIcon() VTK_OVERRIDE {
return ":/Icons/MarkupsMouseModePlace.png";}
59 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "MarkupsFiducial";}
65 virtual void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
76 void * ) VTK_OVERRIDE;
83 virtual
void CreateDefaultDisplayNodes() VTK_OVERRIDE;
93 int AddFiducial(
double x,
double y,
double z);
94 int AddFiducial(
double x,
double y,
double z, std::string label);
96 int AddFiducialFromArray(
double pos[3], std::string label = std::string());
98 void GetNthFiducialPosition(
int n,
double pos[3]);
100 void SetNthFiducialPosition(
int n,
double x,
double y,
double z);
102 void SetNthFiducialPositionFromArray(
int n,
double pos[3]);
104 bool GetNthFiducialSelected(
int n = 0);
106 void SetNthFiducialSelected(
int n,
bool flag);
108 bool GetNthFiducialVisibility(
int n = 0);
116 void SetNthFiducialVisibility(
int n,
bool flag);
118 std::string GetNthFiducialLabel(
int n = 0);
120 void SetNthFiducialLabel(
int n, std::string label);
122 std::string GetNthFiducialAssociatedNodeID(
int n = 0);
124 void SetNthFiducialAssociatedNodeID(
int n,
const char*
id);
126 void SetNthFiducialWorldCoordinates(
int n,
double coords[4]);
128 void GetNthFiducialWorldCoordinates(
int n,
double coords[4]);
130 virtual void GetRASBounds(
double bounds[6]) VTK_OVERRIDE;
131 virtual void GetBounds(
double bounds[6]) VTK_OVERRIDE;
static vtkMRMLMarkupsNode * New()
virtual void WriteXML(ostream &of, int indent) VTK_OVERRIDE
Write this node's information to a MRML file in XML format.
virtual const char * GetIcon() VTK_OVERRIDE
virtual void ProcessMRMLEvents(vtkObject *, unsigned long, void *) VTK_OVERRIDE
Alternative method to propagate events generated in Display nodes.
MRML node to represent a fiducial markup Fiducial Markups nodes contain a list of fiducial points...
virtual void GetBounds(double bounds[6])
void operator=(const vtkMRMLMarkupsNode &)
void UpdateScene(vtkMRMLScene *scene) VTK_OVERRIDE
Currently only calls superclass UpdateScene.
int GetNumberOfMarkups()
Return the number of markups that are stored in this node.
virtual void ReadXMLAttributes(const char **atts) VTK_OVERRIDE
Read node attributes from XML file.
MRML node to represent a list of markups Markups nodes contains a list of markups that each contain a...
A set of MRML Nodes that supports serialization and undo/redo.
A superclass for other storage nodes.
virtual vtkMRMLStorageNode * CreateDefaultStorageNode() VTK_OVERRIDE
Create default storage node or NULL if does not have one.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE
MRMLNode methods.
virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE
Copy the node's attributes to this object.
Abstract Superclass for all specific types of MRML nodes.
virtual void GetRASBounds(double bounds[6])