pub struct PickResult {
pub hits: Vec<PickHit>,
pub query_coord: Option<GeoCoord>,
pub projection: Option<CameraProjection>,
}Expand description
Complete result of a pick operation.
Contains zero or more PickHits sorted in priority and distance order,
plus metadata about the query itself.
Fields§
§hits: Vec<PickHit>Ordered hits (highest priority first, then by distance).
query_coord: Option<GeoCoord>The resolved geographic coordinate of the query point, if available.
projection: Option<CameraProjection>The camera projection active at query time.
Implementations§
Source§impl PickResult
impl PickResult
Sourcepub fn by_category(&self, category: HitCategory) -> Vec<&PickHit>
pub fn by_category(&self, category: HitCategory) -> Vec<&PickHit>
Filter hits by category.
Sourcepub fn terrain_hits(&self) -> Vec<&PickHit>
pub fn terrain_hits(&self) -> Vec<&PickHit>
Filter hits to only terrain surface results.
Sourcepub fn feature_hits(&self) -> Vec<&PickHit>
pub fn feature_hits(&self) -> Vec<&PickHit>
Filter hits to only feature results.
Sourcepub fn symbol_hits(&self) -> Vec<&PickHit>
pub fn symbol_hits(&self) -> Vec<&PickHit>
Filter hits to only symbol results.
Sourcepub fn model_hits(&self) -> Vec<&PickHit>
pub fn model_hits(&self) -> Vec<&PickHit>
Filter hits to only model results.
Trait Implementations§
Source§impl Clone for PickResult
impl Clone for PickResult
Source§fn clone(&self) -> PickResult
fn clone(&self) -> PickResult
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 Debug for PickResult
impl Debug for PickResult
Source§impl Default for PickResult
impl Default for PickResult
Source§fn default() -> PickResult
fn default() -> PickResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PickResult
impl RefUnwindSafe for PickResult
impl Send for PickResult
impl Sync for PickResult
impl Unpin for PickResult
impl UnsafeUnpin for PickResult
impl UnwindSafe for PickResult
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