1 #ifndef __vtkMRMLAnnotationBidimensionalNode_h 2 #define __vtkMRMLAnnotationBidimensionalNode_h 4 #include "vtkSlicerAnnotationsModuleMRMLExport.h" 8 class vtkAbstractTransform;
30 const char*
GetIcon()
override {
return ":/Icons/AnnotationBidimensional.png";}
38 void WriteXML(ostream& of,
int indent)
override;
56 vtkGetStringMacro(AnnotationFormat);
57 vtkSetStringMacro(AnnotationFormat);
61 vtkGetMacro(Resolution,
int);
62 vtkSetMacro(Resolution,
int);
68 std::vector<double> GetBidimensionalMeasurement();
69 void SetBidimensionalMeasurement(
double val1,
double val2);
75 double localPoint[4]={0,0,0,1};
82 BidimensionalNodeAddedEvent = 0,
int SetControlPointWorldCoordinates(double newControl[3], int id)
const char * GetIcon() override
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 UpdateScene(vtkMRMLScene *scene) override
Finds the storage node and read the data
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
int SetControlPoint(int id, double newControl[3], int selectedFlag, int visibleFlag)
A set of MRML Nodes that supports serialization and undo/redo.
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object
static vtkMRMLAnnotationLinesNode * New()
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
Abstract Superclass for all specific types of MRML nodes.
void Initialize(vtkMRMLScene *mrmlScene) override
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file