This class offers methods to read objects of the class NavigationTool from the harddisc. The tools have to be saved in a special format by the class NavigationToolWriter to be loadable.
More...
#include <mitkNavigationToolReader.h>
This class offers methods to read objects of the class NavigationTool from the harddisc. The tools have to be saved in a special format by the class NavigationToolWriter to be loadable.
Documentation
Definition at line 34 of file mitkNavigationToolReader.h.
◆ NavigationToolReader()
mitk::NavigationToolReader::NavigationToolReader |
( |
| ) |
|
|
protected |
◆ ~NavigationToolReader()
mitk::NavigationToolReader::~NavigationToolReader |
( |
| ) |
|
|
overrideprotected |
◆ Clone()
Pointer mitk::NavigationToolReader::Clone |
( |
| ) |
const |
◆ ConvertDataNodeToNavigationTool()
mitk::NavigationTool::Pointer mitk::NavigationToolReader::ConvertDataNodeToNavigationTool |
( |
mitk::DataNode::Pointer |
node, |
|
|
std::string |
toolPath |
|
) |
| |
|
protected |
◆ ConvertStringToPoint()
mitk::Point3D mitk::NavigationToolReader::ConvertStringToPoint |
( |
std::string |
string | ) |
|
|
protected |
◆ ConvertStringToPointSet()
◆ ConvertStringToQuaternion()
mitk::Quaternion mitk::NavigationToolReader::ConvertStringToQuaternion |
( |
std::string |
string | ) |
|
|
protected |
◆ DoRead()
mitk::NavigationTool::Pointer mitk::NavigationToolReader::DoRead |
( |
std::string |
filename | ) |
|
This method reads a navigation tool from a file.
- Parameters
-
filename | The filename where the tool is stored, "C:\temp\myTool.igtTool" for example. |
- Returns
- Returns a pointer to the tool which was read. Returns nullptr, if something went wrong and no tool was read. In this case you may also want the error message which is availiable from the method GetErrorMessage().
◆ GetErrorMessage()
virtual std::string mitk::NavigationToolReader::GetErrorMessage |
( |
| ) |
|
|
virtual |
◆ GetFileWithoutPath()
std::string mitk::NavigationToolReader::GetFileWithoutPath |
( |
std::string |
FileWithPath | ) |
|
|
protected |
◆ mitkClassMacroItkParent()
◆ New()
static Pointer mitk::NavigationToolReader::New |
( |
| ) |
|
|
static |
◆ split()
void mitk::NavigationToolReader::split |
( |
std::string & |
text, |
|
|
std::string & |
separators, |
|
|
std::vector< std::string > & |
words |
|
) |
| |
|
protected |
◆ m_ErrorMessage
std::string mitk::NavigationToolReader::m_ErrorMessage |
|
protected |
◆ m_ToolfilePath
std::string mitk::NavigationToolReader::m_ToolfilePath |
|
protected |
The documentation for this class was generated from the following file: