21 #include <itksys/SystemTools.hxx>
38 MITK_ERROR <<
" Object at " << (
const void *)this->m_Data
39 <<
" is not an mitk::PlanarFigure. Cannot serialize as PlanarFigure.";
43 std::string
filename(this->GetUniqueFilenameInWorkingDirectory());
45 filename += m_FilenameHint;
48 std::string fullname(m_WorkingDirectory);
50 fullname += itksys::SystemTools::ConvertToOutputPath(filename.c_str());
55 writer->SetFileName(fullname);
56 writer->SetInput(const_cast<PlanarFigure *>(pf));
59 catch (std::exception &e)
61 MITK_ERROR <<
" Error serializing object at " << (
const void *)this->m_Data <<
" to " << fullname <<
": "
#define MITK_REGISTER_SERIALIZER(classname)
DataCollection - Class to facilitate loading/accessing structured data.
static const std::string filename