30 mitkThrow() <<
"Cannot ensure node UID. Passed node pointer is NULL.";
33 std::string propUID =
"";
37 propUID = generator.
GetUID();
51 std::string propUID =
"";
54 result = propUID == uid;
65 mitkThrow() <<
"Cannot ensure node UID. Passed node pointer is NULL.";
69 std::string propUID =
"";
71 if (uidProp.IsNotNull())
73 propUID = uidProp->GetValueAsString();
78 propUID = generator.
GetUID();
92 if (uidProp.IsNotNull())
94 result = uidProp->GetValueAsString() == uid;
Base of all data objects.
const char *const Prop_UID
const char *const nodeProp_UID
NodeUIDType MITKMATCHPOINTREGISTRATION_EXPORT EnsureUID(mitk::DataNode *node)
bool GetStringProperty(const char *propertyKey, std::string &string, const mitk::BaseRenderer *renderer=nullptr) const
Convenience access method for string properties (instances of StringProperty)
void SetProperty(const char *propertyKey, BaseProperty *property)
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)
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.