[−][src]Struct opencv::viz::WArrow
This 3D Widget defines an arrow.
Implementations
impl WArrow
[src]
pub fn as_raw_WArrow(&self) -> *const c_void
[src]
pub fn as_raw_mut_WArrow(&mut self) -> *mut c_void
[src]
impl WArrow
[src]
pub fn new(
pt1: Point3d,
pt2: Point3d,
thickness: f64,
color: &Color
) -> Result<WArrow>
[src]
pt1: Point3d,
pt2: Point3d,
thickness: f64,
color: &Color
) -> Result<WArrow>
Constructs an WArrow.
Parameters
- pt1: Start point of the arrow.
- pt2: End point of the arrow.
- thickness: Thickness of the arrow. Thickness of arrow head is also adjusted accordingly.
- color: Color of the arrow.
Arrow head is located at the end point of the arrow.
C++ default parameters
- thickness: 0.03
- color: Color::white()
Trait Implementations
impl Boxed for WArrow
[src]
pub unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
pub fn into_raw(self) -> *mut c_void
[src]
pub fn as_raw(&self) -> *const c_void
[src]
pub fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for WArrow
[src]
impl Send for WArrow
[src]
impl WArrowTrait for WArrow
[src]
pub fn as_raw_WArrow(&self) -> *const c_void
[src]
pub fn as_raw_mut_WArrow(&mut self) -> *mut c_void
[src]
impl Widget3DTrait for WArrow
[src]
pub fn as_raw_Widget3D(&self) -> *const c_void
[src]
pub fn as_raw_mut_Widget3D(&mut self) -> *mut c_void
[src]
pub fn set_pose(&mut self, pose: Affine3d) -> Result<()>
[src]
pub fn update_pose(&mut self, pose: Affine3d) -> Result<()>
[src]
pub fn get_pose(&self) -> Result<Affine3d>
[src]
pub fn apply_transform(&mut self, transform: Affine3d) -> Result<()>
[src]
pub fn set_color(&mut self, color: &Color) -> Result<()>
[src]
impl WidgetTrait for WArrow
[src]
pub fn as_raw_Widget(&self) -> *const c_void
[src]
pub fn as_raw_mut_Widget(&mut self) -> *mut c_void
[src]
pub fn set_rendering_property(
&mut self,
property: i32,
value: f64
) -> Result<()>
[src]
&mut self,
property: i32,
value: f64
) -> Result<()>
pub fn get_rendering_property(&self, property: i32) -> Result<f64>
[src]
Auto Trait Implementations
impl RefUnwindSafe for WArrow
[src]
impl !Sync for WArrow
[src]
impl Unpin for WArrow
[src]
impl UnwindSafe for WArrow
[src]
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>,