|
Rerun C++ SDK
|
Component: Draw order of 2D elements. More...
#include <rerun/components/draw_order.hpp>
Public Member Functions | |
| DrawOrder (rerun::encodings::Float32 value_) | |
| DrawOrder & | operator= (rerun::encodings::Float32 value_) |
| DrawOrder (float value_) | |
| DrawOrder & | operator= (float value_) |
| operator rerun::encodings::Float32 () const | |
| Cast to the underlying Float32 encoding. | |
Public Attributes | |
| rerun::encodings::Float32 | value |
Component: Draw order of 2D elements.
Higher values are drawn on top of lower values.
An entity can have only a single draw order component. Within an entity draw order is governed by the order of the components.
Draw order for entities with the same draw order is generally undefined.
If no draw order is set, the viewer uses these defaults:
archetypes::DepthImage, archetypes::EncodedDepthImagearchetypes::VideoFrameReference, archetypes::VideoStreamarchetypes::Image, archetypes::EncodedImage, archetypes::GridMaparchetypes::SegmentationImagearchetypes::Boxes2D, archetypes::Ellipses2Darchetypes::Arrows2D, archetypes::LineStrips2Darchetypes::Points2DFor example, to draw an image on top of a segmentation image, give the image a draw order above 0.