19 #include <itksys/SystemTools.hxx> 38 if (wrapper ==
nullptr)
41 <<
" is not an mitk::MAPRegistrationWrapper. Cannot serialize as MAPRegistrationWrapper for MatchPoint registration objects.";
52 fullname += itksys::SystemTools::ConvertToOutputPath(filename.c_str());
58 writer.AbstractFileWriter::SetInput( dynamic_cast<const mitk::MAPRegistrationWrapper*>( wrapper ) );
61 catch (std::exception& e)
std::string m_WorkingDirectory
#define MITK_REGISTER_SERIALIZER(classname)
std::string GetUniqueFilenameInWorkingDirectory()
DataCollection - Class to facilitate loading/accessing structured data.
std::string Serialize() override
Serializes given BaseData object.
MAPRegistrationWrapper Wrapper class to allow the handling of MatchPoint registration objects as mitk...
BaseData::ConstPointer m_Data
Serializes mitk::MAPRegistrationWrapper for mitk::SceneIO.
void SetOutputLocation(const std::string &location) override
Set the output location.
std::string m_FilenameHint
void Write() override
Write the base data to the specified location or output stream.
~MAPRegistrationWrapperSerializer() override