pub trait WCloudCollectionTrait: WCloudCollectionTraitConst + Widget3DTrait {
// Required method
fn as_raw_mut_WCloudCollection(&mut self) -> *mut c_void;
// Provided methods
fn add_cloud(
&mut self,
cloud: &impl ToInputArray,
colors: &impl ToInputArray,
pose: Affine3d,
) -> Result<()> { ... }
fn add_cloud_def(
&mut self,
cloud: &impl ToInputArray,
colors: &impl ToInputArray,
) -> Result<()> { ... }
fn add_cloud_1(
&mut self,
cloud: &impl ToInputArray,
color: &impl ColorTraitConst,
pose: Affine3d,
) -> Result<()> { ... }
fn add_cloud_def_1(&mut self, cloud: &impl ToInputArray) -> Result<()> { ... }
fn finalize(&mut self) -> Result<()> { ... }
}
Expand description
Mutable methods for crate::viz::WCloudCollection
Required Methods§
fn as_raw_mut_WCloudCollection(&mut self) -> *mut c_void
Provided Methods§
Sourcefn add_cloud(
&mut self,
cloud: &impl ToInputArray,
colors: &impl ToInputArray,
pose: Affine3d,
) -> Result<()>
fn add_cloud( &mut self, cloud: &impl ToInputArray, colors: &impl ToInputArray, pose: Affine3d, ) -> Result<()>
Adds a cloud to the collection.
§Parameters
- cloud: Point set which can be of type: CV_32FC3, CV_32FC4, CV_64FC3, CV_64FC4.
- colors: Set of colors. It has to be of the same size with cloud.
- pose: Pose of the cloud. Points in the cloud belong to mask when they are set to (NaN, NaN, NaN).
§C++ default parameters
- pose: Affine3d::Identity()
Sourcefn add_cloud_def(
&mut self,
cloud: &impl ToInputArray,
colors: &impl ToInputArray,
) -> Result<()>
fn add_cloud_def( &mut self, cloud: &impl ToInputArray, colors: &impl ToInputArray, ) -> Result<()>
Adds a cloud to the collection.
§Parameters
- cloud: Point set which can be of type: CV_32FC3, CV_32FC4, CV_64FC3, CV_64FC4.
- colors: Set of colors. It has to be of the same size with cloud.
- pose: Pose of the cloud. Points in the cloud belong to mask when they are set to (NaN, NaN, NaN).
§Note
This alternative version of WCloudCollectionTrait::add_cloud function uses the following default values for its arguments:
- pose: Affine3d::Identity()
Sourcefn add_cloud_1(
&mut self,
cloud: &impl ToInputArray,
color: &impl ColorTraitConst,
pose: Affine3d,
) -> Result<()>
fn add_cloud_1( &mut self, cloud: &impl ToInputArray, color: &impl ColorTraitConst, pose: Affine3d, ) -> Result<()>
Adds a cloud to the collection.
§Parameters
- cloud: Point set which can be of type: CV_32FC3, CV_32FC4, CV_64FC3, CV_64FC4.
- color: A single Color for the whole cloud.
- pose: Pose of the cloud. Points in the cloud belong to mask when they are set to (NaN, NaN, NaN).
§C++ default parameters
- color: Color::white()
- pose: Affine3d::Identity()
Sourcefn add_cloud_def_1(&mut self, cloud: &impl ToInputArray) -> Result<()>
fn add_cloud_def_1(&mut self, cloud: &impl ToInputArray) -> Result<()>
Adds a cloud to the collection.
§Parameters
- cloud: Point set which can be of type: CV_32FC3, CV_32FC4, CV_64FC3, CV_64FC4.
- color: A single Color for the whole cloud.
- pose: Pose of the cloud. Points in the cloud belong to mask when they are set to (NaN, NaN, NaN).
§Note
This alternative version of WCloudCollectionTrait::add_cloud function uses the following default values for its arguments:
- color: Color::white()
- pose: Affine3d::Identity()
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.