19 #ifndef SNARK_GRAPHICS_APPLICATIONS_LABELPOINTS_POINTWITHID_H_
20 #define SNARK_GRAPHICS_APPLICATIONS_LABELPOINTS_POINTWITHID_H_
22 #include <comma/base/types.h>
23 #include <comma/visiting/traits.h>
24 #include <snark/visiting/eigen.h>
26 namespace snark {
namespace graphics {
namespace View {
30 Eigen::Vector3d point;
36 namespace comma {
namespace visiting {
38 template <>
struct traits< snark::graphics::View::PointWithId >
40 template <
typename Key,
class Visitor >
41 static void visit( Key, snark::graphics::View::PointWithId& p, Visitor& v )
43 v.apply(
"point", p.point );
44 v.apply(
"id", p.id );
47 template <
typename Key,
class Visitor >
48 static void visit( Key,
const snark::graphics::View::PointWithId& p, Visitor& v )
50 v.apply(
"point", p.point );
51 v.apply(
"id", p.id );
57 #endif // SNARK_GRAPHICS_APPLICATIONS_LABELPOINTS_POINTWITHID_H_