| 115 | } |
| 116 | |
| 117 | bool mitk::Annotation::GetFloatProperty(const std::string &propertyKey, float &floatValue) const |
| 118 | { |
| 119 | mitk::FloatProperty::Pointer floatprop = dynamic_cast<mitk::FloatProperty *>(GetProperty(propertyKey)); |
| 120 | if (floatprop.IsNull()) |
| 121 | return false; |
| 122 | |
| 123 | floatValue = floatprop->GetValue(); |
| 124 | return true; |
| 125 | } |
| 126 | |
| 127 | bool mitk::Annotation::GetStringProperty(const std::string &propertyKey, std::string &string) const |
| 128 | { |