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.0f)));
}
}
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:48
Archetype: Define the style properties for a point series in a chart.
Definition series_point.hpp:73
SeriesPoint with_marker_size(rerun::components::MarkerSize _marker_size) &&
Size of the marker.
Definition series_point.hpp:123
SeriesPoint with_marker(rerun::components::MarkerShape _marker) &&
What shape to use to represent the point.
Definition series_point.hpp:107
SeriesPoint with_name(rerun::components::Name _name) &&
Display name of the series.
Definition series_point.hpp:116
SeriesPoint with_color(rerun::components::Color _color) &&
Color for the corresponding series.
Definition series_point.hpp:100