re_data_ui

Trait EntityDataUi

Source
pub trait EntityDataUi {
    // Required method
    fn entity_data_ui(
        &self,
        ctx: &ViewerContext<'_>,
        ui: &mut Ui,
        ui_layout: UiLayout,
        entity_path: &EntityPath,
        cache_key: Option<Hash64>,
        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, cache_key: Option<Hash64>, 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, cache_key: Option<Hash64>, 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, _cache_key: Option<Hash64>, 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, _cache_key: Option<Hash64>, 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, cache_key: Option<Hash64>, _query: &LatestAtQuery, _db: &EntityDb, )

Implementors§

Source§

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