1 #ifndef __vtkMRMLAnnotationROINode_h 2 #define __vtkMRMLAnnotationROINode_h 4 #include "vtkSlicerAnnotationsModuleMRMLExport.h" 9 class vtkAbstractTransform;
32 const char*
GetIcon()
override {
return ":/Icons/AnnotationROI.png";}
40 void WriteXML(ostream& of,
int indent)
override;
56 vtkBooleanMacro(InteractiveMode,
int);
57 vtkGetMacro(InteractiveMode,
int);
58 vtkSetMacro(InteractiveMode,
int);
63 vtkBooleanMacro(InsideOut,
int);
64 vtkGetMacro(InsideOut,
int);
65 vtkSetMacro(InsideOut,
int);
69 double GetROIAnnotationScale();
70 void SetROIAnnotationScale(
double init);
74 int GetROIAnnotationVisibility();
75 void SetROIAnnotationVisibility(
int flag);
81 double *GetPointColor();
82 void SetPointColor(
double initColor[3]);
86 double *GetLineColor();
87 void SetLineColor(
double newColor[3]);
91 double *GetROIAnnotationTextColor();
92 void SetROIAnnotationTextColor(
double initColor[3]);
98 virtual void GetTransformedPlanes(vtkPlanes *planes);
113 bool GetXYZ(
double point[3]);
119 int SetXYZ(
double nC1,
double nC2,
double nC3)
121 double newControl[3] = {nC1,nC2,nC3};
122 return this->SetXYZ(newControl) ;
130 bool GetRadiusXYZ(
double point[3]);
139 double newControl[3] = {nC1,nC2,nC3};
140 return this->SetRadiusXYZ(newControl);
145 vtkSetStringMacro(LabelText);
146 vtkGetStringMacro(LabelText);
149 vtkGetStringMacro(VolumeNodeID);
150 vtkSetStringMacro(VolumeNodeID);
161 void GetBounds(
double bounds[6])
override;
165 ROINodeAddedEvent = 0,
180 int AddControlPoint(
double newControl[3],
int selectedFlag,
int visibleFlag);
int AddControlPoint(double newControl[3], int selectedFlag, int visibleFlag)
void ProcessMRMLEvents(vtkObject *, unsigned long, void *) override
alternative method to propagate events generated in Display nodes
void operator=(const vtkMRMLAnnotationLinesNode &)
void PrintAnnotationInfo(ostream &os, vtkIndent indent, int titleFlag=1) override
void GetBounds(double bounds[6]) override
void ApplyTransform(vtkAbstractTransform *transform) override
void UpdateScene(vtkMRMLScene *scene) override
Finds the storage node and read the data
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
int InsideOut
Control the orientation of the normals.
int SetControlPoint(int id, double newControl[3], int selectedFlag, int visibleFlag)
A set of MRML Nodes that supports serialization and undo/redo.
int SetRadiusXYZ(double newControl[3])
char * VolumeNodeID
The ID of the volume associated with the ROI.
vtkMRMLCopyContentMacro(vtkMRMLAnnotationNode)
static vtkMRMLAnnotationLinesNode * New()
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void GetRASBounds(double bounds[6]) override
const char * GetIcon() override
Abstract Superclass for all specific types of MRML nodes.
int SetXYZ(double nC1, double nC2, double nC3)
int SetXYZ(double newControl[3])
void Initialize(vtkMRMLScene *mrmlScene) override
int SetRadiusXYZ(double nC1, double nC2, double nC3)
const char * GetNodeTagName() override
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file