MCPcopy Create free account
hub / github.com/MITK/MITK / GetCenterOfMassCoordinates

Method GetCenterOfMassCoordinates

Modules/Multilabel/src/mitkLabel.cpp:390–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390mitk::Point3D mitk::Label::GetCenterOfMassCoordinates() const
391{
392 mitk::Point3dProperty *property = dynamic_cast<mitk::Point3dProperty *>(GetProperty("center.coordinates"));
393 if (nullptr != property)
394 return property->GetValue();
395
396 Point3D pnt(0, 0, 0);
397
398 return pnt;
399}
400
401void mitk::Label::ResetCenterOfMass()
402{

Callers 3

PrepareGoToLabelMethod · 0.80

Calls 2

GetPropertyFunction · 0.50
GetValueMethod · 0.45

Tested by 2

PrepareGoToLabelMethod · 0.64