[−][src]Struct opencv::viz::Viz3d
The Viz3d class represents a 3D visualizer window. This class is implicitly shared.
Implementations
impl Viz3d
[src]
pub fn as_raw_Viz3d(&self) -> *const c_void
[src]
pub fn as_raw_mut_Viz3d(&mut self) -> *mut c_void
[src]
impl Viz3d
[src]
pub fn new(window_name: &str) -> Result<Viz3d>
[src]
The constructors.
Parameters
- window_name: Name of the window.
C++ default parameters
- window_name: String()
pub fn copy(unnamed: &Viz3d) -> Result<Viz3d>
[src]
Trait Implementations
impl Boxed for Viz3d
[src]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for Viz3d
[src]
impl Send for Viz3d
[src]
impl Viz3dTrait for Viz3d
[src]
fn as_raw_Viz3d(&self) -> *const c_void
[src]
fn as_raw_mut_Viz3d(&mut self) -> *mut c_void
[src]
fn show_widget(
&mut self,
id: &str,
widget: &Widget,
pose: Affine3d
) -> Result<()>
[src]
&mut self,
id: &str,
widget: &Widget,
pose: Affine3d
) -> Result<()>
fn remove_widget(&mut self, id: &str) -> Result<()>
[src]
fn get_widget(&self, id: &str) -> Result<Widget>
[src]
fn remove_all_widgets(&mut self) -> Result<()>
[src]
fn show_image(
&mut self,
image: &dyn ToInputArray,
window_size: Size
) -> Result<()>
[src]
&mut self,
image: &dyn ToInputArray,
window_size: Size
) -> Result<()>
fn set_widget_pose(&mut self, id: &str, pose: Affine3d) -> Result<()>
[src]
fn update_widget_pose(&mut self, id: &str, pose: Affine3d) -> Result<()>
[src]
fn get_widget_pose(&self, id: &str) -> Result<Affine3d>
[src]
fn set_camera(&mut self, camera: &Camera) -> Result<()>
[src]
fn get_camera(&self) -> Result<Camera>
[src]
fn get_viewer_pose(&self) -> Result<Affine3d>
[src]
fn set_viewer_pose(&mut self, pose: Affine3d) -> Result<()>
[src]
fn reset_camera_viewpoint(&mut self, id: &str) -> Result<()>
[src]
fn reset_camera(&mut self) -> Result<()>
[src]
fn convert_to_window_coordinates(
&mut self,
pt: Point3d,
window_coord: &mut Point3d
) -> Result<()>
[src]
&mut self,
pt: Point3d,
window_coord: &mut Point3d
) -> Result<()>
fn conver_to3_d_ray(
&mut self,
window_coord: Point3d,
origin: &mut Point3d,
direction: &mut Vec3d
) -> Result<()>
[src]
&mut self,
window_coord: Point3d,
origin: &mut Point3d,
direction: &mut Vec3d
) -> Result<()>
fn get_window_size(&self) -> Result<Size>
[src]
fn set_window_size(&mut self, window_size: Size) -> Result<()>
[src]
fn get_window_name(&self) -> Result<String>
[src]
fn get_screenshot(&self) -> Result<Mat>
[src]
fn save_screenshot(&mut self, file: &str) -> Result<()>
[src]
fn set_window_position(&mut self, window_position: Point) -> Result<()>
[src]
fn set_full_screen(&mut self, mode: bool) -> Result<()>
[src]
fn set_background_color(
&mut self,
color: &Viz3d_Color,
color2: &Viz3d_Color
) -> Result<()>
[src]
&mut self,
color: &Viz3d_Color,
color2: &Viz3d_Color
) -> Result<()>
fn set_background_texture(&mut self, image: &dyn ToInputArray) -> Result<()>
[src]
fn set_background_mesh_lab(&mut self) -> Result<()>
[src]
fn spin(&mut self) -> Result<()>
[src]
fn spin_once(&mut self, time: i32, force_redraw: bool) -> Result<()>
[src]
fn set_off_screen_rendering(&mut self) -> Result<()>
[src]
fn remove_all_lights(&mut self) -> Result<()>
[src]
fn add_light(
&mut self,
position: Vec3d,
focal_point: Vec3d,
color: &Viz3d_Color,
diffuse_color: &Viz3d_Color,
ambient_color: &Viz3d_Color,
specular_color: &Viz3d_Color
) -> Result<()>
[src]
&mut self,
position: Vec3d,
focal_point: Vec3d,
color: &Viz3d_Color,
diffuse_color: &Viz3d_Color,
ambient_color: &Viz3d_Color,
specular_color: &Viz3d_Color
) -> Result<()>
fn was_stopped(&self) -> Result<bool>
[src]
fn close(&mut self) -> Result<()>
[src]
fn register_keyboard_callback(
&mut self,
callback: Viz3d_KeyboardCallback
) -> Result<()>
[src]
&mut self,
callback: Viz3d_KeyboardCallback
) -> Result<()>
fn register_mouse_callback(
&mut self,
callback: Viz3d_MouseCallback
) -> Result<()>
[src]
&mut self,
callback: Viz3d_MouseCallback
) -> Result<()>
fn set_rendering_property(
&mut self,
id: &str,
property: i32,
value: f64
) -> Result<()>
[src]
&mut self,
id: &str,
property: i32,
value: f64
) -> Result<()>
fn get_rendering_property(&mut self, id: &str, property: i32) -> Result<f64>
[src]
fn set_representation(&mut self, representation: i32) -> Result<()>
[src]
fn set_global_warnings(&mut self, enabled: bool) -> Result<()>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,