Rerun C++ SDK
Loading...
Searching...
No Matches
rerun::components Namespace Reference

All built-in components. See Types in the Rerun manual. More...

Classes

struct  AnnotationContext
 Component: The AnnotationContext provides additional information on how to display entities. More...
 
struct  AxisLength
 Component: The length of an axis in local units of the space. More...
 
struct  Blob
 Component: A binary blob of data. More...
 
struct  ClassId
 Component: A 16-bit ID representing a type of semantic class. More...
 
struct  ClearIsRecursive
 Component: Configures how a clear operation should behave - recursive or not. More...
 
struct  Color
 Component: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha. More...
 
struct  DepthMeter
 Component: The world->depth map scaling factor. More...
 
struct  DisconnectedSpace
 Component: Spatially disconnect this entity from its parent. More...
 
struct  DrawOrder
 Component: Draw order of 2D elements. More...
 
struct  FillRatio
 Component: How much a primitive fills out the available space. More...
 
struct  GammaCorrection
 Component: A gamma correction value to be used with a scalar value or color. More...
 
struct  HalfSize2D
 Component: Half-size (radius) of a 2D box. More...
 
struct  HalfSize3D
 Component: Half-size (radius) of a 3D box. More...
 
struct  ImagePlaneDistance
 Component: The distance from the camera origin to the image plane when the projection is shown in a 3D viewer. More...
 
struct  IndicatorComponent
 Indicator component used by archetypes when converting them to component lists. More...
 
struct  KeypointId
 Component: A 16-bit ID representing a type of semantic keypoint within a class. More...
 
struct  LineStrip2D
 Component: A line strip in 2D space. More...
 
struct  LineStrip3D
 Component: A line strip in 3D space. More...
 
struct  MarkerSize
 Component: Radius of a marker of a point in e.g. a 2D plot, measured in UI points. More...
 
struct  Material
 Component: Material properties of a mesh, e.g. its color multiplier. More...
 
struct  MediaType
 Component: A standardized media type (RFC2046, formerly known as MIME types), encoded as a utf8 string. More...
 
struct  Name
 Component: A display name, typically for an entity or a item like a plot series. More...
 
struct  Opacity
 Component: Degree of transparency ranging from 0.0 (fully transparent) to 1.0 (fully opaque). More...
 
struct  OutOfTreeTransform3D
 Component: An out-of-tree affine transform between two 3D spaces, represented in a given direction. More...
 
struct  PinholeProjection
 Component: Camera projection, from image coordinates to view coordinates. More...
 
struct  Position2D
 Component: A position in 2D space. More...
 
struct  Position3D
 Component: A position in 3D space. More...
 
struct  Radius
 Component: The radius of something, e.g. More...
 
struct  Range1D
 Component: A 1D range, specifying a lower and upper bound. More...
 
struct  Resolution
 Component: Pixel resolution width & height, e.g. More...
 
struct  Rotation3D
 Component: A 3D rotation, represented either by a quaternion or a rotation around axis. More...
 
struct  Scalar
 Component: A scalar value, encoded as a 64-bit floating point. More...
 
struct  StrokeWidth
 Component: The width of a stroke specified in UI points. More...
 
struct  TensorData
 Component: An N-dimensional array of numbers. More...
 
struct  TensorDimensionIndexSelection
 Component: Specifies a concrete index on a tensor dimension. More...
 
struct  TensorHeightDimension
 Component: Specifies which dimension to use for height. More...
 
struct  TensorWidthDimension
 Component: Specifies which dimension to use for width. More...
 
struct  Texcoord2D
 Component: A 2D texture UV coordinate. More...
 
struct  Text
 Component: A string of text, e.g. for labels and text documents. More...
 
struct  TextLogLevel
 Component: The severity level of a text log message. More...
 
struct  Transform3D
 Component: An affine transform between two 3D spaces, represented in a given direction. More...
 
struct  TriangleIndices
 Component: The three indices of a triangle in a triangle mesh. More...
 
struct  Vector2D
 Component: A vector in 2D space. More...
 
struct  Vector3D
 Component: A vector in 3D space. More...
 
struct  ViewCoordinates
 Component: How we interpret the coordinate system of an entity/space. More...
 

Enumerations

