35 MITK_ERROR <<
" Object at " << (
const void *)this->m_Data
36 <<
" is not an mitk::PointSet. Cannot serialize as pointset.";
40 std::string
filename(this->GetUniqueFilenameInWorkingDirectory());
42 filename += m_FilenameHint;
45 std::string fullname(m_WorkingDirectory);
53 catch (std::exception &e)
55 MITK_ERROR <<
" Error serializing object at " << (
const void *)this->m_Data <<
" to " << fullname <<
": "
virtual ~PointSetSerializer()
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.
Serializes mitk::Surface for mitk::SceneIO.
DataCollection - Class to facilitate loading/accessing structured data.
Data structure which stores a set of points. Superclass of mitk::Mesh.
static const std::string filename