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

Method setTypeFromString

annotation/Annotation.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void 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
45float Annotation::getArea() const {
46 if (!_coordinates.empty()) {

Callers 3

loadFromRepoMethod · 0.80
loadFromRepoMethod · 0.80
loadFromRepoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected