| 254 | } |
| 255 | |
| 256 | bool mitk::Annotation::GetOpacity(float &opacity, const std::string &propertyKey) const |
| 257 | { |
| 258 | mitk::FloatProperty::Pointer opacityprop = dynamic_cast<mitk::FloatProperty *>(GetProperty(propertyKey)); |
| 259 | if (opacityprop.IsNull()) |
| 260 | return false; |
| 261 | |
| 262 | opacity = opacityprop->GetValue(); |
| 263 | return true; |
| 264 | } |
| 265 | |
| 266 | void mitk::Annotation::SetOpacity(float opacity, const std::string &propertyKey) |
| 267 | { |