Rerun C++ SDK
|
Archetype: Define the style properties for a point series in a chart. More...
#include <rerun/archetypes/series_point.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 | |
SeriesPoint (SeriesPoint &&other)=default | |
SeriesPoint (const SeriesPoint &other)=default | |
SeriesPoint & | operator= (const SeriesPoint &other)=default |
SeriesPoint & | operator= (SeriesPoint &&other)=default |
SeriesPoint | with_color (const rerun::components::Color &_color) && |
Color for the corresponding series. | |
SeriesPoint | with_many_color (const Collection< rerun::components::Color > &_color) && |
This method makes it possible to pack multiple color in a single component batch. | |
SeriesPoint | with_marker (const rerun::components::MarkerShape &_marker) && |
What shape to use to represent the point. | |
SeriesPoint | with_many_marker (const Collection< rerun::components::MarkerShape > &_marker) && |
This method makes it possible to pack multiple marker in a single component batch. | |
SeriesPoint | with_name (const rerun::components::Name &_name) && |
Display name of the series. | |
SeriesPoint | with_many_name (const Collection< rerun::components::Name > &_name) && |
This method makes it possible to pack multiple name in a single component batch. | |
SeriesPoint | with_visible_series (const Collection< rerun::components::SeriesVisible > &_visible_series) && |
Which point series are visible. | |
SeriesPoint | with_marker_size (const rerun::components::MarkerSize &_marker_size) && |
Size of the marker. | |
SeriesPoint | with_many_marker_size (const Collection< rerun::components::MarkerSize > &_marker_size) && |
This method makes it possible to pack multiple marker_size 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 SeriesPoint | update_fields () |
Update only some specific fields of a SeriesPoint . | |
static SeriesPoint | clear_fields () |
Clear all the fields of a SeriesPoint . | |
Public Attributes | |
std::optional< ComponentBatch > | color |
Color for the corresponding series. | |
std::optional< ComponentBatch > | marker |
What shape to use to represent the point. | |
std::optional< ComponentBatch > | name |
Display name of the series. | |
std::optional< ComponentBatch > | visible_series |
Which point series are visible. | |
std::optional< ComponentBatch > | marker_size |
Size of the marker. | |
Static Public Attributes | |
static constexpr const char | IndicatorComponentName [] |
static constexpr const char | ArchetypeName [] = "rerun.archetypes.SeriesPoint" |
The name of the archetype as used in ComponentDescriptor s. | |
static constexpr auto | Descriptor_color |
ComponentDescriptor for the color field. | |
static constexpr auto | Descriptor_marker |
ComponentDescriptor for the marker field. | |
static constexpr auto | Descriptor_name |
ComponentDescriptor for the name field. | |
static constexpr auto | Descriptor_visible_series |
ComponentDescriptor for the visible_series field. | |
static constexpr auto | Descriptor_marker_size |
ComponentDescriptor for the marker_size field. | |
Archetype: Define the style properties for a point series in a chart.
This archetype only provides styling information and should be logged as static when possible. The underlying data needs to be logged to the same entity-path using archetypes::Scalars
.
⚠ Deprecated since 0.23.0: Use SeriesPoints
instead.
|
inline |
This method makes it possible to pack multiple color
in a single component batch.
This only makes sense when used in conjunction with columns
. with_color
should be used when logging a single row's worth of data.
|
inline |
This method makes it possible to pack multiple marker
in a single component batch.
This only makes sense when used in conjunction with columns
. with_marker
should be used when logging a single row's worth of data.
|
inline |
Display name of the series.
Used in the legend.
|
inline |
This method makes it possible to pack multiple name
in a single component batch.
This only makes sense when used in conjunction with columns
. with_name
should be used when logging a single row's worth of data.
|
inline |
Which point series are visible.
If not set, all point 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.
|
inline |
This method makes it possible to pack multiple marker_size
in a single component batch.
This only makes sense when used in conjunction with columns
. with_marker_size
should be used when logging a single row's worth of data.
Collection< ComponentColumn > rerun::archetypes::SeriesPoint::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::SeriesPoint::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::SeriesPoint::name |
Display name of the series.
Used in the legend.
std::optional<ComponentBatch> rerun::archetypes::SeriesPoint::visible_series |
Which point series are visible.
If not set, all point 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.
|
staticconstexpr |
|
staticconstexpr |
ComponentDescriptor
for the color
field.
|
staticconstexpr |
ComponentDescriptor
for the marker
field.
|
staticconstexpr |
ComponentDescriptor
for the name
field.
|
staticconstexpr |
ComponentDescriptor
for the visible_series
field.
|
staticconstexpr |
ComponentDescriptor
for the marker_size
field.