| 373 | } |
| 374 | |
| 375 | void mitk::Label::SetCenterOfMassCoordinates(const mitk::Point3D ¢er) |
| 376 | { |
| 377 | mitk::Point3dProperty *property = dynamic_cast<mitk::Point3dProperty *>(GetProperty("center.coordinates")); |
| 378 | if (property != nullptr) |
| 379 | { |
| 380 | // Update Property |
| 381 | property->SetValue(center); |
| 382 | } |
| 383 | else |
| 384 | // Create new Property |
| 385 | { |
| 386 | SetProperty("center.coordinates", mitk::Point3dProperty::New(center)); |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | mitk::Point3D mitk::Label::GetCenterOfMassCoordinates() const |
| 391 | { |
no test coverage detected