6#include "../component_descriptor.hpp"
7#include "../datatypes/view_coordinates.hpp"
8#include "../rerun_sdk_export.hpp"
9#include "../result.hpp"
41 enum ViewDir : uint8_t {
319 struct Loggable<components::ViewCoordinates> {
320 static constexpr ComponentDescriptor Descriptor =
"rerun.components.ViewCoordinates";
323 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
324 return Loggable<rerun::datatypes::ViewCoordinates>::arrow_datatype();
328 static Result<std::shared_ptr<arrow::Array>> to_arrow(
329 const components::ViewCoordinates* instances,
size_t num_instances
331 if (num_instances == 0) {
332 return Loggable<rerun::datatypes::ViewCoordinates>::to_arrow(
nullptr, 0);
333 }
else if (instances ==
nullptr) {
335 ErrorCode::UnexpectedNullArgument,
336 "Passed array instances is null when num_elements> 0."
339 return Loggable<rerun::datatypes::ViewCoordinates>::to_arrow(
340 &instances->coordinates,
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:99
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:79
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:36
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RFD
X=Right, Y=Forward, Z=Down.
Definition view_coordinates.hpp:218
constexpr ViewCoordinates(uint8_t axis0, uint8_t axis1, uint8_t axis2)
Construct Vec3D from x/y/z values.
Definition view_coordinates.hpp:51
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RIGHT_HAND_X_UP
X=Up, Y=Right, Z=Forward.
Definition view_coordinates.hpp:253
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates BUR
X=Back, Y=Up, Z=Right.
Definition view_coordinates.hpp:151
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates DBR
X=Down, Y=Back, Z=Right.
Definition view_coordinates.hpp:234
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LEFT_HAND_X_UP
X=Up, Y=Right, Z=Back.
Definition view_coordinates.hpp:273
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LUB
X=Left, Y=Up, Z=Back.
Definition view_coordinates.hpp:95
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates URF
X=Up, Y=Right, Z=Forward.
Definition view_coordinates.hpp:109
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LUF
X=Left, Y=Up, Z=Forward.
Definition view_coordinates.hpp:69
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates UBL
X=Up, Y=Back, Z=Left.
Definition view_coordinates.hpp:90
constexpr ViewCoordinates(ViewDir axis0, ViewDir axis1, ViewDir axis2)
Construct Vec3D from x/y/z enum values.
Definition view_coordinates.hpp:55
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates BLD
X=Back, Y=Left, Z=Down.
Definition view_coordinates.hpp:202
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LEFT_HAND_X_DOWN
X=Down, Y=Right, Z=Forward.
Definition view_coordinates.hpp:278
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates FRU
X=Forward, Y=Right, Z=Up.
Definition view_coordinates.hpp:130
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates UFL
X=Up, Y=Forward, Z=Left.
Definition view_coordinates.hpp:66
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LDF
X=Left, Y=Down, Z=Forward.
Definition view_coordinates.hpp:167
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LEFT_HAND_Z_DOWN
X=Right, Y=Forward, Z=Down.
Definition view_coordinates.hpp:298
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RIGHT_HAND_Z_UP
X=Right, Y=Forward, Z=Up.
Definition view_coordinates.hpp:265
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RIGHT_HAND_Y_UP
X=Right, Y=Up, Z=Back.
Definition view_coordinates.hpp:259
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates DFL
X=Down, Y=Forward, Z=Left.
Definition view_coordinates.hpp:162
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RIGHT_HAND_Z_DOWN
X=Right, Y=Back, Z=Down.
Definition view_coordinates.hpp:268
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RIGHT_HAND_Y_DOWN
X=Right, Y=Down, Z=Forward.
Definition view_coordinates.hpp:262
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates DLB
X=Down, Y=Left, Z=Back.
Definition view_coordinates.hpp:183
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LBU
X=Left, Y=Back, Z=Up.
Definition view_coordinates.hpp:98
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates ULB
X=Up, Y=Left, Z=Back.
Definition view_coordinates.hpp:85
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates BDR
X=Back, Y=Down, Z=Right.
Definition view_coordinates.hpp:245
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates BRD
X=Back, Y=Right, Z=Down.
Definition view_coordinates.hpp:250
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RBD
X=Right, Y=Back, Z=Down.
Definition view_coordinates.hpp:242
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates FDR
X=Forward, Y=Down, Z=Right.
Definition view_coordinates.hpp:223
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates BDL
X=Back, Y=Down, Z=Left.
Definition view_coordinates.hpp:199
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RIGHT_HAND_X_DOWN
X=Down, Y=Right, Z=Back.
Definition view_coordinates.hpp:256
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RBU
X=Right, Y=Back, Z=Up.
Definition view_coordinates.hpp:146
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates DRF
X=Down, Y=Right, Z=Forward.
Definition view_coordinates.hpp:207
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LBD
X=Left, Y=Back, Z=Down.
Definition view_coordinates.hpp:194
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates FUR
X=Forward, Y=Up, Z=Right.
Definition view_coordinates.hpp:125
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RUB
X=Right, Y=Up, Z=Back.
Definition view_coordinates.hpp:141
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RUF
X=Right, Y=Up, Z=Forward.
Definition view_coordinates.hpp:119
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates FDL
X=Forward, Y=Down, Z=Left.
Definition view_coordinates.hpp:173
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates FRD
X=Forward, Y=Right, Z=Down.
Definition view_coordinates.hpp:226
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates DRB
X=Down, Y=Right, Z=Back.
Definition view_coordinates.hpp:229
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RDB
X=Right, Y=Down, Z=Back.
Definition view_coordinates.hpp:239
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates BLU
X=Back, Y=Left, Z=Up.
Definition view_coordinates.hpp:106
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates FLD
X=Forward, Y=Left, Z=Down.
Definition view_coordinates.hpp:178
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates URB
X=Up, Y=Right, Z=Back.
Definition view_coordinates.hpp:135
rerun::datatypes::ViewCoordinates coordinates
The directions of the [x, y, z] axes.
Definition view_coordinates.hpp:38
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates BUL
X=Back, Y=Up, Z=Left.
Definition view_coordinates.hpp:101
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LEFT_HAND_Z_UP
X=Right, Y=Back, Z=Up.
Definition view_coordinates.hpp:293
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates FLU
X=Forward, Y=Left, Z=Up.
Definition view_coordinates.hpp:82
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LFD
X=Left, Y=Forward, Z=Down.
Definition view_coordinates.hpp:170
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates UFR
X=Up, Y=Forward, Z=Right.
Definition view_coordinates.hpp:114
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RFU
X=Right, Y=Forward, Z=Up.
Definition view_coordinates.hpp:122
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LEFT_HAND_Y_DOWN
X=Right, Y=Down, Z=Back.
Definition view_coordinates.hpp:288
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates DBL
X=Down, Y=Back, Z=Left.
Definition view_coordinates.hpp:186
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LFU
X=Left, Y=Forward, Z=Up.
Definition view_coordinates.hpp:74
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates ULF
X=Up, Y=Left, Z=Forward.
Definition view_coordinates.hpp:63
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates UBR
X=Up, Y=Back, Z=Right.
Definition view_coordinates.hpp:138
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LEFT_HAND_Y_UP
X=Right, Y=Up, Z=Forward.
Definition view_coordinates.hpp:283
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates RDF
X=Right, Y=Down, Z=Forward.
Definition view_coordinates.hpp:213
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates DLF
X=Down, Y=Left, Z=Forward.
Definition view_coordinates.hpp:157
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates FUL
X=Forward, Y=Up, Z=Left.
Definition view_coordinates.hpp:79
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates DFR
X=Down, Y=Forward, Z=Right.
Definition view_coordinates.hpp:210
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates LDB
X=Left, Y=Down, Z=Back.
Definition view_coordinates.hpp:189
static RERUN_SDK_EXPORT const rerun::components::ViewCoordinates BRU
X=Back, Y=Right, Z=Up.
Definition view_coordinates.hpp:154
Datatype: How we interpret the coordinate system of an entity/space.
Definition view_coordinates.hpp:41