| 34 | } |
| 35 | |
| 36 | void Annotation::setTypeFromString(const std::string& type) { |
| 37 | for (unsigned int i = 0; i < 7; ++i) { |
| 38 | if (type == std::string(_typeStrings[i])) { |
| 39 | _type = (Annotation::Type)i; |
| 40 | } |
| 41 | } |
| 42 | _modified = true; |
| 43 | } |
| 44 | |
| 45 | float Annotation::getArea() const { |
| 46 | if (!_coordinates.empty()) { |
no outgoing calls
no test coverage detected