Rerun C++ SDK
|
Archetype: A text element intended to be displayed in its own text box. More...
#include <rerun/archetypes/text_document.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 | |
TextDocument (TextDocument &&other)=default | |
TextDocument (const TextDocument &other)=default | |
TextDocument & | operator= (const TextDocument &other)=default |
TextDocument & | operator= (TextDocument &&other)=default |
TextDocument (rerun::components::Text _text) | |
TextDocument | with_text (const rerun::components::Text &_text) && |
Contents of the text document. | |
TextDocument | with_many_text (const Collection< rerun::components::Text > &_text) && |
This method makes it possible to pack multiple text in a single component batch. | |
TextDocument | with_media_type (const rerun::components::MediaType &_media_type) && |
The Media Type of the text. | |
TextDocument | with_many_media_type (const Collection< rerun::components::MediaType > &_media_type) && |
This method makes it possible to pack multiple media_type 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 TextDocument | update_fields () |
Update only some specific fields of a TextDocument . | |
static TextDocument | clear_fields () |
Clear all the fields of a TextDocument . | |
Public Attributes | |
std::optional< ComponentBatch > | text |
Contents of the text document. | |
std::optional< ComponentBatch > | media_type |
The Media Type of the text. | |
Static Public Attributes | |
static constexpr const char | IndicatorComponentName [] |
static constexpr const char | ArchetypeName [] = "rerun.archetypes.TextDocument" |
The name of the archetype as used in ComponentDescriptor s. | |
static constexpr auto | Descriptor_text |
ComponentDescriptor for the text field. | |
static constexpr auto | Descriptor_media_type |
ComponentDescriptor for the media_type field. | |
Archetype: A text element intended to be displayed in its own text box.
Supports raw text and markdown.
|
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 Media Type of the text.
For instance:
text/plain
text/markdown
If omitted, text/plain
is assumed.
|
inline |
This method makes it possible to pack multiple media_type
in a single component batch.
This only makes sense when used in conjunction with columns
. with_media_type
should be used when logging a single row's worth of data.
Collection< ComponentColumn > rerun::archetypes::TextDocument::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::TextDocument::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::TextDocument::media_type |
The Media Type of the text.
For instance:
text/plain
text/markdown
If omitted, text/plain
is assumed.
|
staticconstexpr |
|
staticconstexpr |
ComponentDescriptor
for the text
field.
|
staticconstexpr |
ComponentDescriptor
for the media_type
field.