18 #include "mitkIGTException.h"
20 #include "Poco/File.h"
25 m_CalibrationFile(
"none"),
45 returnValue->SetPosition(this->m_ToolTipPosition);
46 returnValue->SetOrientation(this->m_ToolTipOrientation);
47 return returnValue->GetAffineTransform3D();
56 nd =
dynamic_cast<const Self *
>( data );
61 <<
typeid(data).name() <<
" to "
62 <<
typeid(
const Self *).name() ;
68 <<
typeid(data).name() <<
" to "
69 <<
typeid(
const Self *).name() ;
72 m_Identifier = nd->GetIdentifier();
73 m_Type = nd->GetType();
74 m_DataNode->SetName(nd->GetDataNode()->GetName());
75 m_DataNode->SetData(nd->GetDataNode()->GetData());
76 m_SpatialObject = nd->GetSpatialObject();
77 m_TrackingTool = nd->GetTrackingTool();
78 m_CalibrationFile = nd->GetCalibrationFile();
79 m_SerialNumber = nd->GetSerialNumber();
80 m_TrackingDeviceType = nd->GetTrackingDeviceType();
81 m_ToolRegistrationLandmarks = nd->GetToolRegistrationLandmarks();
82 m_ToolCalibrationLandmarks = nd->GetToolCalibrationLandmarks();
83 m_ToolTipPosition = nd->GetToolTipPosition();
84 m_ToolTipOrientation = nd->GetToolTipOrientation();
90 if( (m_ToolTipPosition[0] == 0) &&
91 (m_ToolTipPosition[1] == 0) &&
92 (m_ToolTipPosition[2] == 0) &&
93 (m_ToolTipOrientation.x() == 0) &&
94 (m_ToolTipOrientation.y() == 0) &&
95 (m_ToolTipOrientation.z() == 0) &&
96 (m_ToolTipOrientation.r() == 1))
106 m_CalibrationFile =
"none";
112 m_CalibrationFile = filename;
114 m_CalibrationFile =
"none";
120 if (this->m_DataNode.IsNull()) {
return "";}
121 else {
return m_DataNode->GetName();}
126 if (this->m_DataNode.IsNull()) {
return nullptr;}
127 else if (this->m_DataNode->GetData() ==
nullptr) {
return nullptr;}
128 else {
return dynamic_cast<mitk::Surface*
>(m_DataNode->GetData());}
Class for storing surfaces (vtkPolyData).
itk::SmartPointer< Self > Pointer
An object of this class represents an exception of the MITK-IGT module.
DataCollection - Class to facilitate loading/accessing structured data.
Data structure which stores a set of points. Superclass of mitk::Mesh.
static const std::string filename
vnl_quaternion< ScalarType > Quaternion
#define mitkThrowException(classname)
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.