pub struct GeometryView<'a, VR: VertexRef, SS: StringStorage> { /* private fields */ }Expand description
A read view over a geometry, optionally resolved from a GeometryInstance.
When obtained from CityModel::resolve_geometry,
this view points at the effective geometry type (e.g. the MultiSurface that a
GeometryInstance references), with the original instance data available through
GeometryView::instance.
Implementations§
Source§impl<'a, VR: VertexRef, SS: StringStorage> GeometryView<'a, VR, SS>
impl<'a, VR: VertexRef, SS: StringStorage> GeometryView<'a, VR, SS>
Methods from Deref<Target = Geometry<VR, SS>>§
pub fn type_geometry(&self) -> &GeometryType
pub fn lod(&self) -> Option<&LoD>
pub fn boundaries(&self) -> Option<&Boundary<VR>>
pub fn coordinates<'a, V: Coordinate>( &'a self, vertices: &'a Vertices<VR, V>, ) -> Option<BoundaryCoordinates<'a, VR, V>>
pub fn unique_vertex_indices<'a>( &'a self, scratch: &'a mut Vec<VertexIndex<VR>>, ) -> Option<&'a [VertexIndex<VR>]>
pub fn unique_coordinates<'a, V: Coordinate>( &'a self, vertices: &'a Vertices<VR, V>, scratch: &'a mut Vec<VertexIndex<VR>>, ) -> Option<BoundaryUniqueCoordinates<'a, VR, V>>
pub fn semantics(&self) -> Option<SemanticMapView<'_, VR>>
pub fn materials(&self) -> Option<MaterialThemesView<'_, VR, SS>>
pub fn textures(&self) -> Option<TextureThemesView<'_, VR, SS>>
pub fn instance(&self) -> Option<GeometryInstanceView<'_, VR>>
Trait Implementations§
Source§impl<'a, VR: Clone + VertexRef, SS: Clone + StringStorage> Clone for GeometryView<'a, VR, SS>
impl<'a, VR: Clone + VertexRef, SS: Clone + StringStorage> Clone for GeometryView<'a, VR, SS>
Source§fn clone(&self) -> GeometryView<'a, VR, SS>
fn clone(&self) -> GeometryView<'a, VR, SS>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, VR: Debug + VertexRef, SS: Debug + StringStorage> Debug for GeometryView<'a, VR, SS>
impl<'a, VR: Debug + VertexRef, SS: Debug + StringStorage> Debug for GeometryView<'a, VR, SS>
Source§impl<VR: VertexRef, SS: StringStorage> Deref for GeometryView<'_, VR, SS>
impl<VR: VertexRef, SS: StringStorage> Deref for GeometryView<'_, VR, SS>
impl<'a, VR: Copy + VertexRef, SS: Copy + StringStorage> Copy for GeometryView<'a, VR, SS>
Auto Trait Implementations§
impl<'a, VR, SS> Freeze for GeometryView<'a, VR, SS>
impl<'a, VR, SS> RefUnwindSafe for GeometryView<'a, VR, SS>
impl<'a, VR, SS> Send for GeometryView<'a, VR, SS>
impl<'a, VR, SS> Sync for GeometryView<'a, VR, SS>
impl<'a, VR, SS> Unpin for GeometryView<'a, VR, SS>
impl<'a, VR, SS> UnsafeUnpin for GeometryView<'a, VR, SS>
impl<'a, VR, SS> UnwindSafe for GeometryView<'a, VR, SS>
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
Mutably borrows from an owned value. Read more