1#ifndef __vtkMRMLAnnotationRulerNode_h
2#define __vtkMRMLAnnotationRulerNode_h
4#include "vtkSlicerAnnotationsModuleMRMLExport.h"
8class vtkAbstractTransform;
29 const char*
GetIcon()
override {
return ":/Icons/AnnotationDistance.png";}
37 void WriteXML(ostream& of,
int indent)
override;
60 double p[4]={0,0,0,1};
80 double locPoint[4]={0,0,0,1};
87 double newControl[3] = {nC1,nC2,nC3};
98 double p[4]={0,0,0,1};
115 double locPoint[4]={0,0,0,1};
122 double newControl[3] = {nC1,nC2,nC3};
double * GetControlPointCoordinates(vtkIdType id)
int SetControlPoint(int id, double newControl[3], int selectedFlag, int visibleFlag)
vtkMRMLAnnotationLinesNode()
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
const char * GetIcon() override
vtkMRMLAnnotationRulerNode(const vtkMRMLAnnotationRulerNode &)
void SetDistanceAnnotationScale(double init)
double * GetDistanceAnnotationTextColor()
void GetPositionWorldCoordinates1(double position[4])
int SetPosition1(double nC1, double nC2, double nC3)
double GetDistanceAnnotationScale()
void ApplyTransform(vtkAbstractTransform *transform) override
void SetLineColor(double newColor[3])
vtkMRMLStorageNode * CreateDefaultStorageNode() override
void SetDistanceAnnotationTextColor(double initColor[3])
void GetPosition2(double position[3])
void SetPointColor(double initColor[3])
int SetPositionWorldCoordinates2(double newControl[4])
void PrintAnnotationInfo(ostream &os, vtkIndent indent, int titleFlag=1) override
void WriteXML(ostream &of, int indent) override
int SetPosition2(double nC1, double nC2, double nC3)
int SetControlPoint(int id, double newControl[3])
~vtkMRMLAnnotationRulerNode() override
void GetPosition1(double position[3])
void ProcessMRMLEvents(vtkObject *, unsigned long, void *) override
Propagate events generated in mrml.
void SetDistanceAnnotationVisibility(int flag)
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
int SetRuler(vtkIdType line1Id, int sel, int vis)
int AddControlPoint(double newControl[3], int selectedFlag, int visibleFlag)
void GetPositionWorldCoordinates2(double position[4])
static vtkMRMLAnnotationRulerNode * New()
void operator=(const vtkMRMLAnnotationRulerNode &)
int GetDistanceAnnotationVisibility()
int SetPosition1(double newControl[3])
int SetPosition2(double newControl[3])
char * DistanceAnnotationFormat
void Copy(vtkMRMLNode *node) override
Copy node contents from another node of the same type. Does not copy node ID and Scene....
double GetDistanceMeasurement()
Calculate the distance between world coordinates of the two end points.
int SetPositionWorldCoordinates1(double newControl[4])
vtkMRMLAnnotationRulerNode()
void ReadXMLAttributes(const char **atts) override
void UpdateScene(vtkMRMLScene *scene) override
Abstract Superclass for all specific types of MRML nodes.
A set of MRML Nodes that supports serialization and undo/redo.
A superclass for other storage nodes.