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

Method GetCenterOfMassIndex

Modules/Multilabel/src/mitkLabel.cpp:364–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364mitk::Point3D mitk::Label::GetCenterOfMassIndex() const
365{
366 mitk::Point3dProperty *property = dynamic_cast<mitk::Point3dProperty *>(GetProperty("center.index"));
367 if (nullptr!= property)
368 return property->GetValue();
369
370 Point3D pnt(0, 0, 0);
371
372 return pnt;
373}
374
375void mitk::Label::SetCenterOfMassCoordinates(const mitk::Point3D &center)
376{

Callers 3

PrepareGoToLabelMethod · 0.80

Calls 2

GetPropertyFunction · 0.50
GetValueMethod · 0.45

Tested by 2

PrepareGoToLabelMethod · 0.64