pub struct HeatmapClassDomain {
pub id: String,
pub min: f64,
pub max: f64,
pub property: Option<String>,
}Expand description
Bake-time per-class intensity domain for the GPU-splat HeatmapLayer.
The HeatmapLayer maps (weight × gaussian_falloff × intensity) through a
palette LUT. Without a pinned domain the renderer would either bake [0,1]
in (saturating immediately when weightProperty carries large values like
earthquake magnitudes) or trigger a runtime GPU readback to auto-detect
the max. Computing the domain at build time gives the renderer a stable
ramp with zero runtime cost.
Fields§
§id: StringClass id — "default" for the un-classified single-channel mode,
otherwise matches the FE channel id (typically a categorical value).
min: f64Inclusive minimum splat intensity for this class.
max: f64Inclusive maximum splat intensity for this class. For the un-weighted default this is 1.0 (the gaussian peak). For a weight-property-driven layer this is the 95th-percentile weight across all features (95p is more visually useful than absolute max, which lets a single outlier dim the whole ramp).
property: Option<String>Source weight property the domain was computed from, if any.
None = constant unit weight.
Trait Implementations§
Source§impl Clone for HeatmapClassDomain
impl Clone for HeatmapClassDomain
Source§fn clone(&self) -> HeatmapClassDomain
fn clone(&self) -> HeatmapClassDomain
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HeatmapClassDomain
impl Debug for HeatmapClassDomain
Source§impl<'de> Deserialize<'de> for HeatmapClassDomain
impl<'de> Deserialize<'de> for HeatmapClassDomain
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for HeatmapClassDomain
impl PartialEq for HeatmapClassDomain
Source§fn eq(&self, other: &HeatmapClassDomain) -> bool
fn eq(&self, other: &HeatmapClassDomain) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for HeatmapClassDomain
impl Serialize for HeatmapClassDomain
impl StructuralPartialEq for HeatmapClassDomain
Auto Trait Implementations§
impl Freeze for HeatmapClassDomain
impl RefUnwindSafe for HeatmapClassDomain
impl Send for HeatmapClassDomain
impl Sync for HeatmapClassDomain
impl Unpin for HeatmapClassDomain
impl UnsafeUnpin for HeatmapClassDomain
impl UnwindSafe for HeatmapClassDomain
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more