/// Color by world-space position along a cardinal axis using a colormap.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct SpatialAppearanceColoringGradient {
    #[serde(rename = "axis")]
    axis: super::SpatialColorAxis,
    #[serde(rename = "colormap")]
    colormap: super::SpatialColorMap,
    #[serde(rename = "extents")]
    extents: super::SpatialGradientExtents,
}
impl SpatialAppearanceColoringGradient {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        axis: super::SpatialColorAxis,
        colormap: super::SpatialColorMap,
        extents: super::SpatialGradientExtents,
    ) -> Self {
        Self::builder().axis(axis).colormap(colormap).extents(extents).build()
    }
    #[inline]
    pub fn axis(&self) -> &super::SpatialColorAxis {
        &self.axis
    }
    #[inline]
    pub fn colormap(&self) -> &super::SpatialColorMap {
        &self.colormap
    }
    #[inline]
    pub fn extents(&self) -> &super::SpatialGradientExtents {
        &self.extents
    }
}
