Archetypes
rerun.blueprint.archetypes
class Background
Bases: BackgroundExt
, Archetype
Archetype: Configuration for the background of a view.
def __init__(color_or_kind=None, *, color=None, kind=None)
Create a new instance of the Background archetype.
PARAMETER | DESCRIPTION |
---|---|
color_or_kind |
Either a color for solid background color or kind of the background (see
TYPE:
|
kind |
The type of the background. Defaults to BackgroundKind.GradientDark.
TYPE:
|
color |
Color used for BackgroundKind.SolidColor. Defaults to White.
TYPE:
|
class ContainerBlueprint
Bases: Archetype
Archetype: The top-level description of the Viewport.
def __init__(container_kind, *, display_name=None, contents=None, col_shares=None, row_shares=None, active_tab=None, visible=None, grid_columns=None)
Create a new instance of the ContainerBlueprint archetype.
PARAMETER | DESCRIPTION |
---|---|
container_kind |
The class of the view.
TYPE:
|
display_name |
The name of the container.
TYPE:
|
contents |
TYPE:
|
col_shares |
The layout shares of each column in the container. For Ignored for
TYPE:
|
row_shares |
The layout shares of each row of the container. For Ignored for
TYPE:
|
active_tab |
Which tab is active. Only applies to
TYPE:
|
visible |
Whether this container is visible. Defaults to true if not specified.
TYPE:
|
grid_columns |
How many columns this grid should have. If unset, the grid layout will be auto. Ignored for
TYPE:
|
class PanelBlueprint
Bases: Archetype
Archetype: Shared state for the 3 collapsible panels.
def __init__(*, state=None)
Create a new instance of the PanelBlueprint archetype.
class PlotLegend
Bases: PlotLegendExt
, Archetype
Archetype: Configuration for the legend of a plot.
def __init__(corner=None, *, visible=None)
Create a new instance of the PlotLegend archetype.
PARAMETER | DESCRIPTION |
---|---|
corner |
To what corner the legend is aligned. Defaults to the right bottom corner.
TYPE:
|
visible |
Whether the legend is shown at all. True by default.
TYPE:
|
class ScalarAxis
Bases: Archetype
Archetype: Configuration for the scalar axis of a plot.
def __init__(*, range=None, zoom_lock=None)
Create a new instance of the ScalarAxis archetype.
PARAMETER | DESCRIPTION |
---|---|
range |
The range of the axis. If unset, the range well be automatically determined based on the queried data.
TYPE:
|
zoom_lock |
If enabled, the Y axis range will remain locked to the specified range when zooming.
TYPE:
|
class SpaceViewBlueprint
Bases: Archetype
Archetype: The top-level description of the Viewport.
def __init__(class_identifier, *, display_name=None, space_origin=None, visible=None)
Create a new instance of the SpaceViewBlueprint archetype.
PARAMETER | DESCRIPTION |
---|---|
class_identifier |
The class of the view.
TYPE:
|
display_name |
The name of the view.
TYPE:
|
space_origin |
The "anchor point" of this space view. Defaults to the root path '/' if not specified. The transform at this path forms the reference point for all scene->world transforms in this space view. I.e. the position of this entity path in space forms the origin of the coordinate system in this space view. Furthermore, this is the primary indicator for heuristics on what entities we show in this space view.
TYPE:
|
visible |
Whether this space view is visible. Defaults to true if not specified.
TYPE:
|
class SpaceViewContents
Bases: Archetype
Archetype: The contents of a SpaceView
.
The contents are found by combining a collection of QueryExpression
s.
+ /world/** # add everything…
- /world/roads/** # …but remove all roads…
+ /world/roads/main # …but show main road
If there is multiple matching rules, the most specific rule wins. If there are multiple rules of the same specificity, the last one wins. If no rules match, the path is excluded.
Specifying a path without a +
or -
prefix is equivalent to +
:
/world/** # add everything…
- /world/roads/** # …but remove all roads…
/world/roads/main # …but show main road
The /**
suffix matches the whole subtree, i.e. self and any child, recursively
(/world/**
matches both /world
and /world/car/driver
).
Other uses of *
are not (yet) supported.
Internally, EntityPathFilter
sorts the rule by entity path, with recursive coming before non-recursive.
This means the last matching rule is also the most specific one. For instance:
+ /world/**
- /world
- /world/car/**
+ /world/car/driver
The last rule matching /world/car/driver
is + /world/car/driver
, so it is included.
The last rule matching /world/car/hood
is - /world/car/**
, so it is excluded.
The last rule matching /world
is - /world
, so it is excluded.
The last rule matching /world/house
is + /world/**
, so it is included.
def __init__(query)
Create a new instance of the SpaceViewContents archetype.
PARAMETER | DESCRIPTION |
---|---|
query |
The They determine which entities are part of the spaceview.
TYPE:
|
class TensorScalarMapping
Bases: Archetype
Archetype: Configures how tensor scalars are mapped to color.
def __init__(*, mag_filter=None, colormap=None, gamma=None)
Create a new instance of the TensorScalarMapping archetype.
PARAMETER | DESCRIPTION |
---|---|
mag_filter |
Filter used when zooming in on the tensor. Note that the filter is applied to the scalar values before they are mapped to color.
TYPE:
|
colormap |
How scalar values map to colors.
TYPE:
|
gamma |
Gamma exponent applied to normalized values before mapping to color. Raises the normalized values to the power of this value before mapping to color. Acts like an inverse brightness. Defaults to 1.0.
TYPE:
|
class TensorSliceSelection
Bases: Archetype
Archetype: Specifies a 2D slice of a tensor.
def __init__(*, width=None, height=None, indices=None, slider=None)
Create a new instance of the TensorSliceSelection archetype.
PARAMETER | DESCRIPTION |
---|---|
width |
Which dimension to map to width. If not specified, the height will be determined automatically based on the name and index of the dimension.
TYPE:
|
height |
Which dimension to map to height. If not specified, the height will be determined automatically based on the name and index of the dimension.
TYPE:
|
indices |
Selected indices for all other dimensions. If any of the here listed dimensions is equal to
TYPE:
|
slider |
Any dimension listed here will have a slider for the index. Edits to the sliders will directly manipulate dimensions on the
TYPE:
|
class TensorViewFit
Bases: TensorViewFitExt
, Archetype
Archetype: Configures how a selected tensor slice is shown on screen.
def __init__(scaling=None)
Create a new instance of the TensorViewFit archetype.
PARAMETER | DESCRIPTION |
---|---|
scaling |
How the image is scaled to fit the view.
TYPE:
|
class ViewportBlueprint
Bases: Archetype
Archetype: The top-level description of the Viewport.
def __init__(*, root_container=None, maximized=None, auto_layout=None, auto_space_views=None, past_viewer_recommendations=None)
Create a new instance of the ViewportBlueprint archetype.
PARAMETER | DESCRIPTION |
---|---|
root_container |
The layout of the space-views
TYPE:
|
maximized |
Show one tab as maximized?
TYPE:
|
auto_layout |
Whether the viewport layout is determined automatically. If
TYPE:
|
auto_space_views |
Whether or not space views should be created automatically. If
TYPE:
|
past_viewer_recommendations |
Hashes of all recommended space views the viewer has already added and that should not be added again. This is an internal field and should not be set usually.
If you want the viewer from stopping to add space views, you should set The viewer uses this to determine whether it should keep adding space views.
TYPE:
|
class VisibleTimeRanges
Bases: VisibleTimeRangesExt
, Archetype
Archetype: Configures what range of each timeline is shown on a view.
Whenever no visual time range applies, queries are done with "latest at" semantics. This means that the view will, starting from the time cursor position, query the latest data available for each component type.
The default visual time range depends on the type of view this property applies to: - For time series views, the default is to show the entire timeline. - For any other view, the default is to apply latest-at semantics.
def __init__(ranges)
Create a new instance of the VisibleTimeRanges archetype.
PARAMETER | DESCRIPTION |
---|---|
ranges |
The time ranges to show for each timeline unless specified otherwise on a per-entity basis. If a timeline is listed twice, a warning will be issued and the first entry will be used.
TYPE:
|
class VisualBounds2D
Bases: VisualBounds2DExt
, Archetype
Archetype: Controls the visual bounds of a 2D view.
Everything within these bounds are guaranteed to be visible. Somethings outside of these bounds may also be visible due to letterboxing.
If no visual bounds are set, it will be determined automatically, based on the bounding-box of the data or other camera information present in the view.
def __init__(*, x_range, y_range)
Create a new instance of the VisualBounds2D archetype.
PARAMETER | DESCRIPTION |
---|---|
x_range |
The minimum visible range of the X-axis (usually left and right bounds).
TYPE:
|
y_range |
The minimum visible range of the Y-axis (usually left and right bounds).
TYPE:
|