Rerun C++ SDK
|
Archetype: Configuration for the legend of a plot. More...
#include <rerun/blueprint/archetypes/plot_legend.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 | |
PlotLegend (PlotLegend &&other)=default | |
PlotLegend (const PlotLegend &other)=default | |
PlotLegend & | operator= (const PlotLegend &other)=default |
PlotLegend & | operator= (PlotLegend &&other)=default |
PlotLegend | with_corner (const rerun::blueprint::components::Corner2D &_corner) && |
To what corner the legend is aligned. | |
PlotLegend | with_visible (const rerun::components::Visible &_visible) && |
Whether the legend is shown at all. | |
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 PlotLegend | update_fields () |
Update only some specific fields of a PlotLegend . | |
static PlotLegend | clear_fields () |
Clear all the fields of a PlotLegend . | |
Public Attributes | |
std::optional< ComponentBatch > | corner |
To what corner the legend is aligned. | |
std::optional< ComponentBatch > | visible |
Whether the legend is shown at all. | |
Static Public Attributes | |
static constexpr const char | IndicatorComponentName [] |
static constexpr const char | ArchetypeName [] = "rerun.blueprint.archetypes.PlotLegend" |
The name of the archetype as used in ComponentDescriptor s. | |
static constexpr auto | Descriptor_corner |
ComponentDescriptor for the corner field. | |
static constexpr auto | Descriptor_visible |
ComponentDescriptor for the visible field. | |
Archetype: Configuration for the legend of a plot.
⚠ This type is unstable and may change significantly in a way that the data won't be backwards compatible.
|
inline |
To what corner the legend is aligned.
Defaults to the right bottom corner.
|
inline |
Whether the legend is shown at all.
True by default.
Collection< ComponentColumn > rerun::blueprint::archetypes::PlotLegend::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::blueprint::archetypes::PlotLegend::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.
std::optional<ComponentBatch> rerun::blueprint::archetypes::PlotLegend::corner |
To what corner the legend is aligned.
Defaults to the right bottom corner.
std::optional<ComponentBatch> rerun::blueprint::archetypes::PlotLegend::visible |
Whether the legend is shown at all.
True by default.
|
staticconstexpr |
|
staticconstexpr |
ComponentDescriptor
for the corner
field.
|
staticconstexpr |
ComponentDescriptor
for the visible
field.