pub struct ConversionParams { /* private fields */ }Expand description
Parameters for tile conversion and mesh generation.
Controls triangle density and decimation factors used when converting terrain data to renderable mesh formats.
Implementations§
Source§impl ConversionParams
impl ConversionParams
Sourcepub fn serialise_version(&self) -> &u16
pub fn serialise_version(&self) -> &u16
Serialisation format version.
Sourcepub fn triangle_density(&self) -> &i32
pub fn triangle_density(&self) -> &i32
Target triangle density.
Sourcepub fn max_lf_heights_per_pixel(&self) -> &i32
pub fn max_lf_heights_per_pixel(&self) -> &i32
Maximum low-frequency heights per pixel.
Sourcepub fn triangle_decimation_size_factors0(&self) -> &f32
pub fn triangle_decimation_size_factors0(&self) -> &f32
Size decimation factor (LOD level 0).
Sourcepub fn triangle_decimation_size_factors1(&self) -> &f32
pub fn triangle_decimation_size_factors1(&self) -> &f32
Size decimation factor (LOD level 1).
Sourcepub fn triangle_decimation_size_factors2(&self) -> &f32
pub fn triangle_decimation_size_factors2(&self) -> &f32
Size decimation factor (LOD level 2).
Sourcepub fn triangle_decimation_size_factors3(&self) -> &f32
pub fn triangle_decimation_size_factors3(&self) -> &f32
Size decimation factor (LOD level 3).
Sourcepub fn triangle_decimation_size_factors4(&self) -> &f32
pub fn triangle_decimation_size_factors4(&self) -> &f32
Size decimation factor (LOD level 4).
Sourcepub fn triangle_decimation_size_factors5(&self) -> &f32
pub fn triangle_decimation_size_factors5(&self) -> &f32
Size decimation factor (LOD level 5).
Sourcepub fn triangle_decimation_angle_factors0(&self) -> &f32
pub fn triangle_decimation_angle_factors0(&self) -> &f32
Angle decimation factor (LOD level 0).
Sourcepub fn triangle_decimation_angle_factors1(&self) -> &f32
pub fn triangle_decimation_angle_factors1(&self) -> &f32
Angle decimation factor (LOD level 1).
Sourcepub fn triangle_decimation_angle_factors2(&self) -> &f32
pub fn triangle_decimation_angle_factors2(&self) -> &f32
Angle decimation factor (LOD level 2).
Sourcepub fn triangle_decimation_angle_factors3(&self) -> &f32
pub fn triangle_decimation_angle_factors3(&self) -> &f32
Angle decimation factor (LOD level 3).
Sourcepub fn triangle_decimation_angle_factors4(&self) -> &f32
pub fn triangle_decimation_angle_factors4(&self) -> &f32
Angle decimation factor (LOD level 4).
Sourcepub fn triangle_decimation_angle_factors5(&self) -> &f32
pub fn triangle_decimation_angle_factors5(&self) -> &f32
Angle decimation factor (LOD level 5).
Source§impl ConversionParams
impl ConversionParams
Sourcepub fn serialise_version_mut(&mut self) -> &mut u16
pub fn serialise_version_mut(&mut self) -> &mut u16
Serialisation format version.
Sourcepub fn triangle_density_mut(&mut self) -> &mut i32
pub fn triangle_density_mut(&mut self) -> &mut i32
Target triangle density.
Sourcepub fn max_lf_heights_per_pixel_mut(&mut self) -> &mut i32
pub fn max_lf_heights_per_pixel_mut(&mut self) -> &mut i32
Maximum low-frequency heights per pixel.
Sourcepub fn triangle_decimation_size_factors0_mut(&mut self) -> &mut f32
pub fn triangle_decimation_size_factors0_mut(&mut self) -> &mut f32
Size decimation factor (LOD level 0).
Sourcepub fn triangle_decimation_size_factors1_mut(&mut self) -> &mut f32
pub fn triangle_decimation_size_factors1_mut(&mut self) -> &mut f32
Size decimation factor (LOD level 1).
Sourcepub fn triangle_decimation_size_factors2_mut(&mut self) -> &mut f32
pub fn triangle_decimation_size_factors2_mut(&mut self) -> &mut f32
Size decimation factor (LOD level 2).
Sourcepub fn triangle_decimation_size_factors3_mut(&mut self) -> &mut f32
pub fn triangle_decimation_size_factors3_mut(&mut self) -> &mut f32
Size decimation factor (LOD level 3).
Sourcepub fn triangle_decimation_size_factors4_mut(&mut self) -> &mut f32
pub fn triangle_decimation_size_factors4_mut(&mut self) -> &mut f32
Size decimation factor (LOD level 4).
Sourcepub fn triangle_decimation_size_factors5_mut(&mut self) -> &mut f32
pub fn triangle_decimation_size_factors5_mut(&mut self) -> &mut f32
Size decimation factor (LOD level 5).
Sourcepub fn triangle_decimation_angle_factors0_mut(&mut self) -> &mut f32
pub fn triangle_decimation_angle_factors0_mut(&mut self) -> &mut f32
Angle decimation factor (LOD level 0).
Sourcepub fn triangle_decimation_angle_factors1_mut(&mut self) -> &mut f32
pub fn triangle_decimation_angle_factors1_mut(&mut self) -> &mut f32
Angle decimation factor (LOD level 1).
Sourcepub fn triangle_decimation_angle_factors2_mut(&mut self) -> &mut f32
pub fn triangle_decimation_angle_factors2_mut(&mut self) -> &mut f32
Angle decimation factor (LOD level 2).
Sourcepub fn triangle_decimation_angle_factors3_mut(&mut self) -> &mut f32
pub fn triangle_decimation_angle_factors3_mut(&mut self) -> &mut f32
Angle decimation factor (LOD level 3).
Sourcepub fn triangle_decimation_angle_factors4_mut(&mut self) -> &mut f32
pub fn triangle_decimation_angle_factors4_mut(&mut self) -> &mut f32
Angle decimation factor (LOD level 4).
Sourcepub fn triangle_decimation_angle_factors5_mut(&mut self) -> &mut f32
pub fn triangle_decimation_angle_factors5_mut(&mut self) -> &mut f32
Angle decimation factor (LOD level 5).
Source§impl ConversionParams
impl ConversionParams
Sourcepub fn set_serialise_version(&mut self, val: u16) -> &mut Self
pub fn set_serialise_version(&mut self, val: u16) -> &mut Self
Serialisation format version.
Sourcepub fn set_triangle_density(&mut self, val: i32) -> &mut Self
pub fn set_triangle_density(&mut self, val: i32) -> &mut Self
Target triangle density.
Sourcepub fn set_max_lf_heights_per_pixel(&mut self, val: i32) -> &mut Self
pub fn set_max_lf_heights_per_pixel(&mut self, val: i32) -> &mut Self
Maximum low-frequency heights per pixel.
Sourcepub fn set_triangle_decimation_size_factors0(&mut self, val: f32) -> &mut Self
pub fn set_triangle_decimation_size_factors0(&mut self, val: f32) -> &mut Self
Size decimation factor (LOD level 0).
Sourcepub fn set_triangle_decimation_size_factors1(&mut self, val: f32) -> &mut Self
pub fn set_triangle_decimation_size_factors1(&mut self, val: f32) -> &mut Self
Size decimation factor (LOD level 1).
Sourcepub fn set_triangle_decimation_size_factors2(&mut self, val: f32) -> &mut Self
pub fn set_triangle_decimation_size_factors2(&mut self, val: f32) -> &mut Self
Size decimation factor (LOD level 2).
Sourcepub fn set_triangle_decimation_size_factors3(&mut self, val: f32) -> &mut Self
pub fn set_triangle_decimation_size_factors3(&mut self, val: f32) -> &mut Self
Size decimation factor (LOD level 3).
Sourcepub fn set_triangle_decimation_size_factors4(&mut self, val: f32) -> &mut Self
pub fn set_triangle_decimation_size_factors4(&mut self, val: f32) -> &mut Self
Size decimation factor (LOD level 4).
Sourcepub fn set_triangle_decimation_size_factors5(&mut self, val: f32) -> &mut Self
pub fn set_triangle_decimation_size_factors5(&mut self, val: f32) -> &mut Self
Size decimation factor (LOD level 5).
Sourcepub fn set_triangle_decimation_angle_factors0(&mut self, val: f32) -> &mut Self
pub fn set_triangle_decimation_angle_factors0(&mut self, val: f32) -> &mut Self
Angle decimation factor (LOD level 0).
Sourcepub fn set_triangle_decimation_angle_factors1(&mut self, val: f32) -> &mut Self
pub fn set_triangle_decimation_angle_factors1(&mut self, val: f32) -> &mut Self
Angle decimation factor (LOD level 1).
Sourcepub fn set_triangle_decimation_angle_factors2(&mut self, val: f32) -> &mut Self
pub fn set_triangle_decimation_angle_factors2(&mut self, val: f32) -> &mut Self
Angle decimation factor (LOD level 2).
Sourcepub fn set_triangle_decimation_angle_factors3(&mut self, val: f32) -> &mut Self
pub fn set_triangle_decimation_angle_factors3(&mut self, val: f32) -> &mut Self
Angle decimation factor (LOD level 3).
Sourcepub fn set_triangle_decimation_angle_factors4(&mut self, val: f32) -> &mut Self
pub fn set_triangle_decimation_angle_factors4(&mut self, val: f32) -> &mut Self
Angle decimation factor (LOD level 4).
Sourcepub fn set_triangle_decimation_angle_factors5(&mut self, val: f32) -> &mut Self
pub fn set_triangle_decimation_angle_factors5(&mut self, val: f32) -> &mut Self
Angle decimation factor (LOD level 5).
Trait Implementations§
Source§impl Clone for ConversionParams
impl Clone for ConversionParams
Source§fn clone(&self) -> ConversionParams
fn clone(&self) -> ConversionParams
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 ConversionParams
impl Debug for ConversionParams
Source§impl Decodeable for ConversionParams
impl Decodeable for ConversionParams
Source§impl Default for ConversionParams
impl Default for ConversionParams
Source§fn default() -> ConversionParams
fn default() -> ConversionParams
Source§impl<'de> Deserialize<'de> for ConversionParams
impl<'de> Deserialize<'de> for ConversionParams
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 Encodeable for ConversionParams
impl Encodeable for ConversionParams
Source§fn encode<W: WriteBytes>(
&mut self,
buffer: &mut W,
extra_data: &Option<EncodeableExtraData<'_>>,
) -> Result<()>
fn encode<W: WriteBytes>( &mut self, buffer: &mut W, extra_data: &Option<EncodeableExtraData<'_>>, ) -> Result<()>
Source§impl PartialEq for ConversionParams
impl PartialEq for ConversionParams
Source§impl Serialize for ConversionParams
impl Serialize for ConversionParams
impl StructuralPartialEq for ConversionParams
Auto Trait Implementations§
impl Freeze for ConversionParams
impl RefUnwindSafe for ConversionParams
impl Send for ConversionParams
impl Sync for ConversionParams
impl Unpin for ConversionParams
impl UnsafeUnpin for ConversionParams
impl UnwindSafe for ConversionParams
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
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> 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§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.