Rerun C++ SDK
Loading...
Searching...
No Matches
view_coordinates.hpp
1// DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/cpp/mod.rs
2// Based on "crates/build/re_type_definitions/rerun/archetypes/view_coordinates.def.rs".
3
4#pragma once
5
6#include "../archetype_utils.hpp"
7#include "../collection.hpp"
8#include "../component_batch.hpp"
9#include "../component_column.hpp"
10#include "../components/view_coordinates.hpp"
11#include "../rerun_sdk_export.hpp"
12#include "../result.hpp"
13
14#include <cstdint>
15#include <optional>
16#include <utility>
17#include <vector>
18
19namespace rerun::archetypes {
20 /// **Archetype**: Sets the default orientation for 3D views at or below this entity.
21 ///
22 /// The orientation determines the 3D view's eye orientation, navigation, and default grid plane.
23 /// It does not change logged transforms.
24 ///
25 /// The three directions are always ordered as [x, y, z] and specify where each positive axis points.
26 /// For example, [Right, Down, Forward] means that +X points right, +Y points down, and +Z points forward.
27 ///
28 /// A 3D view uses the value logged at its origin entity or the closest ancestor.
29 /// [SpatialInformation](https://rerun.io/docs/reference/types/views/spatial3d_view) can override it for an individual view.
30 ///
31 /// ⚠ [Rerun does not yet support left-handed coordinate systems](https://github.com/rerun-io/rerun/issues/5032).
32 ///
33 /// ## Example
34 ///
35 /// ### Set the default 3D view orientation
36 /// ![image](https://static.rerun.io/viewcoordinates/0833f0dc8616a676b7b2c566f2a6f613363680c5/full.png)
37 ///
38 /// ```cpp
39 /// #include <rerun.hpp>
40 ///
41 /// int main(int argc, char* argv[]) {
42 /// const auto rec = rerun::RecordingStream("rerun_example_view_coordinates");
43 /// rec.spawn().exit_on_failure();
44 ///
45 /// // Set the 3D view's up direction:
46 /// rec.log_static("world", rerun::ViewCoordinates::RIGHT_HAND_Z_UP);
47 /// rec.log(
48 /// "world/xyz",
49 /// rerun::Arrows3D::from_vectors(
50 /// {{1.0, 0.0, 0.0}, {0.0, 1.0, 0.0}, {0.0, 0.0, 1.0}}
51 /// )
52 /// .with_colors({{255, 0, 0}, {0, 255, 0}, {0, 0, 255}})
53 /// );
54 /// }
55 /// ```
56 ///
57 /// ⚠ **This type is _unstable_ and may change significantly in a way that the data won't be backwards compatible.**
58 ///
60 /// The directions of the [x, y, z] axes.
61 std::optional<ComponentBatch> xyz;
62
63 public:
64 /// The name of the archetype as used in `ComponentDescriptor`s.
65 static constexpr const char ArchetypeName[] = "rerun.archetypes.ViewCoordinates";
66
67 /// `ComponentDescriptor` for the `xyz` field.
68 static constexpr auto Descriptor_xyz = ComponentDescriptor(
69 ArchetypeName, "ViewCoordinates:xyz",
71 );
72
73 public: // START of extensions from view_coordinates_ext.cpp:
74 /// Construct `ViewCoordinates` from x/y/z enum values.
78 )
79 : ViewCoordinates(rerun::components::ViewCoordinates(axis0, axis1, axis2)) {}
80
81 // <BEGIN_GENERATED:declarations>
82 // This section is generated by running `scripts/generate_view_coordinate_defs.py --cpp`
83 /// X=Up, Y=Left, Z=Forward
84 ///
85 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
86 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates ULF;
87
88 /// X=Up, Y=Forward, Z=Left
89 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates UFL;
90
91 /// X=Left, Y=Up, Z=Forward
92 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates LUF;
93
94 /// X=Left, Y=Forward, Z=Up
95 ///
96 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
97 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates LFU;
98
99 /// X=Forward, Y=Up, Z=Left
100 ///
101 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
102 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates FUL;
103
104 /// X=Forward, Y=Left, Z=Up
105 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates FLU;
106
107 /// X=Up, Y=Left, Z=Back
108 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates ULB;
109
110 /// X=Up, Y=Back, Z=Left
111 ///
112 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
113 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates UBL;
114
115 /// X=Left, Y=Up, Z=Back
116 ///
117 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
118 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates LUB;
119
120 /// X=Left, Y=Back, Z=Up
121 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates LBU;
122
123 /// X=Back, Y=Up, Z=Left
124 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates BUL;
125
126 /// X=Back, Y=Left, Z=Up
127 ///
128 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
129 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates BLU;
130
131 /// X=Up, Y=Right, Z=Forward
132 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates URF;
133
134 /// X=Up, Y=Forward, Z=Right
135 ///
136 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
137 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates UFR;
138
139 /// X=Right, Y=Up, Z=Forward
140 ///
141 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
142 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates RUF;
143
144 /// X=Right, Y=Forward, Z=Up
145 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates RFU;
146
147 /// X=Forward, Y=Up, Z=Right
148 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates FUR;
149
150 /// X=Forward, Y=Right, Z=Up
151 ///
152 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
153 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates FRU;
154
155 /// X=Up, Y=Right, Z=Back
156 ///
157 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
158 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates URB;
159
160 /// X=Up, Y=Back, Z=Right
161 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates UBR;
162
163 /// X=Right, Y=Up, Z=Back
164 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates RUB;
165
166 /// X=Right, Y=Back, Z=Up
167 ///
168 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
169 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates RBU;
170
171 /// X=Back, Y=Up, Z=Right
172 ///
173 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
174 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates BUR;
175
176 /// X=Back, Y=Right, Z=Up
177 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates BRU;
178
179 /// X=Down, Y=Left, Z=Forward
180 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates DLF;
181
182 /// X=Down, Y=Forward, Z=Left
183 ///
184 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
185 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates DFL;
186
187 /// X=Left, Y=Down, Z=Forward
188 ///
189 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
190 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates LDF;
191
192 /// X=Left, Y=Forward, Z=Down
193 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates LFD;
194
195 /// X=Forward, Y=Down, Z=Left
196 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates FDL;
197
198 /// X=Forward, Y=Left, Z=Down
199 ///
200 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
201 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates FLD;
202
203 /// X=Down, Y=Left, Z=Back
204 ///
205 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
206 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates DLB;
207
208 /// X=Down, Y=Back, Z=Left
209 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates DBL;
210
211 /// X=Left, Y=Down, Z=Back
212 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates LDB;
213
214 /// X=Left, Y=Back, Z=Down
215 ///
216 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
217 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates LBD;
218
219 /// X=Back, Y=Down, Z=Left
220 ///
221 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
222 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates BDL;
223
224 /// X=Back, Y=Left, Z=Down
225 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates BLD;
226
227 /// X=Down, Y=Right, Z=Forward
228 ///
229 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
230 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates DRF;
231
232 /// X=Down, Y=Forward, Z=Right
233 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates DFR;
234
235 /// X=Right, Y=Down, Z=Forward
236 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates RDF;
237
238 /// X=Right, Y=Forward, Z=Down
239 ///
240 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
241 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates RFD;
242
243 /// X=Forward, Y=Down, Z=Right
244 ///
245 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
246 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates FDR;
247
248 /// X=Forward, Y=Right, Z=Down
249 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates FRD;
250
251 /// X=Down, Y=Right, Z=Back
252 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates DRB;
253
254 /// X=Down, Y=Back, Z=Right
255 ///
256 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
257 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates DBR;
258
259 /// X=Right, Y=Down, Z=Back
260 ///
261 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
262 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates RDB;
263
264 /// X=Right, Y=Back, Z=Down
265 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates RBD;
266
267 /// X=Back, Y=Down, Z=Right
268 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates BDR;
269
270 /// X=Back, Y=Right, Z=Down
271 ///
272 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
273 RERUN_SDK_EXPORT static const rerun::archetypes::ViewCoordinates BRD;
274
275 /// X=Up, Y=Right, Z=Forward
277
278 /// X=Down, Y=Right, Z=Back
280
281 /// X=Right, Y=Up, Z=Back
283
284 /// X=Right, Y=Down, Z=Forward
286
287 /// X=Right, Y=Forward, Z=Up
289
290 /// X=Right, Y=Back, Z=Down
292
293 /// X=Up, Y=Right, Z=Back
294 ///
295 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
297
298 /// X=Down, Y=Right, Z=Forward
299 ///
300 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
302
303 /// X=Right, Y=Up, Z=Forward
304 ///
305 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
307
308 /// X=Right, Y=Down, Z=Back
309 ///
310 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
312
313 /// X=Right, Y=Back, Z=Up
314 ///
315 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
317
318 /// X=Right, Y=Forward, Z=Down
319 ///
320 /// ⚠️ This is a left-handed coordinate system, which is [not yet supported by Rerun](https://github.com/rerun-io/rerun/issues/5032).
322
323 // <END_GENERATED:declarations>
324
325 // END of extensions from view_coordinates_ext.cpp, start of generated code:
326
327 public:
328 ViewCoordinates() = default;
329 ViewCoordinates(ViewCoordinates&& other) = default;
330 ViewCoordinates(const ViewCoordinates& other) = default;
331 ViewCoordinates& operator=(const ViewCoordinates& other) = default;
332 ViewCoordinates& operator=(ViewCoordinates&& other) = default;
333
335 : xyz(ComponentBatch::from_loggable(std::move(_xyz), Descriptor_xyz).value_or_throw()) {
336 }
337
338 /// Update only some specific fields of a `ViewCoordinates`.
340 return ViewCoordinates();
341 }
342
343 /// Clear all the fields of a `ViewCoordinates`.
345
346 /// The directions of the [x, y, z] axes.
348 xyz = ComponentBatch::from_loggable(_xyz, Descriptor_xyz).value_or_throw();
349 return std::move(*this);
350 }
351
352 /// This method makes it possible to pack multiple `xyz` in a single component batch.
353 ///
354 /// This only makes sense when used in conjunction with `columns`. `with_xyz` should
355 /// be used when logging a single row's worth of data.
357 ) && {
358 xyz = ComponentBatch::from_loggable(_xyz, Descriptor_xyz).value_or_throw();
359 return std::move(*this);
360 }
361
362 /// Partitions the component data into multiple sub-batches.
363 ///
364 /// Specifically, this transforms the existing `ComponentBatch` data into `ComponentColumn`s
365 /// instead, via `ComponentBatch::partitioned`.
366 ///
367 /// This makes it possible to use `RecordingStream::send_columns` to send columnar data directly into Rerun.
368 ///
369 /// The specified `lengths` must sum to the total length of the component batch.
371 return detail::partition_batches({&xyz}, lengths_).value_or_throw();
372 }
373
374 /// Partitions the component data into unit-length sub-batches.
375 ///
376 /// This is semantically similar to calling `columns` with `std::vector<uint32_t>(n, 1)`,
377 /// where `n` is automatically guessed.
379 return detail::partition_batches_of_unit_length({&xyz}).value_or_throw();
380 }
381 };
382
383} // namespace rerun::archetypes
384
385namespace rerun {
386 /// \private
387 template <typename T>
388 struct AsComponents;
389
390 /// \private
391 template <>
392 struct AsComponents<archetypes::ViewCoordinates> {
393 /// Serialize all set component batches.
394 static Result<Collection<ComponentBatch>> as_batches(
395 const archetypes::ViewCoordinates& archetype
396 ) {
397 return detail::collect_batches({&archetype.xyz});
398 }
399 };
400} // namespace rerun
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:90
ViewDir
Encoding: The six cardinal directions for 3D view-space.
Definition view_dir.hpp:27
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:26
Arrow-encoded data of a single batch of components together with a component descriptor.
Definition component_batch.hpp:28
static Result< ComponentBatch > from_loggable(const rerun::Collection< T > &components, const ComponentDescriptor &descriptor)
Creates a new component batch from a collection of component instances.
Definition component_batch.hpp:46
A ComponentDescriptor fully describes the semantics of a column of data.
Definition component_descriptor.hpp:16
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Archetype: Sets the default orientation for 3D views at or below this entity.
Definition view_coordinates.hpp:59
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates BDL
X=Back, Y=Down, Z=Left.
Definition view_coordinates.hpp:222
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates LEFT_HAND_X_UP
X=Up, Y=Right, Z=Back.
Definition view_coordinates.hpp:296
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates LUB
X=Left, Y=Up, Z=Back.
Definition view_coordinates.hpp:118
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates ULF
X=Up, Y=Left, Z=Forward.
Definition view_coordinates.hpp:86
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates BUR
X=Back, Y=Up, Z=Right.
Definition view_coordinates.hpp:174
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates BUL
X=Back, Y=Up, Z=Left.
Definition view_coordinates.hpp:124
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates RDF
X=Right, Y=Down, Z=Forward.
Definition view_coordinates.hpp:236
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates FDR
X=Forward, Y=Down, Z=Right.
Definition view_coordinates.hpp:246
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates DFL
X=Down, Y=Forward, Z=Left.
Definition view_coordinates.hpp:185
static constexpr auto Descriptor_xyz
ComponentDescriptor for the xyz field.
Definition view_coordinates.hpp:68
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates LDF
X=Left, Y=Down, Z=Forward.
Definition view_coordinates.hpp:190
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates FDL
X=Forward, Y=Down, Z=Left.
Definition view_coordinates.hpp:196
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates URB
X=Up, Y=Right, Z=Back.
Definition view_coordinates.hpp:158
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates URF
X=Up, Y=Right, Z=Forward.
Definition view_coordinates.hpp:132
static ViewCoordinates update_fields()
Update only some specific fields of a ViewCoordinates.
Definition view_coordinates.hpp:339
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates RIGHT_HAND_Y_UP
X=Right, Y=Up, Z=Back.
Definition view_coordinates.hpp:282
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates LUF
X=Left, Y=Up, Z=Forward.
Definition view_coordinates.hpp:92
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates LDB
X=Left, Y=Down, Z=Back.
Definition view_coordinates.hpp:212
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates UFR
X=Up, Y=Forward, Z=Right.
Definition view_coordinates.hpp:137
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates BRU
X=Back, Y=Right, Z=Up.
Definition view_coordinates.hpp:177
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates RDB
X=Right, Y=Down, Z=Back.
Definition view_coordinates.hpp:262
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates BDR
X=Back, Y=Down, Z=Right.
Definition view_coordinates.hpp:268
static ViewCoordinates clear_fields()
Clear all the fields of a ViewCoordinates.
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates RUF
X=Right, Y=Up, Z=Forward.
Definition view_coordinates.hpp:142
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates LFU
X=Left, Y=Forward, Z=Up.
Definition view_coordinates.hpp:97
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates LEFT_HAND_Z_UP
X=Right, Y=Back, Z=Up.
Definition view_coordinates.hpp:316
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates RIGHT_HAND_X_DOWN
X=Down, Y=Right, Z=Back.
Definition view_coordinates.hpp:279
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates DLF
X=Down, Y=Left, Z=Forward.
Definition view_coordinates.hpp:180
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates LEFT_HAND_Z_DOWN
X=Right, Y=Forward, Z=Down.
Definition view_coordinates.hpp:321
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates DRF
X=Down, Y=Right, Z=Forward.
Definition view_coordinates.hpp:230
ViewCoordinates(rerun::encodings::ViewDir axis0, rerun::encodings::ViewDir axis1, rerun::encodings::ViewDir axis2)
Construct ViewCoordinates from x/y/z enum values.
Definition view_coordinates.hpp:75
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates LBD
X=Left, Y=Back, Z=Down.
Definition view_coordinates.hpp:217
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates FRD
X=Forward, Y=Right, Z=Down.
Definition view_coordinates.hpp:249
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates LEFT_HAND_Y_UP
X=Right, Y=Up, Z=Forward.
Definition view_coordinates.hpp:306
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
Definition view_coordinates.hpp:378
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates LBU
X=Left, Y=Back, Z=Up.
Definition view_coordinates.hpp:121
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates DLB
X=Down, Y=Left, Z=Back.
Definition view_coordinates.hpp:206
std::optional< ComponentBatch > xyz
The directions of the [x, y, z] axes.
Definition view_coordinates.hpp:61
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates LFD
X=Left, Y=Forward, Z=Down.
Definition view_coordinates.hpp:193
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates DBR
X=Down, Y=Back, Z=Right.
Definition view_coordinates.hpp:257
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates FLU
X=Forward, Y=Left, Z=Up.
Definition view_coordinates.hpp:105
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates RFD
X=Right, Y=Forward, Z=Down.
Definition view_coordinates.hpp:241
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates RIGHT_HAND_X_UP
X=Up, Y=Right, Z=Forward.
Definition view_coordinates.hpp:276
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates RBD
X=Right, Y=Back, Z=Down.
Definition view_coordinates.hpp:265
ViewCoordinates with_xyz(const rerun::components::ViewCoordinates &_xyz) &&
The directions of the [x, y, z] axes.
Definition view_coordinates.hpp:347
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates RFU
X=Right, Y=Forward, Z=Up.
Definition view_coordinates.hpp:145
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates UFL
X=Up, Y=Forward, Z=Left.
Definition view_coordinates.hpp:89
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates RIGHT_HAND_Y_DOWN
X=Right, Y=Down, Z=Forward.
Definition view_coordinates.hpp:285
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates DRB
X=Down, Y=Right, Z=Back.
Definition view_coordinates.hpp:252
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates DFR
X=Down, Y=Forward, Z=Right.
Definition view_coordinates.hpp:233
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates LEFT_HAND_Y_DOWN
X=Right, Y=Down, Z=Back.
Definition view_coordinates.hpp:311
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates UBR
X=Up, Y=Back, Z=Right.
Definition view_coordinates.hpp:161
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates BRD
X=Back, Y=Right, Z=Down.
Definition view_coordinates.hpp:273
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates FRU
X=Forward, Y=Right, Z=Up.
Definition view_coordinates.hpp:153
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition view_coordinates.hpp:65
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates ULB
X=Up, Y=Left, Z=Back.
Definition view_coordinates.hpp:108
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates FLD
X=Forward, Y=Left, Z=Down.
Definition view_coordinates.hpp:201
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates LEFT_HAND_X_DOWN
X=Down, Y=Right, Z=Forward.
Definition view_coordinates.hpp:301
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates RIGHT_HAND_Z_UP
X=Right, Y=Forward, Z=Up.
Definition view_coordinates.hpp:288
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates RIGHT_HAND_Z_DOWN
X=Right, Y=Back, Z=Down.
Definition view_coordinates.hpp:291
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates FUL
X=Forward, Y=Up, Z=Left.
Definition view_coordinates.hpp:102
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates DBL
X=Down, Y=Back, Z=Left.
Definition view_coordinates.hpp:209
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates UBL
X=Up, Y=Back, Z=Left.
Definition view_coordinates.hpp:113
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates BLU
X=Back, Y=Left, Z=Up.
Definition view_coordinates.hpp:129
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
Definition view_coordinates.hpp:370
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates FUR
X=Forward, Y=Up, Z=Right.
Definition view_coordinates.hpp:148
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates RUB
X=Right, Y=Up, Z=Back.
Definition view_coordinates.hpp:164
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates BLD
X=Back, Y=Left, Z=Down.
Definition view_coordinates.hpp:225
ViewCoordinates with_many_xyz(const Collection< rerun::components::ViewCoordinates > &_xyz) &&
This method makes it possible to pack multiple xyz in a single component batch.
Definition view_coordinates.hpp:356
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates RBU
X=Right, Y=Back, Z=Up.
Definition view_coordinates.hpp:169
Component: An orientation convention for a camera or 3D view.
Definition view_coordinates.hpp:28