21 #include <itksys/SystemTools.hxx>
43 MITK_ERROR <<
" Object at " << (
const void*) this->m_Data
44 <<
" is not an mitk::FiberBundle. Cannot serialize as FiberBundle.";
48 std::string
filename( this->GetUniqueFilenameInWorkingDirectory() );
50 filename += m_FilenameHint;
53 std::string fullname(m_WorkingDirectory);
55 fullname += itksys::SystemTools::ConvertToOutputPath(filename.c_str());
61 catch (std::exception& e)
63 MITK_ERROR <<
" Error serializing object at " << (
const void*) this->m_Data
static void Save(const mitk::BaseData *data, const std::string &path)
Save a mitk::BaseData instance.
#define MITK_REGISTER_SERIALIZER(classname)
DataCollection - Class to facilitate loading/accessing structured data.
static const std::string filename
Base Class for Fiber Bundles;.
virtual std::string Serialize() override
Serializes given BaseData object.
Serializes mitk::Surface for mitk::SceneIO.
virtual ~FiberBundleSerializer()