Rerun C++ SDK
|
Archetype: Define the style properties for one or more point series (scatter plot) in a chart. More...
#include <rerun/archetypes/series_points.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 | |
SeriesPoints | with_names (const char *_name) && |
Display name of the series. | |
SeriesPoints (SeriesPoints &&other)=default | |
SeriesPoints (const SeriesPoints &other)=default | |
SeriesPoints & | operator= (const SeriesPoints &other)=default |
SeriesPoints & | operator= (SeriesPoints &&other)=default |
SeriesPoints | with_colors (const Collection< rerun::components::Color > &_colors) && |
Color for the corresponding series. | |
SeriesPoints | with_markers (const Collection< rerun::components::MarkerShape > &_markers) && |
What shape to use to represent the point. | |
SeriesPoints | with_names (const Collection< rerun::components::Name > &_names) && |
Display name of the series. | |
SeriesPoints | with_visible_series (const Collection< rerun::components::SeriesVisible > &_visible_series) && |
Which lines are visible. | |
SeriesPoints | with_marker_sizes (const Collection< rerun::components::MarkerSize > &_marker_sizes) && |
Sizes of the markers. | |
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 SeriesPoints | update_fields () |
Update only some specific fields of a SeriesPoints . | |
static SeriesPoints | clear_fields () |
Clear all the fields of a SeriesPoints . | |
Public Attributes | |
std::optional< ComponentBatch > | colors |
Color for the corresponding series. | |
std::optional< ComponentBatch > | markers |
What shape to use to represent the point. | |
std::optional< ComponentBatch > | names |
Display name of the series. | |
std::optional< ComponentBatch > | visible_series |
Which lines are visible. | |
std::optional< ComponentBatch > | marker_sizes |
Sizes of the markers. | |
Static Public Attributes | |
static constexpr const char | IndicatorComponentName [] |
static constexpr const char | ArchetypeName [] = "rerun.archetypes.SeriesPoints" |
The name of the archetype as used in ComponentDescriptor s. | |
static constexpr auto | Descriptor_colors |
ComponentDescriptor for the colors field. | |
static constexpr auto | Descriptor_markers |
ComponentDescriptor for the markers 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_marker_sizes |
ComponentDescriptor for the marker_sizes field. | |
Archetype: Define the style properties for one or more point series (scatter plot) 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 |
What shape to use to represent the point.
May change over time.
|
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.
|
inline |
Sizes of the markers.
May change over time.
Collection< ComponentColumn > rerun::archetypes::SeriesPoints::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::SeriesPoints::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::SeriesPoints::colors |
Color for the corresponding series.
May change over time, but can cause discontinuities in the line.
std::optional<ComponentBatch> rerun::archetypes::SeriesPoints::markers |
What shape to use to represent the point.
May change over time.
std::optional<ComponentBatch> rerun::archetypes::SeriesPoints::names |
Display name of the series.
Used in the legend. Expected to be unchanging over time.
std::optional<ComponentBatch> rerun::archetypes::SeriesPoints::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.
std::optional<ComponentBatch> rerun::archetypes::SeriesPoints::marker_sizes |
Sizes of the markers.
May change over time.
|
staticconstexpr |
|
staticconstexpr |
ComponentDescriptor
for the colors
field.
|
staticconstexpr |
ComponentDescriptor
for the markers
field.
|
staticconstexpr |
ComponentDescriptor
for the names
field.
|
staticconstexpr |
ComponentDescriptor
for the visible_series
field.
|
staticconstexpr |
ComponentDescriptor
for the marker_sizes
field.