[−][src]Struct opencv::viz::WPlane
This 3D Widget defines a finite plane.
Methods
impl WPlane
[src]
pub fn as_raw_WPlane(&self) -> *mut c_void
[src]
pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self
[src]
impl WPlane
[src]
pub fn new(size: Size2d, color: &Color) -> Result<WPlane>
[src]
Constructs a default plane with center point at origin and normal oriented along z-axis.
Parameters
- size: Size of the plane
- color: Color of the plane.
C++ default parameters
- size: Size2d(1.0, 1.0)
- color: Color::white()
pub fn new_1(
center: Point3d,
normal: Vec3d,
new_yaxis: Vec3d,
size: Size2d,
color: &Color
) -> Result<WPlane>
[src]
center: Point3d,
normal: Vec3d,
new_yaxis: Vec3d,
size: Size2d,
color: &Color
) -> Result<WPlane>
Constructs a repositioned plane
Parameters
- center: Center of the plane
- normal: Plane normal orientation
- new_yaxis: Up-vector. New orientation of plane y-axis.
- size:
- color: Color of the plane.
C++ default parameters
- size: Size2d(1.0, 1.0)
- color: Color::white()
Trait Implementations
impl Drop for WPlane
[src]
impl Send for WPlane
[src]
impl Widget3DTrait for WPlane
[src]
fn as_raw_Widget3D(&self) -> *mut c_void
[src]
fn set_color(&mut self, color: &Color) -> Result<()>
[src]
impl WidgetTrait for WPlane
[src]
fn as_raw_Widget(&self) -> *mut c_void
[src]
fn set_rendering_property(&mut self, property: i32, value: f64) -> Result<()>
[src]
fn get_rendering_property(&self, property: i32) -> Result<f64>
[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,
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.
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>,