Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
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>
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 |
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.
|
protected |
Definition at line 32 of file mitkNavigationToolWriter.cpp.
|
protected |
Definition at line 37 of file mitkNavigationToolWriter.cpp.
Pointer mitk::NavigationToolWriter::Clone | ( | ) | const |
|
protected |
Definition at line 145 of file mitkNavigationToolWriter.cpp.
|
protected |
Definition at line 157 of file mitkNavigationToolWriter.cpp.
|
protected |
Definition at line 164 of file mitkNavigationToolWriter.cpp.
|
protected |
Definition at line 102 of file mitkNavigationToolWriter.cpp.
References mitk::IntProperty::New(), mitk::StringProperty::New(), and mitk::DataNode::New().
bool mitk::NavigationToolWriter::DoWrite | ( | std::string | FileName, |
mitk::NavigationTool::Pointer | Tool | ||
) |
Writes a navigation tool to a file.
FileName | The filename (complete, with path, C:/temp/myTool.igtTool for example) |
Tool | The tool which should be written to the file. |
Definition at line 42 of file mitkNavigationToolWriter.cpp.
References mitk::IOUtil::CreateTemporaryDirectory(), MITK_ERROR, MITK_WARN, mitk::SceneIO::New(), and mitk::StandaloneDataStorage::New().
|
virtual |
|
protected |
Definition at line 139 of file mitkNavigationToolWriter.cpp.
mitk::NavigationToolWriter::mitkClassMacroItkParent | ( | NavigationToolWriter | , |
itk::Object | |||
) |
|
static |
|
protected |
Definition at line 62 of file mitkNavigationToolWriter.h.