Struct re_renderer::PointCloudBatchBuilder
source · pub struct PointCloudBatchBuilder<'a>(_);Implementations§
source§impl<'a> PointCloudBatchBuilder<'a>
impl<'a> PointCloudBatchBuilder<'a>
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,
num_points: usize,
positions: impl Iterator<Item = Vec3>,
radii: impl Iterator<Item = Size>,
colors: impl Iterator<Item = Color32>,
picking_instance_ids: impl Iterator<Item = PickingLayerInstanceId>
) -> Self
pub fn add_points( self, num_points: usize, positions: impl Iterator<Item = Vec3>, radii: impl Iterator<Item = Size>, colors: impl Iterator<Item = Color32>, picking_instance_ids: impl Iterator<Item = 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 always add num_points, no matter how many elements are in the iterators.
Missing elements will be filled up with defaults (in case of positions that’s the origin)
TODO(#957): Clamps number of points to the allowed per-builder maximum.
sourcepub fn add_points_2d(
self,
num_points: usize,
positions: impl Iterator<Item = Vec2>,
radii: impl Iterator<Item = Size>,
colors: impl Iterator<Item = Color32>,
picking_instance_ids: impl Iterator<Item = PickingLayerInstanceId>
) -> Self
pub fn add_points_2d( self, num_points: usize, positions: impl Iterator<Item = Vec2>, radii: impl Iterator<Item = Size>, colors: impl Iterator<Item = Color32>, picking_instance_ids: impl Iterator<Item = PickingLayerInstanceId> ) -> Self
Adds several 2D points. Uses an autogenerated depth value, the same for all points passed.
Will always add num_points, no matter how many elements are in the iterators.
Missing elements will be filled up with defaults (in case of positions that’s the origin)
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!