Rerun C++ SDK
|
Archetype: Define the style properties for one or more line series in a chart. More...
#include <rerun/archetypes/series_lines.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 | |
SeriesLines | with_names (const char *_name) && |
Display name of the series. | |
SeriesLines (SeriesLines &&other)=default | |
SeriesLines (const SeriesLines &other)=default | |
SeriesLines & | operator= (const SeriesLines &other)=default |
SeriesLines & | operator= (SeriesLines &&other)=default |
SeriesLines | with_colors (const Collection< rerun::components::Color > &_colors) && |
Color for the corresponding series. | |
SeriesLines | with_widths (const Collection< rerun::components::StrokeWidth > &_widths) && |
Stroke width for the corresponding series. | |
SeriesLines | with_names (const Collection< rerun::components::Name > &_names) && |
Display name of the series. | |
SeriesLines | with_visible_series (const Collection< rerun::components::SeriesVisible > &_visible_series) && |
Which lines are visible. | |
SeriesLines | with_aggregation_policy (const rerun::components::AggregationPolicy &_aggregation_policy) && |
Configures the zoom-dependent scalar aggregation. | |
SeriesLines | with_many_aggregation_policy (const Collection< rerun::components::AggregationPolicy > &_aggregation_policy) && |
This method makes it possible to pack multiple aggregation_policy 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 SeriesLines | update_fields () |
Update only some specific fields of a SeriesLines . | |
static SeriesLines | clear_fields () |
Clear all the fields of a SeriesLines . | |
Public Attributes | |
std::optional< ComponentBatch > | colors |
Color for the corresponding series. | |
std::optional< ComponentBatch > | widths |
Stroke width for the corresponding series. | |
std::optional< ComponentBatch > | names |
Display name of the series. | |
std::optional< ComponentBatch > | visible_series |
Which lines are visible. | |
std::optional< ComponentBatch > | aggregation_policy |
Configures the zoom-dependent scalar aggregation. | |
Static Public Attributes | |
static constexpr const char | IndicatorComponentName [] |
static constexpr const char | ArchetypeName [] = "rerun.archetypes.SeriesLines" |
The name of the archetype as used in ComponentDescriptor s. | |
static constexpr auto | Descriptor_colors |
ComponentDescriptor for the colors field. | |
static constexpr auto | Descriptor_widths |
ComponentDescriptor for the widths field. | |
static constexpr auto | Descriptor_names |
ComponentDescriptor for the names field. | |
static constexpr auto | Descriptor_visible_series |
ComponentDescriptor for the visible_series field. | |
static constexpr auto | Descriptor_aggregation_policy |
ComponentDescriptor for the aggregation_policy field. | |
Archetype: Define the style properties for one or more line series in a chart.
This archetype only provides styling information. Changes over time are supported for most but not all its fields (see respective fields for details), it's generally recommended to log this type as static.
The underlying data needs to be logged to the same entity-path using archetypes::Scalars
. Dimensionality of the scalar arrays logged at each time point is assumed to be the same over time.
|
inline |
Display name of the series.
Used in the legend. Expected to be unchanging over time.
|
inline |
Color for the corresponding series.
May change over time, but can cause discontinuities in the line.
|
inline |
Stroke width for the corresponding series.
May change over time, but can cause discontinuities in the line.
|
inline |
Display name of the series.
Used in the legend. Expected to be unchanging over time.
|
inline |
Which lines are visible.
If not set, all line series on this entity are visible. Unlike with the regular visibility property of the entire entity, any series that is hidden via this property will still be visible in the legend.
May change over time, but can cause discontinuities in the line.
|
inline |
Configures the zoom-dependent scalar aggregation.
This is done only if steps on the X axis go below a single pixel, i.e. a single pixel covers more than one tick worth of data. It can greatly improve performance (and readability) in such situations as it prevents overdraw.
Expected to be unchanging over time.
|
inline |
This method makes it possible to pack multiple aggregation_policy
in a single component batch.
This only makes sense when used in conjunction with columns
. with_aggregation_policy
should be used when logging a single row's worth of data.
Collection< ComponentColumn > rerun::archetypes::SeriesLines::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::SeriesLines::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::archetypes::SeriesLines::colors |
Color for the corresponding series.
May change over time, but can cause discontinuities in the line.
std::optional<ComponentBatch> rerun::archetypes::SeriesLines::widths |
Stroke width for the corresponding series.
May change over time, but can cause discontinuities in the line.
std::optional<ComponentBatch> rerun::archetypes::SeriesLines::names |
Display name of the series.
Used in the legend. Expected to be unchanging over time.
std::optional<ComponentBatch> rerun::archetypes::SeriesLines::visible_series |
Which lines are visible.
If not set, all line series on this entity are visible. Unlike with the regular visibility property of the entire entity, any series that is hidden via this property will still be visible in the legend.
May change over time, but can cause discontinuities in the line.
std::optional<ComponentBatch> rerun::archetypes::SeriesLines::aggregation_policy |
Configures the zoom-dependent scalar aggregation.
This is done only if steps on the X axis go below a single pixel, i.e. a single pixel covers more than one tick worth of data. It can greatly improve performance (and readability) in such situations as it prevents overdraw.
Expected to be unchanging over time.
|
staticconstexpr |
|
staticconstexpr |
ComponentDescriptor
for the colors
field.
|
staticconstexpr |
ComponentDescriptor
for the widths
field.
|
staticconstexpr |
ComponentDescriptor
for the names
field.
|
staticconstexpr |
ComponentDescriptor
for the visible_series
field.
|
staticconstexpr |
ComponentDescriptor
for the aggregation_policy
field.