pub struct AppState {Show 14 fields
pub(crate) app_options: AppOptions,
recording_configs: HashMap<StoreId, RecordingConfig>,
pub blueprint_cfg: RecordingConfig,
selection_panel: SelectionPanel,
time_panel: TimePanel,
blueprint_panel: TimePanel,
blueprint_tree: BlueprintTree,
welcome_screen: WelcomeScreen,
datastore_ui: DatastoreUi,
pub(crate) show_datastore_ui: bool,
pub(crate) show_settings_ui: bool,
view_states: ViewStates,
pub selection_state: ApplicationSelectionState,
pub(crate) focused_item: Option<Item>,
}
Fields§
§app_options: AppOptions
Global options for the whole viewer.
recording_configs: HashMap<StoreId, RecordingConfig>
Configuration for the current recording (found in EntityDb
).
blueprint_cfg: RecordingConfig
§selection_panel: SelectionPanel
§time_panel: TimePanel
§blueprint_panel: TimePanel
§blueprint_tree: BlueprintTree
§welcome_screen: WelcomeScreen
§datastore_ui: DatastoreUi
§show_datastore_ui: bool
Display the datastore UI instead of the regular viewer UI.
show_settings_ui: bool
Display the settings UI.
If both show_datastore_ui
and show_settings_ui
are true, the settings UI takes
precedence.
view_states: ViewStates
Storage for the state of each SpaceView
This is stored here for simplicity. An exclusive reference for that is passed to the users,
such as Viewport
and re_selection_panel::SelectionPanel
.
selection_state: ApplicationSelectionState
Selection & hovering state.
focused_item: Option<Item>
Item that got focused on the last frame if any.
The focused item is cleared every frame, but views may react with side-effects that last several frames.
Implementations§
source§impl AppState
impl AppState
pub fn set_examples_manifest_url(&mut self, egui_ctx: &Context, url: String)
pub fn app_options(&self) -> &AppOptions
pub fn app_options_mut(&mut self) -> &mut AppOptions
sourcepub fn loop_selection(
&self,
store_context: Option<&StoreContext<'_>>
) -> Option<(Timeline, ResolvedTimeRangeF)>
pub fn loop_selection( &self, store_context: Option<&StoreContext<'_>> ) -> Option<(Timeline, ResolvedTimeRangeF)>
Currently selected section of time, if any.
pub fn show( &mut self, app_blueprint: &AppBlueprint<'_>, ui: &mut Ui, render_ctx: &RenderContext, recording: &EntityDb, store_context: &StoreContext<'_>, reflection: &Reflection, component_ui_registry: &ComponentUiRegistry, space_view_class_registry: &SpaceViewClassRegistry, rx: &ReceiveSet<LogMsg>, command_sender: &CommandSender, welcome_screen_state: &WelcomeScreenState, is_history_enabled: bool )
pub fn recording_config_mut( &mut self, rec_id: &StoreId ) -> Option<&mut RecordingConfig>
pub fn cleanup(&mut self, store_hub: &StoreHub)
sourcepub fn blueprint_query_for_viewer(&self) -> LatestAtQuery
pub fn blueprint_query_for_viewer(&self) -> LatestAtQuery
Returns the blueprint query that should be used for generating the current layout of the viewer.
If inspect_blueprint_timeline
is enabled, we use the time selection from the
blueprint time_ctrl
. Otherwise, we use a latest query from the blueprint timeline.
Trait Implementations§
source§impl<'de> Deserialize<'de> for AppState
impl<'de> Deserialize<'de> for AppState
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl !Freeze for AppState
impl !RefUnwindSafe for AppState
impl Send for AppState
impl !Sync for AppState
impl Unpin for AppState
impl !UnwindSafe for AppState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request