3 #include <SemanticObjectRelations/Shapes/json.h>
11 semantic::data::Shape result;
12 result.json = nlohmann::json(shape).dump();
18 return nlohmann::json::parse(shape.json).get<semrel::ShapePtr>();
23 semantic::data::ShapeList result;
24 result.reserve(
shapes.size());
25 for (
const auto& shape :
shapes)
27 result.push_back(
toIce(*shape));
34 semantic::data::ShapeList result;
35 result.reserve(
shapes.size());
36 for (
const auto& [
id, shape] :
shapes)
38 result.push_back(
toIce(*shape));
45 semrel::ShapeList result;
46 result.reserve(
shapes.size());
47 for (
const auto& shape :
shapes)
49 result.push_back(
fromIce(shape));