json_elements.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SimoxUtility/json.h>
4 #include <SimoxUtility/meta/EnumNames.hpp>
5 
6 #include <RobotAPI/interface/ArViz/Elements.h>
7 
8 
9 namespace armarx::viz::data
10 {
11 
12  namespace ElementFlags
13  {
14  extern const simox::meta::IntEnumNames names;
15  }
16 
17  namespace ModelDrawStyle
18  {
19  extern const simox::meta::IntEnumNames names;
20  }
21 
22 
23  void to_json(nlohmann::json& j, const ColoredPoint& coloredPoint);
24  void from_json(const nlohmann::json& j, ColoredPoint& coloredPoint);
25 
26 
27  // Elements
28 
29  void to_json(nlohmann::json& j, const ElementArrow& line);
30  void from_json(const nlohmann::json& j, ElementArrow& line);
31 
32 
33  void to_json(nlohmann::json& j, const ElementArrowCircle& arrowCircle);
34  void from_json(const nlohmann::json& j, ElementArrowCircle& arrowCircle);
35 
36 
37  void to_json(nlohmann::json& j, const ElementBox& box);
38  void from_json(const nlohmann::json& j, ElementBox& box);
39 
40 
41  void to_json(nlohmann::json& j, const ElementCylinder& cylinder);
42  void from_json(const nlohmann::json& j, ElementCylinder& cylinder);
43 
44 
45  void to_json(nlohmann::json& j, const ElementCylindroid& cylindroid);
46  void from_json(const nlohmann::json& j, ElementCylindroid& cylindroid);
47 
48 
49  void to_json(nlohmann::json& j, const ElementLine& line);
50  void from_json(const nlohmann::json& j, ElementLine& line);
51 
52 
53  void to_json(nlohmann::json& j, const ElementMesh& mesh);
54  void from_json(const nlohmann::json& j, ElementMesh& mesh);
55 
56 
57  void to_json(nlohmann::json& j, const ElementObject& object);
58  void from_json(const nlohmann::json& j, ElementObject& object);
59 
60 
61  void to_json(nlohmann::json& j, const ElementPointCloud& pointCloud);
62  void from_json(const nlohmann::json& j, ElementPointCloud& pointCloud);
63 
64 
65  void to_json(nlohmann::json& j, const ElementPolygon& polygon);
66  void from_json(const nlohmann::json& j, ElementPolygon& polygon);
67 
68 
69  void to_json(nlohmann::json& j, const ElementPose& pose);
70  void from_json(const nlohmann::json& j, ElementPose& pose);
71 
72 
73  void to_json(nlohmann::json& j, const ElementPath& path);
74  void from_json(const nlohmann::json& j, ElementPath& path);
75 
76 
77  void to_json(nlohmann::json& j, const ElementRobot& robot);
78  void from_json(const nlohmann::json& j, ElementRobot& robot);
79 
80 
81  void to_json(nlohmann::json& j, const ElementSphere& sphere);
82  void from_json(const nlohmann::json& j, ElementSphere& sphere);
83 
84 
85  void to_json(nlohmann::json& j, const ElementEllipsoid& sphere);
86  void from_json(const nlohmann::json& j, ElementEllipsoid& sphere);
87 
88 
89  void to_json(nlohmann::json& j, const ElementText& text);
90  void from_json(const nlohmann::json& j, ElementText& text);
91 
92 }
armarx::viz::data::from_json
void from_json(nlohmann::json const &j, RecordingBatchHeader &batch)
Definition: ArVizStorage.cpp:382
armarx::viz::data::ModelDrawStyle::names
const simox::meta::IntEnumNames names
Definition: json_elements.cpp:21
armarx::viz::data
Definition: ArVizStorage.cpp:370
armarx::viz::data::ElementFlags::names
const simox::meta::IntEnumNames names
Definition: json_elements.cpp:14
armarx::viz::data::to_json
void to_json(nlohmann::json &j, RecordingBatchHeader const &batch)
Definition: ArVizStorage.cpp:373