Trait opencv::core::ArraysTrait
source · pub trait ArraysTrait: ArraysTraitConst {
// Required method
fn as_raw_mut_Arrays(&mut self) -> *mut c_void;
// Provided methods
fn set_vertex_array(&mut self, vertex: &dyn ToInputArray) -> Result<()> { ... }
fn reset_vertex_array(&mut self) -> Result<()> { ... }
fn set_color_array(&mut self, color: &dyn ToInputArray) -> Result<()> { ... }
fn reset_color_array(&mut self) -> Result<()> { ... }
fn set_normal_array(&mut self, normal: &dyn ToInputArray) -> Result<()> { ... }
fn reset_normal_array(&mut self) -> Result<()> { ... }
fn set_tex_coord_array(
&mut self,
tex_coord: &dyn ToInputArray
) -> Result<()> { ... }
fn reset_tex_coord_array(&mut self) -> Result<()> { ... }
fn release(&mut self) -> Result<()> { ... }
fn set_auto_release(&mut self, flag: bool) -> Result<()> { ... }
}
Expand description
Mutable methods for core::Arrays
Required Methods§
fn as_raw_mut_Arrays(&mut self) -> *mut c_void
Provided Methods§
sourcefn set_vertex_array(&mut self, vertex: &dyn ToInputArray) -> Result<()>
fn set_vertex_array(&mut self, vertex: &dyn ToInputArray) -> Result<()>
Sets an array of vertex coordinates.
Parameters
- vertex: array with vertex coordinates, can be both host and device memory.
sourcefn reset_vertex_array(&mut self) -> Result<()>
fn reset_vertex_array(&mut self) -> Result<()>
Resets vertex coordinates.
sourcefn set_color_array(&mut self, color: &dyn ToInputArray) -> Result<()>
fn set_color_array(&mut self, color: &dyn ToInputArray) -> Result<()>
Sets an array of vertex colors.
Parameters
- color: array with vertex colors, can be both host and device memory.
sourcefn reset_color_array(&mut self) -> Result<()>
fn reset_color_array(&mut self) -> Result<()>
Resets vertex colors.
sourcefn set_normal_array(&mut self, normal: &dyn ToInputArray) -> Result<()>
fn set_normal_array(&mut self, normal: &dyn ToInputArray) -> Result<()>
Sets an array of vertex normals.
Parameters
- normal: array with vertex normals, can be both host and device memory.
sourcefn reset_normal_array(&mut self) -> Result<()>
fn reset_normal_array(&mut self) -> Result<()>
Resets vertex normals.
sourcefn set_tex_coord_array(&mut self, tex_coord: &dyn ToInputArray) -> Result<()>
fn set_tex_coord_array(&mut self, tex_coord: &dyn ToInputArray) -> Result<()>
Sets an array of vertex texture coordinates.
Parameters
- texCoord: array with vertex texture coordinates, can be both host and device memory.
sourcefn reset_tex_coord_array(&mut self) -> Result<()>
fn reset_tex_coord_array(&mut self) -> Result<()>
Resets vertex texture coordinates.