pub struct PointCloudBatchBuilder<'a, 'ctx>(&'a mut PointCloudBuilder<'ctx>);
Tuple Fields§
§0: &'a mut PointCloudBuilder<'ctx>
Implementations§
source§impl<'a, 'ctx> PointCloudBatchBuilder<'a, 'ctx>
impl<'a, 'ctx> PointCloudBatchBuilder<'a, 'ctx>
fn batch_mut(&mut self) -> &mut PointCloudBatchInfo
sourcepub fn world_from_obj(self, world_from_obj: Affine3A) -> Self
pub fn world_from_obj(self, world_from_obj: Affine3A) -> Self
Sets the world_from_obj
matrix for the entire batch.
sourcepub fn outline_mask_ids(self, outline_mask_ids: OutlineMaskPreference) -> Self
pub fn outline_mask_ids(self, outline_mask_ids: OutlineMaskPreference) -> Self
Sets an outline mask for every element in the batch.
sourcepub fn depth_offset(self, depth_offset: DepthOffset) -> Self
pub fn depth_offset(self, depth_offset: DepthOffset) -> Self
Sets the depth offset for the entire batch.
sourcepub fn add_points(
self,
positions: &[Vec3],
radii: &[Size],
colors: &[Color32],
picking_ids: &[PickingLayerInstanceId]
) -> Self
pub fn add_points( self, positions: &[Vec3], radii: &[Size], colors: &[Color32], picking_ids: &[PickingLayerInstanceId] ) -> Self
Add several 3D points
Returns a PointBuilder
which can be used to set the colors, radii, and user-data for the points.
Will add all positions.
Missing radii will default to Size::AUTO
.
Missing colors will default to white.
sourcepub fn add_points_2d(
self,
positions: &[Vec3],
radii: &[Size],
colors: &[Color32],
picking_ids: &[PickingLayerInstanceId]
) -> Self
pub fn add_points_2d( self, positions: &[Vec3], radii: &[Size], colors: &[Color32], picking_ids: &[PickingLayerInstanceId] ) -> Self
Adds several 2D points (assumes Z=0). Uses an autogenerated depth value, the same for all points passed.
Will add all positions.
Missing radii will default to Size::AUTO
.
Missing colors will default to white.
sourcepub fn flags(self, flags: PointCloudBatchFlags) -> Self
pub fn flags(self, flags: PointCloudBatchFlags) -> Self
Adds (!) flags for this batch.
sourcepub fn picking_object_id(self, picking_object_id: PickingLayerObjectId) -> Self
pub fn picking_object_id(self, picking_object_id: PickingLayerObjectId) -> Self
Sets the picking object id for the current batch.
sourcepub fn push_additional_outline_mask_ids_for_range(
self,
range: Range<u32>,
ids: OutlineMaskPreference
) -> Self
pub fn push_additional_outline_mask_ids_for_range( self, range: Range<u32>, ids: OutlineMaskPreference ) -> Self
Pushes additional outline mask ids for a specific range of points. The range is relative to this batch.
Prefer the overall_outline_mask_ids
setting to set the outline mask ids for the entire batch whenever possible!
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'ctx> Freeze for PointCloudBatchBuilder<'a, 'ctx>
impl<'a, 'ctx> !RefUnwindSafe for PointCloudBatchBuilder<'a, 'ctx>
impl<'a, 'ctx> Send for PointCloudBatchBuilder<'a, 'ctx>
impl<'a, 'ctx> Sync for PointCloudBatchBuilder<'a, 'ctx>
impl<'a, 'ctx> Unpin for PointCloudBatchBuilder<'a, 'ctx>
impl<'a, 'ctx> !UnwindSafe for PointCloudBatchBuilder<'a, 'ctx>
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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