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

Serializes mitk::GeometryData for mitk::SceneIO. More...

#include <mitkGeometryDataSerializer.h>

Inheritance diagram for mitk::GeometryDataSerializer:
Collaboration diagram for mitk::GeometryDataSerializer:

Public Member Functions

 mitkClassMacro (GeometryDataSerializer, BaseDataSerializer)
 
Pointer Clone () const
 
virtual std::string Serialize () override
 Serializes given BaseData object. More...
 
- Public Member Functions inherited from mitk::BaseDataSerializer
 mitkClassMacroItkParent (BaseDataSerializer, itk::Object)
 
virtual void SetFilenameHint (const char *_arg)
 
virtual const char * GetFilenameHint () const
 
virtual void SetWorkingDirectory (const char *_arg)
 
virtual const char * GetWorkingDirectory () const
 
virtual void SetData (const BaseData *_arg)
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 GeometryDataSerializer ()
 
virtual ~GeometryDataSerializer ()
 
- Protected Member Functions inherited from mitk::BaseDataSerializer
 BaseDataSerializer ()
 
virtual ~BaseDataSerializer ()
 
std::string GetUniqueFilenameInWorkingDirectory ()
 

Additional Inherited Members

- Protected Attributes inherited from mitk::BaseDataSerializer
std::string m_FilenameHint
 
std::string m_WorkingDirectory
 
BaseData::ConstPointer m_Data
 

Detailed Description

Serializes mitk::GeometryData for mitk::SceneIO.

Warning
depends on mitk::GeometryDataWriterService which is first implemented only for the Geometry3D class! See current status of that class if you want to use other geomety types.

Definition at line 30 of file mitkGeometryDataSerializer.h.

Constructor & Destructor Documentation

mitk::GeometryDataSerializer::GeometryDataSerializer ( )
protected

Definition at line 26 of file mitkGeometryDataSerializer.cpp.

mitk::GeometryDataSerializer::~GeometryDataSerializer ( )
protectedvirtual

Definition at line 30 of file mitkGeometryDataSerializer.cpp.

Member Function Documentation

Pointer mitk::GeometryDataSerializer::Clone ( ) const
mitk::GeometryDataSerializer::mitkClassMacro ( GeometryDataSerializer  ,
BaseDataSerializer   
)
static Pointer mitk::GeometryDataSerializer::New ( )
static
std::string mitk::GeometryDataSerializer::Serialize ( )
overridevirtual

Serializes given BaseData object.

Returns
the filename of the newly created file.

This should be overwritten by specific sub-classes.

Reimplemented from mitk::BaseDataSerializer.

Definition at line 34 of file mitkGeometryDataSerializer.cpp.

References filename, mitk::IOUtil::GetDirectorySeparator(), MITK_ERROR, and mitk::IOUtil::Save().


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