enum class  AggregationPolicy : uint8_t {
  Off = 1 , Average = 2 , Max = 3 , Min = 4 ,
  MinMax = 5 , MinMaxAverage = 6
}
 Component: Policy for aggregation of multiple scalar plot values. More...
 
enum class  Colormap : uint8_t {
  Grayscale = 1 , Inferno = 2 , Magma = 3 , Plasma = 4 ,
  Turbo = 5 , Viridis = 6
}
 Component: Colormap for mapping scalar values within a given range to a color. More...
 
enum class  MagnificationFilter : uint8_t { Nearest = 1 , Linear = 2 }
 Component: Filter used when magnifying an image/texture such that a single pixel/texel is displayed as multiple pixels on screen. More...
 
enum class  MarkerShape : uint8_t {
  Circle = 1 , Diamond = 2 , Square = 3 , Cross = 4 ,
  Plus = 5 , Up = 6 , Down = 7 , Left = 8 ,
  Right = 9 , Asterisk = 10
}
 Component: The visual appearance of a point in e.g. a 2D plot. More...
 

Functions

const std::shared_ptr< arrow::DataType > & indicator_arrow_datatype ()
 Arrow data type shared by all instances of IndicatorComponent.
 
const std::shared_ptr< arrow::Array > & indicator_arrow_array ()
 Returns an arrow array for a single indicator component.
 

Detailed Description

All built-in components. See Types in the Rerun manual.

Enumeration Type Documentation

◆ AggregationPolicy

enum class rerun::components::AggregationPolicy : uint8_t
strong

Component: Policy for aggregation of multiple scalar plot values.

This is used for lines in plots when the X axis distance of individual points goes below a single pixel, i.e. a single pixel covers more than one tick worth of data. It can greatly improve performance (and readability) in such situations as it prevents overdraw.

Enumerator
Off 

No aggregation.

Average 

Average all points in the range together.

Max 

Keep only the maximum values in the range.

Min 

Keep only the minimum values in the range.

MinMax 

Keep both the minimum and maximum values in the range.

    This will yield two aggregated points instead of one, effectively creating a vertical line. 
MinMaxAverage 

Find both the minimum and maximum values in the range, then use the average of those.

◆ Colormap

enum class rerun::components::Colormap : uint8_t
strong

Component: Colormap for mapping scalar values within a given range to a color.

This provides a number of popular pre-defined colormaps. In the future, the Rerun Viewer will allow users to define their own colormaps, but currently the Viewer is limited to the types defined here.

Enumerator
Grayscale 

A simple black to white gradient.

    This is a sRGB gray gradient which is perceptually uniform. 
Inferno 

The Inferno colormap from Matplotlib.

    This is a perceptually uniform colormap.
    It interpolates from black to red to bright yellow. 
Magma 

The Magma colormap from Matplotlib.

    This is a perceptually uniform colormap.
    It interpolates from black to purple to white. 
Plasma 

The Plasma colormap from Matplotlib.

    This is a perceptually uniform colormap.
    It interpolates from dark blue to purple to yellow. 
Turbo 

Google's Turbo colormap map.

    This is a perceptually non-uniform rainbow colormap addressing many issues of
    more traditional rainbow colormaps like Jet.
    It is more perceptually uniform without sharp transitions and is more colorblind-friendly.
    Details: <https://research.google/blog/turbo-an-improved-rainbow-colormap-for-visualization/> 
Viridis 

The Viridis colormap from Matplotlib.

    This is a perceptually uniform colormap which is robust to color blindness.
    It interpolates from dark purple to green to yellow. 

◆ MagnificationFilter

enum class rerun::components::MagnificationFilter : uint8_t
strong

Component: Filter used when magnifying an image/texture such that a single pixel/texel is displayed as multiple pixels on screen.

Enumerator
Nearest 

Show the nearest pixel value.

    This will give a blocky appearance when zooming in.
    Used as default when rendering 2D images. 
Linear 

Linearly interpolate the nearest neighbors, creating a smoother look when zooming in.

    Used as default for mesh rendering. 

◆ MarkerShape

enum class rerun::components::MarkerShape : uint8_t
strong

Component: The visual appearance of a point in e.g. a 2D plot.

Enumerator
Circle 

Diamond 

Square 

◼\u{fe0f}

Cross 

x

Plus 

+

Up 

Down 

Left 

Right 

Asterisk 

*