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/MarkupsAngle.png";}
45 const char*
GetAddIcon()
override {
return ":/Icons/MarkupsAngleMouseModePlace.png";}
46 const char*
GetPlaceAddIcon()
override {
return ":/Icons/MarkupsAngleMouseModePlaceAdd.png";}
57 AngleMeasurementMode_Last
81 void WriteXML(ostream& of,
int indent)
override;
89 vtkGetMacro(AngleMeasurementMode,
int);
92 void SetAngleMeasurementMode(
int type);
97 const char* GetAngleMeasurementModeAsString(
int id);
102 int GetAngleMeasurementModeFromString(
const char* name);
106 void SetAngleMeasurementModeToMinimal();
110 void SetAngleMeasurementModeToOrientedSigned();
114 void SetAngleMeasurementModeToOrientedPositive();
118 vtkGetVector3Macro(OrientationRotationAxis,
double);
121 virtual void SetOrientationRotationAxis(
double r,
double a,
double s);
124 virtual void SetOrientationRotationAxis(
double ras[3]);
128 double GetAngleDegrees();
143 double OrientationRotationAxis[3];
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 &)
const char * GetAddIcon() override
virtual void UpdateInteractionHandleToWorldMatrix()
Calculates the handle to world matrix based on the current control points.
const char * GetDefaultNodeNamePrefix() override
Get markup short name.
const char * GetPlaceAddIcon() override
const char * GetMarkupType() override
Get markup type internal name.
vtkMRMLCopyContentMacro(vtkMRMLMarkupsNode)
const char * GetTypeDisplayName() override
vtkMRMLNode * CreateNodeInstance() override=0
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