26 mitkThrow() <<
"Cannot ensure node UID. Passed node pointer is nullptr.";
29 std::string propUID =
"";
33 propUID = generator.
GetUID();
47 std::string propUID =
"";
50 result = propUID == uid;
61 mitkThrow() <<
"Cannot ensure node UID. Passed node pointer is nullptr.";
65 std::string propUID =
"";
67 if (uidProp.IsNotNull())
69 propUID = uidProp->GetValueAsString();
74 propUID = generator.
GetUID();
88 if (uidProp.IsNotNull())
90 result = uidProp->GetValueAsString() == uid;
Base of all data objects.
bool GetStringProperty(const char *propertyKey, std::string &string, const mitk::BaseRenderer *renderer=nullptr) const
Convenience access method for string properties (instances of StringProperty)
const char *const Prop_UID
const char *const nodeProp_UID
NodeUIDType MITKMATCHPOINTREGISTRATION_EXPORT EnsureUID(mitk::DataNode *node)
void SetProperty(const std::string &propertyKey, BaseProperty *property, const std::string &contextName="", bool fallBackOnDefaultContext=false) override
Add new or change existent property.
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;.
bool MITKMATCHPOINTREGISTRATION_EXPORT CheckUID(const mitk::DataNode *node, const NodeUIDType &uid)
void SetStringProperty(const char *propertyKey, const char *string, const mitk::BaseRenderer *renderer=nullptr)
Convenience method for setting string properties (instances of StringProperty)
Class for nodes of the DataTree.