| 95 | } |
| 96 | |
| 97 | bool mitk::Annotation::GetBoolProperty(const std::string &propertyKey, bool &boolValue) const |
| 98 | { |
| 99 | mitk::BoolProperty::Pointer boolprop = dynamic_cast<mitk::BoolProperty *>(GetProperty(propertyKey)); |
| 100 | if (boolprop.IsNull()) |
| 101 | return false; |
| 102 | |
| 103 | boolValue = boolprop->GetValue(); |
| 104 | return true; |
| 105 | } |
| 106 | |
| 107 | bool mitk::Annotation::GetIntProperty(const std::string &propertyKey, int &intValue) const |
| 108 | { |