21 #include <Poco/Zip/ZipLocalFileHeader.h>
38 itkFactorylessNewMacro(Self);
56 virtual DataStorage::Pointer
LoadScene(
const std::string &filename,
58 bool clearStorageFirst =
false);
76 bool clearStorageFirst =
false);
93 virtual bool SaveScene(DataStorage::SetOfObjects::ConstPointer sceneNodes,
95 const std::string &filename);
124 tinyxml2::XMLElement *
SaveBaseData(tinyxml2::XMLDocument &doc,
BaseData *data,
const std::string &filenamehint,
bool &error);
127 void OnUnzipError(
const void *pSender, std::pair<const Poco::Zip::ZipLocalFileHeader, const std::string> &info);
128 void OnUnzipOk(
const void *pSender, std::pair<const Poco::Zip::ZipLocalFileHeader, const Poco::Path> &info);
#define MITKSCENESERIALIZATION_EXPORT
Base of all data objects.
Data management class that handles 'was created by' relations.
itk::VectorContainer< unsigned int, DataNode::Pointer > SetOfObjects
A Container of objects that is used as a result set of GetSubset() query operations (Set of.
Key-value list holding instances of BaseProperty.
std::string m_WorkingDirectory
unsigned int m_UnzipErrors
tinyxml2::XMLElement * SavePropertyList(tinyxml2::XMLDocument &doc, PropertyList *propertyList, const std::string &filenamehint)
PropertyList::Pointer m_FailedProperties
void OnUnzipError(const void *pSender, std::pair< const Poco::Zip::ZipLocalFileHeader, const std::string > &info)
virtual DataStorage::Pointer LoadSceneUnzipped(const std::string &indexfilename, DataStorage *storage=nullptr, bool clearStorageFirst=false)
Load a scene of objects from directory.
virtual bool SaveScene(DataStorage::SetOfObjects::ConstPointer sceneNodes, const DataStorage *storage, const std::string &filename)
Save a scene of objects to file.
void OnUnzipOk(const void *pSender, std::pair< const Poco::Zip::ZipLocalFileHeader, const Poco::Path > &info)
const FailedBaseDataListType * GetFailedNodes()
Get a list of nodes (BaseData containers) that failed to be read/written.
std::string CreateEmptyTempDirectory()
const PropertyList * GetFailedProperties()
Get a list of properties that failed to be read/written.
mitkClassMacroItkParent(SceneIO, itk::Object)
DataStorage::SetOfObjects FailedBaseDataListType
FailedBaseDataListType::Pointer m_FailedNodes
virtual DataStorage::Pointer LoadScene(const std::string &filename, DataStorage *storage=nullptr, bool clearStorageFirst=false)
Load a scene of objects from file.
tinyxml2::XMLElement * SaveBaseData(tinyxml2::XMLDocument &doc, BaseData *data, const std::string &filenamehint, bool &error)
Find image slices visible on a given plane.