pub struct PointInstance {
pub position: GeoCoord,
pub radius: f64,
pub intensity: f32,
pub color: Option<[f32; 4]>,
pub pick_id: u64,
pub altitude_mode: AltitudeMode,
}Expand description
A single point-cloud instance anchored to a geographic position.
Fields§
§position: GeoCoordGeographic anchor position.
radius: f64Point radius in meters.
intensity: f32Intensity value used by fallback colour ramps.
color: Option<[f32; 4]>Optional per-instance RGBA colour override.
pick_id: u64Stable pick identifier returned by the picking system.
altitude_mode: AltitudeModeAltitude mode for this point.
Implementations§
Source§impl PointInstance
impl PointInstance
Sourcepub fn new(position: GeoCoord, radius: f64) -> Self
pub fn new(position: GeoCoord, radius: f64) -> Self
Create a point instance with the given position and radius.
Sourcepub fn with_intensity(self, intensity: f32) -> Self
pub fn with_intensity(self, intensity: f32) -> Self
Set the intensity.
Sourcepub fn with_pick_id(self, id: u64) -> Self
pub fn with_pick_id(self, id: u64) -> Self
Set the pick id.
Sourcepub fn with_color(self, color: [f32; 4]) -> Self
pub fn with_color(self, color: [f32; 4]) -> Self
Set an RGBA colour override.
Sourcepub fn with_altitude_mode(self, altitude_mode: AltitudeMode) -> Self
pub fn with_altitude_mode(self, altitude_mode: AltitudeMode) -> Self
Set the altitude mode.
Trait Implementations§
Source§impl Clone for PointInstance
impl Clone for PointInstance
Source§fn clone(&self) -> PointInstance
fn clone(&self) -> PointInstance
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 moreAuto Trait Implementations§
impl Freeze for PointInstance
impl RefUnwindSafe for PointInstance
impl Send for PointInstance
impl Sync for PointInstance
impl Unpin for PointInstance
impl UnsafeUnpin for PointInstance
impl UnwindSafe for PointInstance
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