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

Method insertCoordinate

annotation/Annotation.cpp:76–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void Annotation::insertCoordinate(const int& index, const Point& xy) {
77 if (index < 0) {
78 _coordinates.insert(_coordinates.end() - abs(index), xy);
79 }
80 else {
81 _coordinates.insert(_coordinates.begin() + index, xy);
82 }
83 _modified = true;
84}
85
86void Annotation::insertCoordinate(const int& index, const float& x, const float& y) {
87 this->insertCoordinate(index, Point(x, y));

Callers

nothing calls this directly

Calls 2

PointClass · 0.85
insertMethod · 0.80

Tested by

no test coverage detected