6#include "../component_descriptor.hpp"
7#include "../datatypes/view_coordinates.hpp"
8#include "../rerun_sdk_export.hpp"
9#include "../result.hpp"
38 enum ViewDir : uint8_t {
316 struct Loggable<components::ViewCoordinates> {
317 static constexpr ComponentDescriptor Descriptor =
"rerun.components.ViewCoordinates";
320 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
321 return Loggable<rerun::datatypes::ViewCoordinates>::arrow_datatype();
325 static Result<std::shared_ptr<arrow::Array>> to_arrow(
326 const components::ViewCoordinates* instances,
size_t num_instances
328 if (num_instances == 0) {
329 return Loggable<rerun::datatypes::ViewCoordinates>::to_arrow(
nullptr, 0);
330 }
else if (instances ==
nullptr) {
332 ErrorCode::UnexpectedNullArgument,
333 "Passed array instances is null when num_elements> 0."
336 return Loggable<rerun::datatypes::ViewCoordinates>::to_arrow(
337 &instances->coordinates,
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:95
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:80
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Component: How we interpret the coordinate system of an entity/space.
Definition view_coordinates.hpp:33
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RFD
X=Right, Y=Forward, Z=Down.
Definition view_coordinates.hpp:215
constexpr ViewCoordinates(uint8_t axis0, uint8_t axis1, uint8_t axis2)
Construct Vec3D from x/y/z values.
Definition view_coordinates.hpp:48
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RIGHT_HAND_X_UP
X=Up, Y=Right, Z=Forward.
Definition view_coordinates.hpp:250
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates BUR
X=Back, Y=Up, Z=Right.
Definition view_coordinates.hpp:148
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates DBR
X=Down, Y=Back, Z=Right.
Definition view_coordinates.hpp:231
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LEFT_HAND_X_UP
X=Up, Y=Right, Z=Back.
Definition view_coordinates.hpp:270
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LUB
X=Left, Y=Up, Z=Back.
Definition view_coordinates.hpp:92
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates URF
X=Up, Y=Right, Z=Forward.
Definition view_coordinates.hpp:106
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LUF
X=Left, Y=Up, Z=Forward.
Definition view_coordinates.hpp:66
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates UBL
X=Up, Y=Back, Z=Left.
Definition view_coordinates.hpp:87
constexpr ViewCoordinates(ViewDir axis0, ViewDir axis1, ViewDir axis2)
Construct Vec3D from x/y/z enum values.
Definition view_coordinates.hpp:52
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates BLD
X=Back, Y=Left, Z=Down.
Definition view_coordinates.hpp:199
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LEFT_HAND_X_DOWN
X=Down, Y=Right, Z=Forward.
Definition view_coordinates.hpp:275
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates FRU
X=Forward, Y=Right, Z=Up.
Definition view_coordinates.hpp:127
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates UFL
X=Up, Y=Forward, Z=Left.
Definition view_coordinates.hpp:63
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LDF
X=Left, Y=Down, Z=Forward.
Definition view_coordinates.hpp:164
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LEFT_HAND_Z_DOWN
X=Right, Y=Forward, Z=Down.
Definition view_coordinates.hpp:295
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RIGHT_HAND_Z_UP
X=Right, Y=Forward, Z=Up.
Definition view_coordinates.hpp:262
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RIGHT_HAND_Y_UP
X=Right, Y=Up, Z=Back.
Definition view_coordinates.hpp:256
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates DFL
X=Down, Y=Forward, Z=Left.
Definition view_coordinates.hpp:159
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RIGHT_HAND_Z_DOWN
X=Right, Y=Back, Z=Down.
Definition view_coordinates.hpp:265
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RIGHT_HAND_Y_DOWN
X=Right, Y=Down, Z=Forward.
Definition view_coordinates.hpp:259
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates DLB
X=Down, Y=Left, Z=Back.
Definition view_coordinates.hpp:180
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LBU
X=Left, Y=Back, Z=Up.
Definition view_coordinates.hpp:95
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates ULB
X=Up, Y=Left, Z=Back.
Definition view_coordinates.hpp:82
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates BDR
X=Back, Y=Down, Z=Right.
Definition view_coordinates.hpp:242
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates BRD
X=Back, Y=Right, Z=Down.
Definition view_coordinates.hpp:247
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RBD
X=Right, Y=Back, Z=Down.
Definition view_coordinates.hpp:239
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates FDR
X=Forward, Y=Down, Z=Right.
Definition view_coordinates.hpp:220
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates BDL
X=Back, Y=Down, Z=Left.
Definition view_coordinates.hpp:196
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RIGHT_HAND_X_DOWN
X=Down, Y=Right, Z=Back.
Definition view_coordinates.hpp:253
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RBU
X=Right, Y=Back, Z=Up.
Definition view_coordinates.hpp:143
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates DRF
X=Down, Y=Right, Z=Forward.
Definition view_coordinates.hpp:204
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LBD
X=Left, Y=Back, Z=Down.
Definition view_coordinates.hpp:191
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates FUR
X=Forward, Y=Up, Z=Right.
Definition view_coordinates.hpp:122
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RUB
X=Right, Y=Up, Z=Back.
Definition view_coordinates.hpp:138
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RUF
X=Right, Y=Up, Z=Forward.
Definition view_coordinates.hpp:116
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates FDL
X=Forward, Y=Down, Z=Left.
Definition view_coordinates.hpp:170
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates FRD
X=Forward, Y=Right, Z=Down.
Definition view_coordinates.hpp:223
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates DRB
X=Down, Y=Right, Z=Back.
Definition view_coordinates.hpp:226
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RDB
X=Right, Y=Down, Z=Back.
Definition view_coordinates.hpp:236
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates BLU
X=Back, Y=Left, Z=Up.
Definition view_coordinates.hpp:103
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates FLD
X=Forward, Y=Left, Z=Down.
Definition view_coordinates.hpp:175
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates URB
X=Up, Y=Right, Z=Back.
Definition view_coordinates.hpp:132
rerun::datatypes::ViewCoordinates coordinates
The directions of the [x, y, z] axes.
Definition view_coordinates.hpp:35
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates BUL
X=Back, Y=Up, Z=Left.
Definition view_coordinates.hpp:98
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LEFT_HAND_Z_UP
X=Right, Y=Back, Z=Up.
Definition view_coordinates.hpp:290
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates FLU
X=Forward, Y=Left, Z=Up.
Definition view_coordinates.hpp:79
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LFD
X=Left, Y=Forward, Z=Down.
Definition view_coordinates.hpp:167
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates UFR
X=Up, Y=Forward, Z=Right.
Definition view_coordinates.hpp:111
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RFU
X=Right, Y=Forward, Z=Up.
Definition view_coordinates.hpp:119
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LEFT_HAND_Y_DOWN
X=Right, Y=Down, Z=Back.
Definition view_coordinates.hpp:285
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates DBL
X=Down, Y=Back, Z=Left.
Definition view_coordinates.hpp:183
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LFU
X=Left, Y=Forward, Z=Up.
Definition view_coordinates.hpp:71
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates ULF
X=Up, Y=Left, Z=Forward.
Definition view_coordinates.hpp:60
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates UBR
X=Up, Y=Back, Z=Right.
Definition view_coordinates.hpp:135
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LEFT_HAND_Y_UP
X=Right, Y=Up, Z=Forward.
Definition view_coordinates.hpp:280
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RDF
X=Right, Y=Down, Z=Forward.
Definition view_coordinates.hpp:210
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates DLF
X=Down, Y=Left, Z=Forward.
Definition view_coordinates.hpp:154
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates FUL
X=Forward, Y=Up, Z=Left.
Definition view_coordinates.hpp:76
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates DFR
X=Down, Y=Forward, Z=Right.
Definition view_coordinates.hpp:207
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LDB
X=Left, Y=Down, Z=Back.
Definition view_coordinates.hpp:186
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates BRU
X=Back, Y=Right, Z=Up.
Definition view_coordinates.hpp:151
Datatype: How we interpret the coordinate system of an entity/space.
Definition view_coordinates.hpp:38