pub struct PointCloudPlot {
pub positions: Vec<Vec3>,
pub values: Option<Vec<f64>>,
pub colors: Option<Vec<Vec4>>,
pub sizes: Option<Vec<f32>>,
pub default_color: Vec4,
pub default_size: f32,
pub colormap: ColorMap,
pub point_style: PointStyle,
pub size_mode: SizeMode,
pub label: Option<String>,
pub visible: bool,
/* private fields */
}Expand description
Point cloud plot for 3D scatter data
Fields§
§positions: Vec<Vec3>Point positions
values: Option<Vec<f64>>Per-point data
colors: Option<Vec<Vec4>>§sizes: Option<Vec<f32>>§default_color: Vec4Global styling
default_size: f32§colormap: ColorMap§point_style: PointStylePoint rendering
size_mode: SizeMode§label: Option<String>Metadata
visible: boolImplementations§
Source§impl PointCloudPlot
impl PointCloudPlot
Sourcepub fn with_values(self, values: Vec<f64>) -> Result<Self, String>
pub fn with_values(self, values: Vec<f64>) -> Result<Self, String>
Create point cloud with values for color mapping
Sourcepub fn with_colors(self, colors: Vec<Vec4>) -> Result<Self, String>
pub fn with_colors(self, colors: Vec<Vec4>) -> Result<Self, String>
Create point cloud with explicit colors
Sourcepub fn with_sizes(self, sizes: Vec<f32>) -> Result<Self, String>
pub fn with_sizes(self, sizes: Vec<f32>) -> Result<Self, String>
Create point cloud with variable sizes
Sourcepub fn with_default_color(self, color: Vec4) -> Self
pub fn with_default_color(self, color: Vec4) -> Self
Set default color for all points
Sourcepub fn with_default_size(self, size: f32) -> Self
pub fn with_default_size(self, size: f32) -> Self
Set default size for all points
Sourcepub fn with_colormap(self, colormap: ColorMap) -> Self
pub fn with_colormap(self, colormap: ColorMap) -> Self
Set colormap for value-based coloring
Sourcepub fn with_point_style(self, style: PointStyle) -> Self
pub fn with_point_style(self, style: PointStyle) -> Self
Set point rendering style
Sourcepub fn with_size_mode(self, mode: SizeMode) -> Self
pub fn with_size_mode(self, mode: SizeMode) -> Self
Set size mode
Sourcepub fn with_label<S: Into<String>>(self, label: S) -> Self
pub fn with_label<S: Into<String>>(self, label: S) -> Self
Set plot label for legends
Sourcepub fn generate_vertices(&mut self) -> &Vec<Vertex>
pub fn generate_vertices(&mut self) -> &Vec<Vertex>
Generate vertices for GPU rendering
Sourcepub fn bounds(&mut self) -> BoundingBox
pub fn bounds(&mut self) -> BoundingBox
Get the bounding box of the point cloud
Sourcepub fn render_data(&mut self) -> RenderData
pub fn render_data(&mut self) -> RenderData
Generate complete render data for the graphics pipeline
Sourcepub fn statistics(&self) -> PointCloudStatistics
pub fn statistics(&self) -> PointCloudStatistics
Get plot statistics for debugging
Sourcepub fn estimated_memory_usage(&self) -> usize
pub fn estimated_memory_usage(&self) -> usize
Estimate memory usage in bytes
Trait Implementations§
Source§impl Clone for PointCloudPlot
impl Clone for PointCloudPlot
Source§fn clone(&self) -> PointCloudPlot
fn clone(&self) -> PointCloudPlot
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 moreAuto Trait Implementations§
impl Freeze for PointCloudPlot
impl RefUnwindSafe for PointCloudPlot
impl Send for PointCloudPlot
impl Sync for PointCloudPlot
impl Unpin for PointCloudPlot
impl UnwindSafe for PointCloudPlot
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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