| 221 | } |
| 222 | |
| 223 | bool mitk::Annotation::GetColor(float rgb[], const std::string &propertyKey) const |
| 224 | { |
| 225 | mitk::ColorProperty::Pointer colorprop = dynamic_cast<mitk::ColorProperty *>(GetProperty(propertyKey)); |
| 226 | if (colorprop.IsNull()) |
| 227 | return false; |
| 228 | |
| 229 | memcpy(rgb, colorprop->GetColor().GetDataPointer(), 3 * sizeof(float)); |
| 230 | return true; |
| 231 | } |
| 232 | |
| 233 | void mitk::Annotation::SetColor(const mitk::Color &color, const std::string &propertyKey) |
| 234 | { |