33 const Surface *surface =
dynamic_cast<const Surface *
>(m_Data.GetPointer());
36 MITK_ERROR <<
" Object at " << (
const void *)this->m_Data
37 <<
" is not an mitk::Surface. Cannot serialize as surface.";
41 std::string
filename(this->GetUniqueFilenameInWorkingDirectory());
43 filename += m_FilenameHint;
46 std::string fullname(m_WorkingDirectory);
54 catch (std::exception &e)
56 MITK_ERROR <<
" Error serializing object at " << (
const void *)this->m_Data <<
" to " << fullname <<
": "
Class for storing surfaces (vtkPolyData).
static void Save(const mitk::BaseData *data, const std::string &path)
Save a mitk::BaseData instance.
static char GetDirectorySeparator()
#define MITK_REGISTER_SERIALIZER(classname)
DataCollection - Class to facilitate loading/accessing structured data.
virtual ~SurfaceSerializer()
virtual std::string Serialize() override
Serializes given BaseData object.
static const std::string filename
Serializes mitk::Surface for mitk::SceneIO.