| 336 | } |
| 337 | |
| 338 | void mitk::Label::SetColor(const mitk::Color &_color) |
| 339 | { |
| 340 | mitk::ColorProperty *colorProp = dynamic_cast<mitk::ColorProperty *>(GetProperty("color")); |
| 341 | if (colorProp != nullptr) |
| 342 | // Update Property |
| 343 | colorProp->SetColor(_color); |
| 344 | else |
| 345 | // Create new Property |
| 346 | SetProperty("color", mitk::ColorProperty::New(_color)); |
| 347 | } |
| 348 | |
| 349 | void mitk::Label::SetCenterOfMassIndex(const mitk::Point3D ¢er) |
| 350 | { |