pub struct PointCloudBatchBuilder<'a, 'ctx>(/* private fields */);Implementations§
Source§impl PointCloudBatchBuilder<'_, '_>
impl PointCloudBatchBuilder<'_, '_>
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
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>
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