18 #ifndef __vtkMRMLMarkupsAngleNode_h 19 #define __vtkMRMLMarkupsAngleNode_h 25 #include "vtkSlicerMarkupsModuleMRMLExport.h" 42 void PrintSelf(ostream& os, vtkIndent indent)
override;
44 const char*
GetIcon()
override {
return ":/Icons/MarkupsAngleMouseModePlace.png";}
55 AngleMeasurementMode_Last
70 void WriteXML(ostream& of,
int indent)
override;
78 vtkGetMacro(AngleMeasurementMode,
int);
81 void SetAngleMeasurementMode(
int type);
86 const char* GetAngleMeasurementModeAsString(
int id);
91 int GetAngleMeasurementModeFromString(
const char* name);
95 void SetAngleMeasurementModeToMinimal();
99 void SetAngleMeasurementModeToOrientedSigned();
103 void SetAngleMeasurementModeToOrientedPositive();
107 vtkGetVector3Macro(OrientationRotationAxis,
double);
110 virtual void SetOrientationRotationAxis(
double r,
double a,
double s);
113 virtual void SetOrientationRotationAxis(
double ras[3]);
117 double GetAngleDegrees();
132 double OrientationRotationAxis[3];
static vtkMRMLMarkupsNode * New()
MRML node to represent an angle markup Angle Markups nodes contain three control points. Visualization parameters are set in the vtkMRMLMarkupsDisplayNode class.
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
void operator=(const vtkMRMLMarkupsNode &)
virtual void UpdateInteractionHandleToWorldMatrix()
Calculates the handle to world matrix based on the current control points.
vtkMRMLCopyContentMacro(vtkMRMLMarkupsNode)
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
const char * GetIcon() override
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
Abstract Superclass for all specific types of MRML nodes.
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void PrintSelf(ostream &os, vtkIndent indent) override