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

Method getCoordinate

annotation/Annotation.cpp:101–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101Point Annotation::getCoordinate(const int& index) const
102{
103 if (index < 0) {
104 return *(_coordinates.end() - abs(index));
105 }
106 else {
107 return *(_coordinates.begin() + index);
108 }
109}
110
111std::vector<Point> Annotation::getCoordinates() const
112{

Callers 4

keyPressEventMethod · 0.80
QtAnnotationMethod · 0.80
removeCoordinateMethod · 0.80
setCoordinatesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected