mod highlights;
mod named_system;
mod spawn_heuristics;
mod system_execution_output;
mod view_class;
mod view_class_placeholder;
mod view_class_registry;
mod view_context;
mod view_context_system;
mod view_query;
mod view_states;
mod visualizer_entity_subscriber;
mod visualizer_system;
pub use highlights::{
OptionalViewEntityHighlight, ViewEntityHighlight, ViewHighlights, ViewOutlineMasks,
};
pub use named_system::{IdentifiedViewSystem, PerSystemEntities, ViewSystemIdentifier};
pub use spawn_heuristics::{RecommendedView, ViewSpawnHeuristics};
pub use system_execution_output::SystemExecutionOutput;
pub use view_class::{
ViewClass, ViewClassExt, ViewClassLayoutPriority, ViewState, ViewStateExt,
VisualizableFilterContext,
};
pub use view_class_registry::{ViewClassRegistry, ViewClassRegistryError, ViewSystemRegistrator};
pub use view_context::ViewContext;
pub use view_context_system::{ViewContextCollection, ViewContextSystem};
pub use view_query::{
DataResult, OverridePath, PerSystemDataResults, PropertyOverrides, SmallVisualizerSet,
ViewQuery,
};
pub use view_states::ViewStates;
pub use visualizer_entity_subscriber::VisualizerAdditionalApplicabilityFilter;
pub use visualizer_system::{VisualizerCollection, VisualizerQueryInfo, VisualizerSystem};
#[derive(Debug, thiserror::Error)]
pub enum ViewSystemExecutionError {
#[error("View context system {0} not found")]
ContextSystemNotFound(&'static str),
#[error("View part system {0} not found")]
VisualizerSystemNotFound(&'static str),
#[error(transparent)]
QueryError2(#[from] re_query::QueryError),
#[error(transparent)]
DeserializationError(#[from] re_types::DeserializationError),
#[error("Failed to create draw data: {0}")]
DrawDataCreationError(Box<dyn std::error::Error>),
#[error("Error accessing map view tiles.")]
MapTilesError,
#[error(transparent)]
GpuTransferError(#[from] re_renderer::CpuWriteGpuReadError),
#[error("Failed to downcast view's to the {0}.")]
StateCastError(&'static str),
#[error("No render context error.")]
NoRenderContextError,
#[error(transparent)]
ComponentFallbackError(#[from] crate::ComponentFallbackError),
#[error(transparent)]
ViewBuilderError(#[from] re_renderer::view_builder::ViewBuilderError),
}
impl From<re_renderer::renderer::LineDrawDataError> for ViewSystemExecutionError {
fn from(val: re_renderer::renderer::LineDrawDataError) -> Self {
Self::DrawDataCreationError(Box::new(val))
}
}
impl From<re_renderer::renderer::PointCloudDrawDataError> for ViewSystemExecutionError {
fn from(val: re_renderer::renderer::PointCloudDrawDataError) -> Self {
Self::DrawDataCreationError(Box::new(val))
}
}