Trait re_data_ui::EntityDataUi

source ·
pub trait EntityDataUi {
    // Required method
    fn entity_data_ui(
        &self,
        ctx: &ViewerContext<'_>,
        ui: &mut Ui,
        ui_layout: UiLayout,
        entity_path: &EntityPath,
        row_id: Option<RowId>,
        query: &LatestAtQuery,
        db: &EntityDb
    );
}
Expand description

Similar to DataUi, but for data that is related to an entity (e.g. a component).

This is given the context of the entity it is part of so it can do queries.

Required Methods§

source

fn entity_data_ui( &self, ctx: &ViewerContext<'_>, ui: &mut Ui, ui_layout: UiLayout, entity_path: &EntityPath, row_id: Option<RowId>, query: &LatestAtQuery, db: &EntityDb )

If you need to lookup something in the chunk store, use the given query to do so.

Implementations on Foreign Types§

source§

impl EntityDataUi for Blob

source§

fn entity_data_ui( &self, ctx: &ViewerContext<'_>, ui: &mut Ui, ui_layout: UiLayout, entity_path: &EntityPath, row_id: Option<RowId>, query: &LatestAtQuery, _db: &EntityDb )

source§

impl EntityDataUi for ClassId

source§

fn entity_data_ui( &self, ctx: &ViewerContext<'_>, ui: &mut Ui, ui_layout: UiLayout, entity_path: &EntityPath, _row_id: Option<RowId>, query: &LatestAtQuery, _db: &EntityDb )

source§

impl EntityDataUi for KeypointId

source§

fn entity_data_ui( &self, ctx: &ViewerContext<'_>, ui: &mut Ui, ui_layout: UiLayout, entity_path: &EntityPath, _row_id: Option<RowId>, query: &LatestAtQuery, _db: &EntityDb )

source§

impl EntityDataUi for TensorData

source§

fn entity_data_ui( &self, ctx: &ViewerContext<'_>, ui: &mut Ui, ui_layout: UiLayout, _entity_path: &EntityPath, row_id: Option<RowId>, _query: &LatestAtQuery, _db: &EntityDb )

Implementors§

source§

impl<T> EntityDataUi for T
where T: DataUi,