mod depth_offsets;
mod transform_context;
pub use depth_offsets::EntityDepthOffsets;
use re_space_view::AnnotationSceneContext;
use re_types::SpaceViewClassIdentifier;
pub use transform_context::{TransformContext, TransformInfo, TwoDInThreeDTransformInfo};
use re_renderer::DepthOffset;
use re_viewer_context::{Annotations, SpaceViewClassRegistryError};
pub struct SpatialSceneEntityContext<'a> {
pub transform_info: &'a TransformInfo,
pub depth_offset: DepthOffset,
pub annotations: std::sync::Arc<Annotations>,
pub highlight: &'a re_viewer_context::SpaceViewOutlineMasks, pub space_view_class_identifier: SpaceViewClassIdentifier,
}
pub fn register_spatial_contexts(
system_registry: &mut re_viewer_context::SpaceViewSystemRegistrator<'_>,
) -> Result<(), SpaceViewClassRegistryError> {
system_registry.register_context_system::<TransformContext>()?;
system_registry.register_context_system::<EntityDepthOffsets>()?;
system_registry.register_context_system::<AnnotationSceneContext>()?;
Ok(())
}