Trait opencv::core::ArraysTrait [−][src]
pub trait ArraysTrait: ArraysTraitConst {
fn as_raw_mut_Arrays(&mut self) -> *mut c_void;
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<()> { ... }
}
Required methods
fn as_raw_mut_Arrays(&mut self) -> *mut c_void
Provided methods
fn 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.
fn reset_vertex_array(&mut self) -> Result<()>
fn reset_vertex_array(&mut self) -> Result<()>
Resets vertex coordinates.
fn 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.
fn reset_color_array(&mut self) -> Result<()>
fn reset_color_array(&mut self) -> Result<()>
Resets vertex colors.
fn 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.
fn reset_normal_array(&mut self) -> Result<()>
fn reset_normal_array(&mut self) -> Result<()>
Resets vertex normals.
fn 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.
fn reset_tex_coord_array(&mut self) -> Result<()>
fn reset_tex_coord_array(&mut self) -> Result<()>
Resets vertex texture coordinates.