1#ifndef __vtkMRMLAnnotationROINode_h
2#define __vtkMRMLAnnotationROINode_h
4#include "vtkSlicerAnnotationsModuleMRMLExport.h"
9class vtkAbstractTransform;
31 const char*
GetIcon()
override {
return ":/Icons/AnnotationROI.png";}
39 void WriteXML(ostream& of,
int indent)
override;
118 int SetXYZ(
double nC1,
double nC2,
double nC3)
120 double newControl[3] = {nC1,nC2,nC3};
121 return this->
SetXYZ(newControl) ;
118 int SetXYZ(
double nC1,
double nC2,
double nC3) {
…}
138 double newControl[3] = {nC1,nC2,nC3};
int SetControlPoint(int id, double newControl[3], int selectedFlag, int visibleFlag)
vtkMRMLAnnotationLinesNode()
void UpdateScene(vtkMRMLScene *scene) override
const char * GetNodeTagName() override
void GetBounds(double bounds[6]) override
~vtkMRMLAnnotationROINode() override
void Initialize(vtkMRMLScene *mrmlScene) override
void operator=(const vtkMRMLAnnotationROINode &)
int SetXYZ(double newControl[3])
int AddControlPoint(double newControl[3], int selectedFlag, int visibleFlag)
void WriteXML(ostream &of, int indent) override
void ApplyTransform(vtkAbstractTransform *transform) override
double GetROIAnnotationScale()
int SetControlPoint(int id, double newControl[3])
void SetROIAnnotationScale(double init)
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
double * GetROIAnnotationTextColor()
void PrintAnnotationInfo(ostream &os, vtkIndent indent, int titleFlag=1) override
void SetPointColor(double initColor[3])
void SetLineColor(double newColor[3])
static vtkMRMLAnnotationROINode * New()
void GetRASBounds(double bounds[6]) override
int SetRadiusXYZ(double nC1, double nC2, double nC3)
bool GetXYZ(double point[3])
returns true and control point coordinate 0 on success, false and 0,0,0 on failure
bool GetRadiusXYZ(double point[3])
vtkMRMLAnnotationROINode(const vtkMRMLAnnotationROINode &)
void SetROIAnnotationTextColor(double initColor[3])
int InsideOut
Control the orientation of the normals.
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
vtkMRMLAnnotationROINode()
virtual void GetTransformedPlanes(vtkPlanes *planes)
void ProcessMRMLEvents(vtkObject *, unsigned long, void *) override
vtkMRMLCopyContentMacro(vtkMRMLAnnotationROINode)
void SetROIAnnotationVisibility(int flag)
int SetXYZ(double nC1, double nC2, double nC3)
void ApplyTransformMatrix(vtkMatrix4x4 *transformMatrix) override
int GetROIAnnotationVisibility()
const char * GetIcon() override
char * VolumeNodeID
The ID of the volume associated with the ROI.
int SetRadiusXYZ(double newControl[3])
Abstract Superclass for all specific types of MRML nodes.
A set of MRML Nodes that supports serialization and undo/redo.