Archetype: Define the style properties for a point series in a chart.
More...
#include <rerun/archetypes/series_point.hpp>
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::Scalar
.
Example
Point series

#include <rerun.hpp>
#include <cmath>
constexpr float TAU = 6.28318530717958647692528676655900577f;
int main() {
rec.spawn().exit_on_failure();
rec.log_static(
"trig/sin",
);
rec.log_static(
"trig/cos",
);
for (int t = 0; t <static_cast<int>(TAU * 2.0 * 10.0); ++t) {
rec.set_time_sequence("step", t);
rec.log(
"trig/sin",
rerun::Scalar(sin(
static_cast<double>(t) / 10.0)));
rec.log(
"trig/cos",
rerun::Scalar(cos(
static_cast<double>(t) / 10.0)));
}
}
A RecordingStream handles everything related to logging data into Rerun.
Definition recording_stream.hpp:60
Archetype: A double-precision scalar, e.g.
Definition scalar.hpp:80
Archetype: Define the style properties for a point series in a chart.
Definition series_point.hpp:73
SeriesPoint with_marker_size(const rerun::components::MarkerSize &_marker_size) &&
Size of the marker.
Definition series_point.hpp:179
SeriesPoint with_color(const rerun::components::Color &_color) &&
Color for the corresponding series.
Definition series_point.hpp:132
SeriesPoint with_name(const rerun::components::Name &_name) &&
Display name of the series.
Definition series_point.hpp:164
SeriesPoint with_marker(const rerun::components::MarkerShape &_marker) &&
What shape to use to represent the point.
Definition series_point.hpp:147
◆ with_many_color()
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.
◆ with_many_marker()
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.
◆ with_name()
Display name of the series.
Used in the legend.
◆ with_many_name()
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.
◆ with_many_marker_size()
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.
◆ columns() [1/2]
◆ columns() [2/2]
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.
◆ name
Display name of the series.
Used in the legend.
◆ IndicatorComponentName
constexpr const char rerun::archetypes::SeriesPoint::IndicatorComponentName[] |
|
staticconstexpr |
Initial value:=
"rerun.components.SeriesPointIndicator"
◆ Descriptor_color
constexpr auto rerun::archetypes::SeriesPoint::Descriptor_color |
|
staticconstexpr |
Initial value:= ComponentDescriptor(
ArchetypeName,
"color", Loggable<rerun::components::Color>::Descriptor.component_name
)
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition series_point.hpp:95
ComponentDescriptor
for the color
field.
◆ Descriptor_marker
constexpr auto rerun::archetypes::SeriesPoint::Descriptor_marker |
|
staticconstexpr |
Initial value:= ComponentDescriptor(
Loggable<rerun::components::MarkerShape>::Descriptor.component_name
)
ComponentDescriptor
for the marker
field.
◆ Descriptor_name
constexpr auto rerun::archetypes::SeriesPoint::Descriptor_name |
|
staticconstexpr |
Initial value:= ComponentDescriptor(
ArchetypeName,
"name", Loggable<rerun::components::Name>::Descriptor.component_name
)
ComponentDescriptor
for the name
field.
◆ Descriptor_marker_size
constexpr auto rerun::archetypes::SeriesPoint::Descriptor_marker_size |
|
staticconstexpr |
Initial value:= ComponentDescriptor(
Loggable<rerun::components::MarkerSize>::Descriptor.component_name
)
ComponentDescriptor
for the marker_size
field.
The documentation for this struct was generated from the following file: