31 auto nodes = storage->
GetAll();
32 for (
auto node : *(nodes.GetPointer()))
49 mitkThrow() <<
"Cannot ensure node UID. Passed node pointer is NULL.";
59 mitkThrow() <<
"Cannot ensure node UID. Passed node pointer is NULL.";
63 std::string propUID =
"";
66 if (uidProp.IsNotNull())
68 propUID = uidProp->GetValueAsString();
75 if (uidProp.IsNotNull())
77 propUID = uidProp->GetValueAsString();
82 propUID = generator.
GetUID();
109 if (uidProp.IsNotNull())
111 result = uidProp->GetValueAsString() == uid;
119 if (uidProp.IsNotNull())
121 result = uidProp->GetValueAsString() == uid;
Data management class that handles 'was created by' relations.
bool MITKMODELFIT_EXPORT CheckModelFitUID(const mitk::BaseData *data, const NodeUIDType &uid)
Base of all data objects.
DataNode::Pointer MITKMODELFIT_EXPORT GetNodeByModelFitUID(const mitk::DataStorage *storage, const NodeUIDType &uid)
std::string MITKCORE_EXPORT GeneratePropertyNameForDICOMTag(unsigned int group, unsigned int element)
void SetProperty(const std::string &propertyKey, BaseProperty *property, const std::string &contextName="", bool fallBackOnDefaultContext=false) override
Add new or change existent property.
virtual SetOfObjects::ConstPointer GetAll() const =0
returns a set of all data objects that are stored in the data storage
BaseData * GetData() const
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
NodeUIDType MITKMODELFIT_EXPORT EnsureModelFitUID(mitk::BaseData *data)
static const std::string UID_PROPERTY_NAME()
mitk::BaseProperty::Pointer GetProperty(const char *propertyKey) const
Get the property (instance of BaseProperty) with key propertyKey from the PropertyList, and set it to this, respectively;.
Class for nodes of the DataTree.