pub struct TextureMapView<'a, VR: VertexRef> { /* private fields */ }Expand description
Read view over the texture map for one theme.
Texture assignments in CityJSON associate UV coordinates (vertices-texture) with rings.
vertices() returns the UV index per geometry vertex (None = not textured),
rings() is the offset array, and ring_textures() gives the texture handle per ring.
Implementations§
Source§impl<'a, VR: VertexRef> TextureMapView<'a, VR>
impl<'a, VR: VertexRef> TextureMapView<'a, VR>
pub fn vertices(&self) -> &'a [Option<VertexIndex<VR>>]
pub fn rings(&self) -> &'a [VertexIndex<VR>]
pub fn ring_textures(&self) -> HandleOptionSlice<'a, TextureHandle>
Trait Implementations§
Source§impl<'a, VR: Clone + VertexRef> Clone for TextureMapView<'a, VR>
impl<'a, VR: Clone + VertexRef> Clone for TextureMapView<'a, VR>
Source§fn clone(&self) -> TextureMapView<'a, VR>
fn clone(&self) -> TextureMapView<'a, VR>
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 moreimpl<'a, VR: Copy + VertexRef> Copy for TextureMapView<'a, VR>
Auto Trait Implementations§
impl<'a, VR> Freeze for TextureMapView<'a, VR>
impl<'a, VR> RefUnwindSafe for TextureMapView<'a, VR>where
VR: RefUnwindSafe,
impl<'a, VR> Send for TextureMapView<'a, VR>where
VR: Sync,
impl<'a, VR> Sync for TextureMapView<'a, VR>where
VR: Sync,
impl<'a, VR> Unpin for TextureMapView<'a, VR>
impl<'a, VR> UnsafeUnpin for TextureMapView<'a, VR>
impl<'a, VR> UnwindSafe for TextureMapView<'a, VR>where
VR: RefUnwindSafe,
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