40 MITK_ERROR <<
" Object at " << (
const void *)this->m_Data <<
" is not an mitk::GeometryData. Cannot serialize...";
45 std::string
filename(this->GetUniqueFilenameInWorkingDirectory());
47 filename += m_FilenameHint;
48 filename +=
".mitkgeometry";
50 std::string fullname(m_WorkingDirectory);
60 catch (
const std::exception &e)
62 MITK_ERROR <<
"Unable to serialize GeometryData object: " << e.what();
static void Save(const mitk::BaseData *data, const std::string &path)
Save a mitk::BaseData instance.
static char GetDirectorySeparator()
#define MITK_REGISTER_SERIALIZER(classname)
virtual std::string Serialize() override
Serializes given BaseData object.
DataCollection - Class to facilitate loading/accessing structured data.
static const std::string filename
Serializes mitk::GeometryData for mitk::SceneIO.
Data class only having a BaseGeometry but not containing any specific data.
virtual ~GeometryDataSerializer()