Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::NavigationToolReader Class Reference

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>

Inheritance diagram for mitk::NavigationToolReader:
Collaboration diagram for mitk::NavigationToolReader:

Public Member Functions

 mitkClassMacroItkParent (NavigationToolReader, itk::Object)
 
Pointer Clone () const
 
mitk::NavigationTool::Pointer DoRead (std::string filename)
 This method reads a navigation tool from a file. More...
 
virtual std::string GetErrorMessage ()
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 NavigationToolReader ()
 
 ~NavigationToolReader ()
 
mitk::NavigationTool::Pointer ConvertDataNodeToNavigationTool (mitk::DataNode::Pointer node, std::string toolPath)
 
std::string GetFileWithoutPath (std::string FileWithPath)
 
mitk::PointSet::Pointer ConvertStringToPointSet (std::string string)
 
mitk::Point3D ConvertStringToPoint (std::string string)
 
mitk::Quaternion ConvertStringToQuaternion (std::string string)
 
void split (std::string &text, std::string &separators, std::vector< std::string > &words)
 

Protected Attributes

std::string m_ErrorMessage
 
std::string m_ToolfilePath
 

Detailed Description

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 38 of file mitkNavigationToolReader.h.

Constructor & Destructor Documentation

mitk::NavigationToolReader::NavigationToolReader ( )
protected

Definition at line 36 of file mitkNavigationToolReader.cpp.

References mitk::IOUtil::GetTempPath(), and m_ToolfilePath.

mitk::NavigationToolReader::~NavigationToolReader ( )
protected

Definition at line 41 of file mitkNavigationToolReader.cpp.

Member Function Documentation

Pointer mitk::NavigationToolReader::Clone ( ) const
mitk::Point3D mitk::NavigationToolReader::ConvertStringToPoint ( std::string  string)
protected

Definition at line 220 of file mitkNavigationToolReader.cpp.

References split().

mitk::PointSet::Pointer mitk::NavigationToolReader::ConvertStringToPointSet ( std::string  string)
protected

Definition at line 197 of file mitkNavigationToolReader.cpp.

References mitk::PointSet::New(), and split().

mitk::Quaternion mitk::NavigationToolReader::ConvertStringToQuaternion ( std::string  string)
protected

Definition at line 235 of file mitkNavigationToolReader.cpp.

References split().

mitk::NavigationTool::Pointer mitk::NavigationToolReader::DoRead ( std::string  filename)

This method reads a navigation tool from a file.

Parameters
filenameThe filename where the tool is stored, "C:\temp\myTool.igtTool" for example.
Returns
Returns a pointer to the tool which was read. Returns NULL, 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().

Definition at line 45 of file mitkNavigationToolReader.cpp.

References mitk::SceneIO::New().

virtual std::string mitk::NavigationToolReader::GetErrorMessage ( )
virtual
std::string mitk::NavigationToolReader::GetFileWithoutPath ( std::string  FileWithPath)
protected

Definition at line 191 of file mitkNavigationToolReader.cpp.

mitk::NavigationToolReader::mitkClassMacroItkParent ( NavigationToolReader  ,
itk::Object   
)
void mitk::NavigationToolReader::split ( std::string &  text,
std::string &  separators,
std::vector< std::string > &  words 
)
protected

Definition at line 251 of file mitkNavigationToolReader.cpp.

Member Data Documentation

std::string mitk::NavigationToolReader::m_ErrorMessage
protected

Definition at line 61 of file mitkNavigationToolReader.h.

std::string mitk::NavigationToolReader::m_ToolfilePath
protected

Definition at line 63 of file mitkNavigationToolReader.h.

Referenced by NavigationToolReader().


The documentation for this class was generated from the following files: