| 347 | } |
| 348 | |
| 349 | void mitk::Label::SetCenterOfMassIndex(const mitk::Point3D ¢er) |
| 350 | { |
| 351 | mitk::Point3dProperty *property = dynamic_cast<mitk::Point3dProperty *>(GetProperty("center.index")); |
| 352 | if (property != nullptr) |
| 353 | { |
| 354 | // Update Property |
| 355 | property->SetValue(center); |
| 356 | } |
| 357 | else |
| 358 | // Create new Property |
| 359 | { |
| 360 | SetProperty("center.index", mitk::Point3dProperty::New(center)); |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | mitk::Point3D mitk::Label::GetCenterOfMassIndex() const |
| 365 | { |
no test coverage detected