Struct rerun::external::re_renderer::PointCloudBatchBuilder
source · 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>
sourcepub fn world_from_obj(
self,
world_from_obj: Affine3A
) -> PointCloudBatchBuilder<'a, 'ctx>
pub fn world_from_obj( self, world_from_obj: Affine3A ) -> PointCloudBatchBuilder<'a, 'ctx>
Sets the world_from_obj
matrix for the entire batch.
sourcepub fn outline_mask_ids(
self,
outline_mask_ids: OutlineMaskPreference
) -> PointCloudBatchBuilder<'a, 'ctx>
pub fn outline_mask_ids( self, outline_mask_ids: OutlineMaskPreference ) -> PointCloudBatchBuilder<'a, 'ctx>
Sets an outline mask for every element in the batch.
sourcepub fn depth_offset(self, depth_offset: i16) -> PointCloudBatchBuilder<'a, 'ctx>
pub fn depth_offset(self, depth_offset: i16) -> PointCloudBatchBuilder<'a, 'ctx>
Sets the depth offset for the entire batch.
sourcepub fn add_points(
self,
positions: &[Vec3],
radii: &[Size],
colors: &[Color32],
picking_ids: &[PickingLayerInstanceId]
) -> PointCloudBatchBuilder<'a, 'ctx>
pub fn add_points( self, positions: &[Vec3], radii: &[Size], colors: &[Color32], picking_ids: &[PickingLayerInstanceId] ) -> PointCloudBatchBuilder<'a, 'ctx>
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]
) -> PointCloudBatchBuilder<'a, 'ctx>
pub fn add_points_2d( self, positions: &[Vec3], radii: &[Size], colors: &[Color32], picking_ids: &[PickingLayerInstanceId] ) -> PointCloudBatchBuilder<'a, 'ctx>
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
) -> PointCloudBatchBuilder<'a, 'ctx>
pub fn flags( self, flags: PointCloudBatchFlags ) -> PointCloudBatchBuilder<'a, 'ctx>
Adds (!) flags for this batch.
sourcepub fn picking_object_id(
self,
picking_object_id: PickingLayerObjectId
) -> PointCloudBatchBuilder<'a, 'ctx>
pub fn picking_object_id( self, picking_object_id: PickingLayerObjectId ) -> PointCloudBatchBuilder<'a, 'ctx>
Sets the picking object id for the current batch.
sourcepub fn push_additional_outline_mask_ids_for_range(
self,
range: Range<u32>,
ids: OutlineMaskPreference
) -> PointCloudBatchBuilder<'a, 'ctx>
pub fn push_additional_outline_mask_ids_for_range( self, range: Range<u32>, ids: OutlineMaskPreference ) -> PointCloudBatchBuilder<'a, 'ctx>
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> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§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 moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request