Rerun C++ SDK
|
Archetype: A log entry in a text log, comprised of a text body and its log level. More...
#include <rerun/archetypes/text_log.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 | |
TextLog (TextLog &&other)=default | |
TextLog (const TextLog &other)=default | |
TextLog & | operator= (const TextLog &other)=default |
TextLog & | operator= (TextLog &&other)=default |
TextLog (rerun::components::Text _text) | |
TextLog | with_text (const rerun::components::Text &_text) && |
The body of the message. | |
TextLog | with_many_text (const Collection< rerun::components::Text > &_text) && |
This method makes it possible to pack multiple text in a single component batch. | |
TextLog | with_level (const rerun::components::TextLogLevel &_level) && |
The verbosity level of the message. | |
TextLog | with_many_level (const Collection< rerun::components::TextLogLevel > &_level) && |
This method makes it possible to pack multiple level in a single component batch. | |
TextLog | with_color (const rerun::components::Color &_color) && |
Optional color to use for the log line in the Rerun Viewer. | |
TextLog | with_many_color (const Collection< rerun::components::Color > &_color) && |
This method makes it possible to pack multiple color 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 TextLog | update_fields () |
Update only some specific fields of a TextLog . | |
static TextLog | clear_fields () |
Clear all the fields of a TextLog . | |
Public Attributes | |
std::optional< ComponentBatch > | text |
The body of the message. | |
std::optional< ComponentBatch > | level |
The verbosity level of the message. | |
std::optional< ComponentBatch > | color |
Optional color to use for the log line in the Rerun Viewer. | |
Static Public Attributes | |
static constexpr const char | IndicatorComponentName [] = "rerun.components.TextLogIndicator" |
static constexpr const char | ArchetypeName [] = "rerun.archetypes.TextLog" |
The name of the archetype as used in ComponentDescriptor s. | |
static constexpr auto | Descriptor_text |
ComponentDescriptor for the text field. | |
static constexpr auto | Descriptor_level |
ComponentDescriptor for the level field. | |
static constexpr auto | Descriptor_color |
ComponentDescriptor for the color field. | |
Archetype: A log entry in a text log, comprised of a text body and its log level.
|
inline |
This method makes it possible to pack multiple text
in a single component batch.
This only makes sense when used in conjunction with columns
. with_text
should be used when logging a single row's worth of data.
|
inline |
The verbosity level of the message.
This can be used to filter the log messages in the Rerun Viewer.
|
inline |
This method makes it possible to pack multiple level
in a single component batch.
This only makes sense when used in conjunction with columns
. with_level
should be used when logging a single row's worth of data.
|
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.
Collection< ComponentColumn > rerun::archetypes::TextLog::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::TextLog::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::TextLog::level |
The verbosity level of the message.
This can be used to filter the log messages in the Rerun Viewer.
|
staticconstexpr |
ComponentDescriptor
for the text
field.
|
staticconstexpr |
ComponentDescriptor
for the level
field.
|
staticconstexpr |
ComponentDescriptor
for the color
field.