MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / getArea

Method getArea

annotation/AnnotationGroup.cpp:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67float AnnotationGroup::getArea() const {
68 float area = 0;
69 for (std::vector<std::weak_ptr<AnnotationBase> >::const_iterator it = _groupMembers.begin(); it != _groupMembers.end(); ++it) {
70 if (std::shared_ptr<AnnotationBase> localMember = it->lock()) {
71 area += localMember->getArea();
72 }
73 }
74 return area;
75}
76
77unsigned int AnnotationGroup::getNumberOfPoints() const {
78 unsigned int nrPoints = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected