MCPcopy Create free account
hub / github.com/MITK/MITK / FromJSON

Method FromJSON

Modules/Core/src/DataManagement/mitkAnnotationProperty.cpp:102–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102bool mitk::AnnotationProperty::FromJSON(const nlohmann::json& j)
103{
104 this->SetLabel(j["Label"].get<std::string>());
105 this->SetPosition(j["Position"].get<Point3D>());
106 return true;
107}

Callers

nothing calls this directly

Calls 2

SetPositionMethod · 0.95
SetLabelMethod · 0.45

Tested by

no test coverage detected