Rerun C++ SDK
|
Archetype: How we interpret the coordinate system of an entity/space. More...
#include <rerun/archetypes/view_coordinates.hpp>
Public Types | |
using | IndicatorComponent = rerun::components::IndicatorComponent< IndicatorComponentName > |
Indicator component, used to identify the archetype when converting to a list of components. | |
Public Member Functions | |
ViewCoordinates (uint8_t axis0, uint8_t axis1, uint8_t axis2) | |
Construct Vec3D from x/y/z values. | |
ViewCoordinates (ViewCoordinates &&other)=default | |
ViewCoordinates (const ViewCoordinates &other)=default | |
ViewCoordinates & | operator= (const ViewCoordinates &other)=default |
ViewCoordinates & | operator= (ViewCoordinates &&other)=default |
ViewCoordinates (rerun::components::ViewCoordinates _xyz) | |
ViewCoordinates | with_xyz (const rerun::components::ViewCoordinates &_xyz) && |
The directions of the [x, y, z] axes. | |
ViewCoordinates | with_many_xyz (const Collection< rerun::components::ViewCoordinates > &_xyz) && |
This method makes it possible to pack multiple xyz in a single component batch. | |
Collection< ComponentColumn > | columns (const Collection< uint32_t > &lengths_) |
Partitions the component data into multiple sub-batches. | |
Collection< ComponentColumn > | columns () |
Partitions the component data into unit-length sub-batches. | |
Static Public Member Functions | |
static ViewCoordinates | update_fields () |
Update only some specific fields of a ViewCoordinates . | |
static ViewCoordinates | clear_fields () |
Clear all the fields of a ViewCoordinates . | |
Public Attributes | |
std::optional< ComponentBatch > | xyz |
The directions of the [x, y, z] axes. | |
Static Public Attributes | |
static constexpr const char | IndicatorComponentName [] |
static constexpr const char | ArchetypeName [] = "rerun.archetypes.ViewCoordinates" |
The name of the archetype as used in ComponentDescriptor s. | |
static constexpr auto | Descriptor_xyz |
ComponentDescriptor for the xyz field. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | ULF |
X=Up, Y=Left, Z=Forward. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | UFL |
X=Up, Y=Forward, Z=Left. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | LUF |
X=Left, Y=Up, Z=Forward. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | LFU |
X=Left, Y=Forward, Z=Up. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | FUL |
X=Forward, Y=Up, Z=Left. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | FLU |
X=Forward, Y=Left, Z=Up. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | ULB |
X=Up, Y=Left, Z=Back. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | UBL |
X=Up, Y=Back, Z=Left. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | LUB |
X=Left, Y=Up, Z=Back. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | LBU |
X=Left, Y=Back, Z=Up. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | BUL |
X=Back, Y=Up, Z=Left. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | BLU |
X=Back, Y=Left, Z=Up. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | URF |
X=Up, Y=Right, Z=Forward. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | UFR |
X=Up, Y=Forward, Z=Right. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | RUF |
X=Right, Y=Up, Z=Forward. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | RFU |
X=Right, Y=Forward, Z=Up. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | FUR |
X=Forward, Y=Up, Z=Right. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | FRU |
X=Forward, Y=Right, Z=Up. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | URB |
X=Up, Y=Right, Z=Back. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | UBR |
X=Up, Y=Back, Z=Right. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | RUB |
X=Right, Y=Up, Z=Back. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | RBU |
X=Right, Y=Back, Z=Up. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | BUR |
X=Back, Y=Up, Z=Right. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | BRU |
X=Back, Y=Right, Z=Up. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | DLF |
X=Down, Y=Left, Z=Forward. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | DFL |
X=Down, Y=Forward, Z=Left. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | LDF |
X=Left, Y=Down, Z=Forward. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | LFD |
X=Left, Y=Forward, Z=Down. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | FDL |
X=Forward, Y=Down, Z=Left. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | FLD |
X=Forward, Y=Left, Z=Down. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | DLB |
X=Down, Y=Left, Z=Back. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | DBL |
X=Down, Y=Back, Z=Left. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | LDB |
X=Left, Y=Down, Z=Back. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | LBD |
X=Left, Y=Back, Z=Down. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | BDL |
X=Back, Y=Down, Z=Left. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | BLD |
X=Back, Y=Left, Z=Down. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | DRF |
X=Down, Y=Right, Z=Forward. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | DFR |
X=Down, Y=Forward, Z=Right. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | RDF |
X=Right, Y=Down, Z=Forward. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | RFD |
X=Right, Y=Forward, Z=Down. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | FDR |
X=Forward, Y=Down, Z=Right. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | FRD |
X=Forward, Y=Right, Z=Down. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | DRB |
X=Down, Y=Right, Z=Back. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | DBR |
X=Down, Y=Back, Z=Right. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | RDB |
X=Right, Y=Down, Z=Back. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | RBD |
X=Right, Y=Back, Z=Down. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | BDR |
X=Back, Y=Down, Z=Right. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | BRD |
X=Back, Y=Right, Z=Down. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | RIGHT_HAND_X_UP |
X=Up, Y=Right, Z=Forward. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | RIGHT_HAND_X_DOWN |
X=Down, Y=Right, Z=Back. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | RIGHT_HAND_Y_UP |
X=Right, Y=Up, Z=Back. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | RIGHT_HAND_Y_DOWN |
X=Right, Y=Down, Z=Forward. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | RIGHT_HAND_Z_UP |
X=Right, Y=Forward, Z=Up. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | RIGHT_HAND_Z_DOWN |
X=Right, Y=Back, Z=Down. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | LEFT_HAND_X_UP |
X=Up, Y=Right, Z=Back. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | LEFT_HAND_X_DOWN |
X=Down, Y=Right, Z=Forward. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | LEFT_HAND_Y_UP |
X=Right, Y=Up, Z=Forward. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | LEFT_HAND_Y_DOWN |
X=Right, Y=Down, Z=Back. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | LEFT_HAND_Z_UP |
X=Right, Y=Back, Z=Up. | |
static RERUN_SDK_EXPORT const rerun::archetypes::ViewCoordinates | LEFT_HAND_Z_DOWN |
X=Right, Y=Forward, Z=Down. | |
Archetype: How we interpret the coordinate system of an entity/space.
For instance: What is "up"? What does the Z axis mean?
The three coordinates are always ordered as [x, y, z].
For example [Right, Down, Forward] means that the X axis points to the right, the Y axis points down, and the Z axis points forward.
Make sure that this archetype is logged at or above the origin entity path of your 3D views.
⚠ Rerun does not yet support left-handed coordinate systems.
⚠ This type is unstable and may change significantly in a way that the data won't be backwards compatible.
|
inline |
This method makes it possible to pack multiple xyz
in a single component batch.
This only makes sense when used in conjunction with columns
. with_xyz
should be used when logging a single row's worth of data.
Collection< ComponentColumn > rerun::archetypes::ViewCoordinates::columns | ( | const Collection< uint32_t > & | lengths_ | ) |
Partitions the component data into multiple sub-batches.
Specifically, this transforms the existing ComponentBatch
data into ComponentColumn
s instead, via ComponentBatch::partitioned
.
This makes it possible to use RecordingStream::send_columns
to send columnar data directly into Rerun.
The specified lengths
must sum to the total length of the component batch.
Collection< ComponentColumn > rerun::archetypes::ViewCoordinates::columns | ( | ) |
Partitions the component data into unit-length sub-batches.
This is semantically similar to calling columns
with std::vector<uint32_t>(n, 1)
, where n
is automatically guessed.
|
staticconstexpr |
|
staticconstexpr |
ComponentDescriptor
for the xyz
field.
|
static |
X=Up, Y=Left, Z=Forward.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Left, Y=Forward, Z=Up.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Forward, Y=Up, Z=Left.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Up, Y=Back, Z=Left.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Left, Y=Up, Z=Back.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Back, Y=Left, Z=Up.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Up, Y=Forward, Z=Right.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Right, Y=Up, Z=Forward.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Forward, Y=Right, Z=Up.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Up, Y=Right, Z=Back.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Right, Y=Back, Z=Up.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Back, Y=Up, Z=Right.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Down, Y=Forward, Z=Left.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Left, Y=Down, Z=Forward.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Forward, Y=Left, Z=Down.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Down, Y=Left, Z=Back.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Left, Y=Back, Z=Down.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Back, Y=Down, Z=Left.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Down, Y=Right, Z=Forward.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Right, Y=Forward, Z=Down.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Forward, Y=Down, Z=Right.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Down, Y=Back, Z=Right.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Right, Y=Down, Z=Back.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Back, Y=Right, Z=Down.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Up, Y=Right, Z=Back.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Down, Y=Right, Z=Forward.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Right, Y=Up, Z=Forward.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Right, Y=Down, Z=Back.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Right, Y=Back, Z=Up.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
|
static |
X=Right, Y=Forward, Z=Down.
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.