use std::ops::Deref;
use re_byte_size::SizeBytes;
use re_sdk_types::components;
use crate::TransformFrameIdHash;
#[derive(Clone, Debug, PartialEq)]
pub struct ResolvedPinholeProjection {
pub(crate) cached: ResolvedPinholeProjectionCached,
pub view_coordinates: components::ViewCoordinates,
}
impl Deref for ResolvedPinholeProjection {
type Target = ResolvedPinholeProjectionCached;
#[inline]
fn deref(&self) -> &Self::Target {
&self.cached
}
}
impl SizeBytes for ResolvedPinholeProjection {
fn is_pod() -> bool {
true
}
fn heap_size_bytes(&self) -> u64 {
0
}
}
#[derive(Clone, Debug, PartialEq)]
pub struct ResolvedPinholeProjectionCached {
pub parent: TransformFrameIdHash,
pub image_from_camera: components::PinholeProjection,
pub resolution: Option<components::Resolution>,
}
impl SizeBytes for ResolvedPinholeProjectionCached {
fn is_pod() -> bool {
true
}
fn heap_size_bytes(&self) -> u64 {
0
}
}