#include <mitkSceneIO.h>
Definition at line 34 of file mitkSceneIO.h.
mitk::SceneIO::SceneIO |
( |
| ) |
|
|
protected |
mitk::SceneIO::~SceneIO |
( |
| ) |
|
|
protectedvirtual |
Pointer mitk::SceneIO::Clone |
( |
| ) |
const |
std::string mitk::SceneIO::CreateEmptyTempDirectory |
( |
| ) |
|
|
protected |
Get a list of nodes (BaseData containers) that failed to be read/written.
FailedBaseDataListType hold all those nodes that contain BaseData objects which could not be read or written during the last call to LoadScene or SaveScene.
Definition at line 521 of file mitkSceneIO.cpp.
Get a list of properties that failed to be read/written.
Each entry corresponds to a property which could not be (de)serialized. The properties may come from either of
Definition at line 526 of file mitkSceneIO.cpp.
mitk::SceneIO::mitkClassMacroItkParent |
( |
SceneIO |
, |
|
|
itk::Object |
|
|
) |
| |
static Pointer mitk::SceneIO::New |
( |
| ) |
|
|
static |
void mitk::SceneIO::OnUnzipError |
( |
const void * |
pSender, |
|
|
std::pair< const Poco::Zip::ZipLocalFileHeader, const std::string > & |
info |
|
) |
| |
|
protected |
void mitk::SceneIO::OnUnzipOk |
( |
const void * |
pSender, |
|
|
std::pair< const Poco::Zip::ZipLocalFileHeader, const Poco::Path > & |
info |
|
) |
| |
|
protected |
TiXmlElement * mitk::SceneIO::SaveBaseData |
( |
BaseData * |
data, |
|
|
const std::string & |
filenamehint, |
|
|
bool & |
error |
|
) |
| |
|
protected |
TiXmlElement * mitk::SceneIO::SavePropertyList |
( |
PropertyList * |
propertyList, |
|
|
const std::string & |
filenamehint |
|
) |
| |
|
protected |
bool mitk::SceneIO::SaveScene |
( |
DataStorage::SetOfObjects::ConstPointer |
sceneNodes, |
|
|
const DataStorage * |
storage, |
|
|
const std::string & |
filename |
|
) |
| |
|
virtual |
Save a scene of objects to file.
- Returns
- True if complete success, false if any problem occurred. Note that a scene file might still be written if false is returned, it just will not contain every node/property. If writing failed, query GetFailedNodes() and GetFailedProperties() for more detail.
Attempts to write a scene file, which contains the nodes of the provided DataStorage, their parent/child relations, and properties.
- Parameters
-
storage | a DataStorage containing all nodes that should be saved |
filename | full filename of the scene file |
predicate | defining which items of the datastorage to use and which not |
Definition at line 186 of file mitkSceneIO.cpp.
References mitk::ProgressBar::AddStepsToDo(), File, filename, mitk::DataNode::GetData(), mitk::ProgressBar::GetInstance(), mitk::DataNode::GetName(), mitk::DataNode::GetPropertyList(), mitk::DataNode::GetPropertyListNames(), mitk::DataStorage::GetSources(), mitk::UIDGenerator::GetUID(), mitk::PropertyList::IsEmpty(), MITK_ERROR, MITK_INFO, MITK_WARN, mitk::New(), mitk::PropertyList::New(), and mitk::ProgressBar::Progress().
FailedBaseDataListType::Pointer mitk::SceneIO::m_FailedNodes |
|
protected |
unsigned int mitk::SceneIO::m_UnzipErrors |
|
protected |
std::string mitk::SceneIO::m_WorkingDirectory |
|
protected |
The documentation for this class was generated from the following files: