| 65 | } |
| 66 | |
| 67 | float 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 | |
| 77 | unsigned int AnnotationGroup::getNumberOfPoints() const { |
| 78 | unsigned int nrPoints = 0; |
nothing calls this directly
no outgoing calls
no test coverage detected