1 #ifndef __vtkMRMLAnnotationROINode_h 2 #define __vtkMRMLAnnotationROINode_h 4 #include "vtkSlicerAnnotationsModuleMRMLExport.h" 9 class vtkAbstractTransform;
27 virtual
vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
30 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "AnnotationROI";}
32 virtual const char*
GetIcon() VTK_OVERRIDE {
return ":/Icons/AnnotationROI.png";}
40 virtual void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
53 void * ) VTK_OVERRIDE;
57 vtkBooleanMacro(InteractiveMode,
int);
58 vtkGetMacro(InteractiveMode,
int);
59 vtkSetMacro(InteractiveMode,
int);
64 vtkBooleanMacro(InsideOut,
int);
65 vtkGetMacro(InsideOut,
int);
66 vtkSetMacro(InsideOut,
int);
70 double GetROIAnnotationScale();
71 void SetROIAnnotationScale(
double init);
75 int GetROIAnnotationVisibility();
76 void SetROIAnnotationVisibility(
int flag);
82 double *GetPointColor();
83 void SetPointColor(
double initColor[3]);
87 double *GetLineColor();
88 void SetLineColor(
double newColor[3]);
92 double *GetROIAnnotationTextColor();
93 void SetROIAnnotationTextColor(
double initColor[3]);
98 virtual void ApplyTransform(vtkAbstractTransform* transform) VTK_OVERRIDE;
99 virtual void GetTransformedPlanes(vtkPlanes *planes);
114 bool GetXYZ(
double point[3]);
120 int SetXYZ(
double nC1,
double nC2,
double nC3)
122 double newControl[3] = {nC1,nC2,nC3};
123 return this->SetXYZ(newControl) ;
131 bool GetRadiusXYZ(
double point[3]);
140 double newControl[3] = {nC1,nC2,nC3};
141 return this->SetRadiusXYZ(newControl);
146 vtkSetStringMacro(LabelText);
147 vtkGetStringMacro(LabelText);
150 vtkGetStringMacro(VolumeNodeID);
151 vtkSetStringMacro(VolumeNodeID);
157 virtual void GetRASBounds(
double bounds[6]) VTK_OVERRIDE;
162 virtual void GetBounds(
double bounds[6]) VTK_OVERRIDE;
166 ROINodeAddedEvent = 0,
181 int AddControlPoint(
double newControl[3],
int selectedFlag,
int visibleFlag);
void Initialize(vtkMRMLScene *mrmlScene) VTK_OVERRIDE
virtual void PrintAnnotationInfo(ostream &os, vtkIndent indent, int titleFlag=1) VTK_OVERRIDE
int AddControlPoint(double newControl[3], int selectedFlag, int visibleFlag)
void operator=(const vtkMRMLAnnotationLinesNode &)
virtual void ReadXMLAttributes(const char **atts) VTK_OVERRIDE
Read node attributes from XML file.
int InsideOut
Control the orientation of the normals.
int SetControlPoint(int id, double newControl[3], int selectedFlag, int visibleFlag)
virtual const char * GetIcon() VTK_OVERRIDE
A set of MRML Nodes that supports serialization and undo/redo.
virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE
Copy the node's attributes to this object.
virtual void WriteXML(ostream &of, int indent) VTK_OVERRIDE
Write this node's information to a MRML file in XML format.
virtual void GetBounds(double bounds[6]) VTK_OVERRIDE
int SetRadiusXYZ(double newControl[3])
char * VolumeNodeID
The ID of the volume associated with the ROI.
static vtkMRMLAnnotationLinesNode * New()
virtual void ApplyTransform(vtkAbstractTransform *transform) VTK_OVERRIDE
virtual void GetRASBounds(double bounds[6]) VTK_OVERRIDE
Abstract Superclass for all specific types of MRML nodes.
int SetXYZ(double nC1, double nC2, double nC3)
virtual void ProcessMRMLEvents(vtkObject *, unsigned long, void *) VTK_OVERRIDE
alternative method to propagate events generated in Display nodes
int SetXYZ(double newControl[3])
int SetRadiusXYZ(double nC1, double nC2, double nC3)
void UpdateScene(vtkMRMLScene *scene) VTK_OVERRIDE
Finds the storage node and read the data.