Struct opencv::gapi::Poly

source ·
pub struct Poly { /* private fields */ }
Expand description

This structure represents a polygon to draw.

Implementations§

source§

impl Poly

source

pub fn new( points_: &Vector<Point>, color_: Scalar, thick_: i32, lt_: i32, shift_: i32 ) -> Result<Poly>

Mosaic constructor

Parameters
  • points_: Points to connect
  • color_: The line color
  • thick_: The thickness of line
  • lt_: The Type of the line. See #LineTypes
  • shift_: The number of fractional bits in the point coordinate
C++ default parameters
  • thick_: 1
  • lt_: 8
  • shift_: 0
source

pub fn default() -> Poly

Trait Implementations§

source§

impl Boxed for Poly

source§

unsafe fn from_raw(ptr: *mut c_void) -> Self

Wrap the specified raw pointer Read more
source§

fn into_raw(self) -> *mut c_void

Return an the underlying raw pointer while consuming this wrapper. Read more
source§

fn as_raw(&self) -> *const c_void

Return the underlying raw pointer. Read more
source§

fn as_raw_mut(&mut self) -> *mut c_void

Return the underlying mutable raw pointer Read more
source§

impl Default for Poly

source§

fn default() -> Self

Forwards to infallible Self::default()

source§

impl Drop for Poly

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl PolyTrait for Poly

source§

fn as_raw_mut_Poly(&mut self) -> *mut c_void

source§

fn set_points(&mut self, val: Vector<Point>)

Points to connect
source§

fn set_color(&mut self, val: Scalar)

The line color
source§

fn set_thick(&mut self, val: i32)

The thickness of line
source§

fn set_lt(&mut self, val: i32)

The Type of the line. See #LineTypes
source§

fn set_shift(&mut self, val: i32)

The number of fractional bits in the point coordinate
source§

impl PolyTraitConst for Poly

source§

fn as_raw_Poly(&self) -> *const c_void

source§

fn points(&self) -> Vector<Point>

Points to connect
source§

fn color(&self) -> Scalar

The line color
source§

fn thick(&self) -> i32

The thickness of line
source§

fn lt(&self) -> i32

The Type of the line. See #LineTypes
source§

fn shift(&self) -> i32

The number of fractional bits in the point coordinate
source§

impl Send for Poly

Auto Trait Implementations§

§

impl RefUnwindSafe for Poly

§

impl !Sync for Poly

§

impl Unpin for Poly

§

impl UnwindSafe for Poly

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.