18#ifndef __vtkMRMLMarkupsLineNode_h
19#define __vtkMRMLMarkupsLineNode_h
25#include "vtkMRMLExport.h"
41 void PrintSelf(ostream& os, vtkIndent indent)
override;
43 const char*
GetIcon()
override {
return ":/Icons/MarkupsLine.png";}
44 const char*
GetAddIcon()
override {
return ":/Icons/MarkupsLineMouseModePlace.png";}
45 const char*
GetPlaceAddIcon()
override {
return ":/Icons/MarkupsLineMouseModePlaceAdd.png";}
62 void WriteXML(ostream& of,
int indent)
override;
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
bool GetLineStartPosition(double position[3])
bool SetPosition2(double newControl[3])
const char * GetMarkupType() override
Get markup type internal name.
bool GetPosition2(double position[3])
void UpdateInteractionHandleToWorldMatrix() override
Calculates the handle to world matrix based on the current control points.
bool GetPositionWorldCoordinates2(double position[3])
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
void SetLineStartPosition(double position[3])
bool SetPosition1(double nC1, double nC2, double nC3)
static vtkMRMLMarkupsLineNode * New()
vtkVector3d GetLineStartPosition()
bool GetLineEndPositionWorld(double position[3])
vtkVector3d GetLineStartPositionWorld()
bool SetPosition1(double newControl[3])
void SetLineEndPosition(double position[3])
vtkMRMLMarkupsLineNode(const vtkMRMLMarkupsLineNode &)
const char * GetPlaceAddIcon() override
vtkVector3d GetLineEndPositionWorld()
virtual double GetLineLengthWorld()
Return line length (distance between the two line endpoints) in world coordinate system.
vtkVector3d GetLineEndPosition()
~vtkMRMLMarkupsLineNode() override
void SetLineStartPositionWorld(double position[3])
bool GetLineStartPositionWorld(double position[3])
void PrintSelf(ostream &os, vtkIndent indent) override
Print out the node information to the output stream.
bool GetPosition1(double position[3])
bool SetPosition2(double nC1, double nC2, double nC3)
vtkMRMLCopyContentDefaultMacro(vtkMRMLMarkupsLineNode)
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
bool GetPositionWorldCoordinates1(double position[3])
const char * GetIcon() override
void SetLineEndPositionWorld(double position[3])
bool SetPositionWorldCoordinates1(double newControl[3])
bool GetLineEndPosition(double position[3])
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
bool SetPositionWorldCoordinates2(double newControl[3])
void operator=(const vtkMRMLMarkupsLineNode &)
const char * GetAddIcon() override
Abstract Superclass for all specific types of MRML nodes.