render_params.h
Go to the documentation of this file.
1 /* -------------------------------------------------------------------------
2  * A repertory of multi primitive-to-primitive (MP2P) ICP algorithms in C++
3  * Copyright (C) 2018-2021 Jose Luis Blanco, University of Almeria
4  * See LICENSE for license information.
5  * ------------------------------------------------------------------------- */
6 
13 #pragma once
14 
15 #include <mp2p_icp/layer_name_t.h>
16 #include <mrpt/img/TColor.h>
17 #include <mrpt/img/color_maps.h>
18 #include <mrpt/opengl/opengl_frwds.h>
19 #include <mrpt/typemeta/TEnumType.h>
20 
21 #include <map>
22 #include <optional>
23 #include <vector>
24 
25 namespace mp2p_icp
26 {
33 {
34  render_params_planes_t() = default;
35 
36  bool visible = true;
37  double halfWidth = 1.0;
38  double gridSpacing = 0.25;
39  mrpt::img::TColor color{0xff, 0xff, 0xff, 0xff};
40 };
41 
44 {
45  render_params_lines_t() = default;
46 
47  bool visible = true;
48  mrpt::img::TColor color{0xff, 0x00, 0x00, 0xff};
49  double length = 20.0;
50  std::optional<std::vector<double>> lengths;
51 };
52 
53 enum class Coordinate : uint8_t
54 {
55  X = 0,
56  Y,
57  Z
58 };
59 
61 {
63  mrpt::img::TColormap colorMap = mrpt::img::cmHOT;
64 
66  std::optional<Coordinate> recolorizeByCoordinate;
67 
75  std::optional<float> colorMapMinCoord, colorMapMaxCoord;
76 };
77 
81 {
82  render_params_point_layer_t() = default;
83 
86  float pointSize = 1.0f;
87 
89  mrpt::img::TColor color{0x00, 0x00, 0xff, 0xff};
90 
93  std::optional<color_mode_t> colorMode;
94 };
95 
98 {
99  render_params_points_t() = default;
100 
103  bool visible = true;
104 
108 
111  std::map<layer_name_t, render_params_point_layer_t> perLayer;
112 };
113 
116 {
117  render_params_t() = default;
118 
122 };
123 
125 {
126  render_params_pairings_pt2pt_t() = default;
127 
128  bool visible = true;
129 
130  mrpt::img::TColor color{0x80, 0x80, 0x80, 0xa0};
131 };
132 
134 {
135  render_params_pairings_pt2pl_t() = default;
136 
137  bool visible = true;
138 
139  mrpt::img::TColor segmentColor{0x00, 0xff, 0x00, 0xa0};
140  mrpt::img::TColor planePatchColor{0x00, 0xff, 0x00, 0x80};
141  double planePatchSize = 0.2;
142 };
143 
145 {
146  render_params_pairings_pt2ln_t() = default;
147 
148  bool visible = true;
149 
150  mrpt::img::TColor segmentColor{0x00, 0xff, 0x00, 0xa0};
151  mrpt::img::TColor lineColor{0x00, 0xff, 0x00, 0x80};
152  double lineLength = 0.2;
153 };
154 
157 {
158  pairings_render_params_t() = default;
159 
163 };
164 
167 } // namespace mp2p_icp
168 
169 MRPT_ENUM_TYPE_BEGIN(mp2p_icp::Coordinate)
173 MRPT_ENUM_TYPE_END()
std::optional< color_mode_t > colorMode
Definition: render_params.h:93
render_params_pairings_pt2pt_t pt2pt
std::map< layer_name_t, render_params_point_layer_t > perLayer
render_params_points_t points
render_params_planes_t planes
render_params_lines_t lines
TF2SIMD_FORCE_INLINE tf2Scalar length(const Quaternion &q)
MRPT_FILL_ENUM_MEMBER(mp2p_icp::Coordinate, X)
render_params_pairings_pt2pl_t pt2pl
std::optional< std::vector< double > > lengths
individual lengths
Definition: render_params.h:50
std::optional< float > colorMapMinCoord
Definition: render_params.h:75
std::optional< Coordinate > recolorizeByCoordinate
Definition: render_params.h:66
render_params_pairings_pt2ln_t pt2ln
render_params_point_layer_t allLayers


mrpt_local_obstacles
Author(s): Jose-Luis Blanco-Claraco
autogenerated on Thu Jun 1 2023 03:06:43