[][src]Struct opencv::viz::WCylinder

pub struct WCylinder { /* fields omitted */ }

This 3D Widget defines a cylinder. :

Methods

impl WCylinder[src]

pub fn as_raw_WCylinder(&self) -> *mut c_void[src]

pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self[src]

impl WCylinder[src]

pub fn new(
    axis_point1: Point3d,
    axis_point2: Point3d,
    radius: f64,
    numsides: i32,
    color: &Color
) -> Result<WCylinder>
[src]

Constructs a WCylinder.

Parameters

  • axis_point1: A point1 on the axis of the cylinder.
  • axis_point2: A point2 on the axis of the cylinder.
  • radius: Radius of the cylinder.
  • numsides: Resolution of the cylinder.
  • color: Color of the cylinder.

C++ default parameters

  • numsides: 30
  • color: Color::white()

Trait Implementations

impl Drop for WCylinder[src]

impl Send for WCylinder[src]

impl Widget3DTrait for WCylinder[src]

impl WidgetTrait for WCylinder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.