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

This class offers methods to write objects of the class navigation tool permanently to the harddisk. The objects are saved in a special fileformat which can be read by the class NavigationToolReader to restore the object. More...

#include <mitkNavigationToolWriter.h>

Inheritance diagram for mitk::NavigationToolWriter:
Collaboration diagram for mitk::NavigationToolWriter:

Public Member Functions

 mitkClassMacroItkParent (NavigationToolWriter, itk::Object)
 
Pointer Clone () const
 
bool DoWrite (std::string FileName, mitk::NavigationTool::Pointer Tool)
 Writes a navigation tool to a file. More...
 
virtual std::string GetErrorMessage ()
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 NavigationToolWriter ()
 
 ~NavigationToolWriter ()
 
mitk::DataNode::Pointer ConvertToDataNode (mitk::NavigationTool::Pointer Tool)
 
std::string GetFileWithoutPath (std::string FileWithPath)
 
std::string ConvertPointSetToString (mitk::PointSet::Pointer pointSet)
 
std::string ConvertPointToString (mitk::Point3D point)
 
std::string ConvertQuaternionToString (mitk::Quaternion quat)
 

Protected Attributes

std::string m_ErrorMessage
 

Detailed Description

This class offers methods to write objects of the class navigation tool permanently to the harddisk. The objects are saved in a special fileformat which can be read by the class NavigationToolReader to restore the object.

Documentation

Definition at line 39 of file mitkNavigationToolWriter.h.

Constructor & Destructor Documentation

mitk::NavigationToolWriter::NavigationToolWriter ( )
protected

Definition at line 32 of file mitkNavigationToolWriter.cpp.

mitk::NavigationToolWriter::~NavigationToolWriter ( )
protected

Definition at line 37 of file mitkNavigationToolWriter.cpp.

Member Function Documentation

Pointer mitk::NavigationToolWriter::Clone ( ) const
std::string mitk::NavigationToolWriter::ConvertPointSetToString ( mitk::PointSet::Pointer  pointSet)
protected

Definition at line 145 of file mitkNavigationToolWriter.cpp.

std::string mitk::NavigationToolWriter::ConvertPointToString ( mitk::Point3D  point)
protected

Definition at line 157 of file mitkNavigationToolWriter.cpp.

std::string mitk::NavigationToolWriter::ConvertQuaternionToString ( mitk::Quaternion  quat)
protected

Definition at line 164 of file mitkNavigationToolWriter.cpp.

mitk::DataNode::Pointer mitk::NavigationToolWriter::ConvertToDataNode ( mitk::NavigationTool::Pointer  Tool)
protected
bool mitk::NavigationToolWriter::DoWrite ( std::string  FileName,
mitk::NavigationTool::Pointer  Tool 
)

Writes a navigation tool to a file.

Parameters
FileNameThe filename (complete, with path, C:/temp/myTool.igtTool for example)
ToolThe tool which should be written to the file.
Returns
Returns true if the file was written successfully, false if not. In the second case you can get the error message by using the method GetErrorMessage().

Definition at line 42 of file mitkNavigationToolWriter.cpp.

References mitk::IOUtil::CreateTemporaryDirectory(), MITK_ERROR, MITK_WARN, mitk::SceneIO::New(), and mitk::StandaloneDataStorage::New().

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

Definition at line 139 of file mitkNavigationToolWriter.cpp.

mitk::NavigationToolWriter::mitkClassMacroItkParent ( NavigationToolWriter  ,
itk::Object   
)

Member Data Documentation

std::string mitk::NavigationToolWriter::m_ErrorMessage
protected

Definition at line 62 of file mitkNavigationToolWriter.h.


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