pub struct MeshVertexParameterizationQuantity { /* private fields */ }Expand description
A vertex parameterization (UV) quantity on a surface mesh.
Implementations§
Source§impl MeshVertexParameterizationQuantity
impl MeshVertexParameterizationQuantity
Sourcepub fn new(
name: impl Into<String>,
structure_name: impl Into<String>,
coords: Vec<Vec2>,
) -> Self
pub fn new( name: impl Into<String>, structure_name: impl Into<String>, coords: Vec<Vec2>, ) -> Self
Creates a new vertex parameterization quantity.
Sourcepub fn style(&self) -> ParamVizStyle
pub fn style(&self) -> ParamVizStyle
Gets the visualization style.
Sourcepub fn set_style(&mut self, style: ParamVizStyle) -> &mut Self
pub fn set_style(&mut self, style: ParamVizStyle) -> &mut Self
Sets the visualization style.
Sourcepub fn coords_type(&self) -> ParamCoordsType
pub fn coords_type(&self) -> ParamCoordsType
Gets the coordinate type.
Sourcepub fn set_coords_type(&mut self, ct: ParamCoordsType) -> &mut Self
pub fn set_coords_type(&mut self, ct: ParamCoordsType) -> &mut Self
Sets the coordinate type.
Sourcepub fn checker_size(&self) -> f32
pub fn checker_size(&self) -> f32
Gets the checker size.
Sourcepub fn set_checker_size(&mut self, size: f32) -> &mut Self
pub fn set_checker_size(&mut self, size: f32) -> &mut Self
Sets the checker size.
Sourcepub fn checker_colors(&self) -> [Vec3; 2]
pub fn checker_colors(&self) -> [Vec3; 2]
Gets the checker colors.
Sourcepub fn set_checker_colors(&mut self, colors: [Vec3; 2]) -> &mut Self
pub fn set_checker_colors(&mut self, colors: [Vec3; 2]) -> &mut Self
Sets the checker colors.
Sourcepub fn compute_colors(&self) -> Vec<Vec4>
pub fn compute_colors(&self) -> Vec<Vec4>
Compute per-vertex colors based on the current visualization style.
Sourcepub fn build_egui_ui(&mut self, ui: &mut Ui) -> bool
pub fn build_egui_ui(&mut self, ui: &mut Ui) -> bool
Builds the egui UI for this quantity.
Trait Implementations§
Source§impl Quantity for MeshVertexParameterizationQuantity
impl Quantity for MeshVertexParameterizationQuantity
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Returns a mutable reference to self as
Any for downcasting.Source§fn structure_name(&self) -> &str
fn structure_name(&self) -> &str
Returns the name of the parent structure.
Source§fn kind(&self) -> QuantityKind
fn kind(&self) -> QuantityKind
Returns the kind of this quantity.
Source§fn is_enabled(&self) -> bool
fn is_enabled(&self) -> bool
Returns whether this quantity is currently enabled/visible.
Source§fn set_enabled(&mut self, enabled: bool)
fn set_enabled(&mut self, enabled: bool)
Sets the enabled state of this quantity.
Source§fn clear_gpu_resources(&mut self)
fn clear_gpu_resources(&mut self)
Clears GPU render resources so they can be re-initialized with a new device.
impl VertexQuantity for MeshVertexParameterizationQuantity
Auto Trait Implementations§
impl Freeze for MeshVertexParameterizationQuantity
impl RefUnwindSafe for MeshVertexParameterizationQuantity
impl Send for MeshVertexParameterizationQuantity
impl Sync for MeshVertexParameterizationQuantity
impl Unpin for MeshVertexParameterizationQuantity
impl UnsafeUnpin for MeshVertexParameterizationQuantity
impl UnwindSafe for MeshVertexParameterizationQuantity
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
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>
Converts
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>
Converts
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