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

Method getNumberOfPoints

annotation/AnnotationGroup.cpp:77–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77unsigned int AnnotationGroup::getNumberOfPoints() const {
78 unsigned int nrPoints = 0;
79 for (std::vector<std::weak_ptr<AnnotationBase> >::const_iterator it = _groupMembers.begin(); it != _groupMembers.end(); ++it) {
80 if (std::shared_ptr<AnnotationBase> localMember = it->lock()) {
81 nrPoints += localMember->getNumberOfPoints();
82 }
83 }
84 return nrPoints;
85}
86
87std::map<std::string, std::string> AnnotationGroup::getAttributes() const {
88 return _attributes;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected