opencv::ovis

Struct WindowScene

source
pub struct WindowScene { /* private fields */ }
Expand description

A 3D viewport and the associated scene

Trait Implementations§

source§

impl Boxed for WindowScene

source§

unsafe fn from_raw( ptr: <WindowScene as OpenCVFromExtern>::ExternReceive, ) -> Self

Wrap the specified raw pointer Read more
source§

fn into_raw(self) -> <WindowScene as OpenCVTypeExternContainer>::ExternSendMut

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

fn as_raw(&self) -> <WindowScene as OpenCVTypeExternContainer>::ExternSend

Return the underlying raw pointer. Read more
source§

fn as_raw_mut( &mut self, ) -> <WindowScene as OpenCVTypeExternContainer>::ExternSendMut

Return the underlying mutable raw pointer Read more
source§

impl Debug for WindowScene

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Drop for WindowScene

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl WindowSceneTrait for WindowScene

source§

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

source§

fn set_background(&mut self, image: &impl ToInputArray) -> Result<()>

set window background to custom image/ color Read more
source§

fn set_background_color(&mut self, color: Scalar) -> Result<()>

set window background to custom image/ color Read more
source§

fn set_compositors(&mut self, names: &Vector<String>) -> Result<()>

enable an ordered chain of full-screen post processing effects Read more
source§

fn create_entity( &mut self, name: &str, meshname: &str, tvec: &impl ToInputArray, rot: &impl ToInputArray, ) -> Result<()>

place an entity of a mesh in the scene Read more
source§

fn create_entity_def(&mut self, name: &str, meshname: &str) -> Result<()>

place an entity of a mesh in the scene Read more
source§

fn remove_entity(&mut self, name: &str) -> Result<()>

remove an entity from the scene Read more
source§

fn set_entity_property( &mut self, name: &str, prop: i32, value: &str, sub_entity_idx: i32, ) -> Result<()>

set the property of an entity to the given value Read more
source§

fn set_entity_property_def( &mut self, name: &str, prop: i32, value: &str, ) -> Result<()>

set the property of an entity to the given value Read more
source§

fn set_entity_property_1( &mut self, name: &str, prop: i32, value: Scalar, ) -> Result<()>

set the property of an entity to the given value Read more
source§

fn get_entity_property( &mut self, name: &str, prop: i32, value: &mut impl ToOutputArray, ) -> Result<()>

get the property of an entity Read more
source§

fn create_camera_entity( &mut self, name: &str, k: &impl ToInputArray, imsize: Size, z_far: f32, tvec: &impl ToInputArray, rot: &impl ToInputArray, color: Scalar, ) -> Result<Rect2d>

convenience method to visualize a camera position Read more
source§

fn create_camera_entity_def( &mut self, name: &str, k: &impl ToInputArray, imsize: Size, z_far: f32, ) -> Result<Rect2d>

convenience method to visualize a camera position Read more
source§

fn create_light_entity( &mut self, name: &str, tvec: &impl ToInputArray, rot: &impl ToInputArray, diffuse_color: Scalar, specular_color: Scalar, ) -> Result<()>

creates a point light in the scene Read more
source§

fn create_light_entity_def(&mut self, name: &str) -> Result<()>

creates a point light in the scene Read more
source§

fn update_entity_pose( &mut self, name: &str, tvec: &impl ToInputArray, rot: &impl ToInputArray, ) -> Result<()>

update entity pose by transformation in the parent coordinate space. (pre-rotation) Read more
source§

fn update_entity_pose_def(&mut self, name: &str) -> Result<()>

update entity pose by transformation in the parent coordinate space. (pre-rotation) Read more
source§

fn set_entity_pose( &mut self, name: &str, tvec: &impl ToInputArray, rot: &impl ToInputArray, invert: bool, ) -> Result<()>

set entity pose in the world coordinate space. Read more
source§

fn set_entity_pose_def(&mut self, name: &str) -> Result<()>

set entity pose in the world coordinate space. Read more
source§

fn get_entity_pose( &mut self, name: &str, r: &mut impl ToOutputArray, tvec: &mut impl ToOutputArray, invert: bool, ) -> Result<()>

Retrieves the current pose of an entity Read more
source§

fn get_entity_pose_def(&mut self, name: &str) -> Result<()>

Retrieves the current pose of an entity Read more
source§

fn get_entity_animations( &mut self, name: &str, out: &mut Vector<String>, ) -> Result<()>

get a list of available entity animations Read more
source§

fn play_entity_animation( &mut self, name: &str, animname: &str, loop_: bool, ) -> Result<()>

play entity animation Read more
source§

fn play_entity_animation_def( &mut self, name: &str, animname: &str, ) -> Result<()>

play entity animation Read more
source§

fn stop_entity_animation(&mut self, name: &str, animname: &str) -> Result<()>

stop entity animation Read more
source§

fn get_screenshot(&mut self, frame: &mut impl ToOutputArray) -> Result<()>

read back the image generated by the last call to [waitKey]
source§

fn get_compositor_texture( &mut self, compname: &str, texname: &str, out: &mut impl ToOutputArray, mrt_index: i32, ) -> Result<()>

read back the texture of an active compositor Read more
source§

fn get_compositor_texture_def( &mut self, compname: &str, texname: &str, out: &mut impl ToOutputArray, ) -> Result<()>

read back the texture of an active compositor Read more
source§

fn get_depth(&mut self, depth: &mut impl ToOutputArray) -> Result<()>

get the depth for the current frame. Read more
source§

fn fix_camera_yaw_axis( &mut self, use_fixed: bool, up: &impl ToInputArray, ) -> Result<()>

convenience method to force the “up” axis to stay fixed Read more
source§

fn fix_camera_yaw_axis_def(&mut self, use_fixed: bool) -> Result<()>

convenience method to force the “up” axis to stay fixed Read more
source§

fn set_camera_pose( &mut self, tvec: &impl ToInputArray, rot: &impl ToInputArray, invert: bool, ) -> Result<()>

Sets the current camera pose Read more
source§

fn set_camera_pose_def(&mut self) -> Result<()>

Sets the current camera pose Read more
source§

fn set_camera_look_at( &mut self, target: &str, offset: &impl ToInputArray, ) -> Result<()>

convenience method to orient the camera to a specific entity Read more
source§

fn set_camera_look_at_def(&mut self, target: &str) -> Result<()>

convenience method to orient the camera to a specific entity Read more
source§

fn set_entity_look_at( &mut self, origin: &str, target: &str, offset: &impl ToInputArray, ) -> Result<()>

convenience method to orient an entity to a specific entity. If target is an empty string the entity looks at the given offset point Read more
source§

fn set_entity_look_at_def(&mut self, origin: &str, target: &str) -> Result<()>

convenience method to orient an entity to a specific entity. If target is an empty string the entity looks at the given offset point Read more
source§

fn get_camera_pose( &mut self, r: &mut impl ToOutputArray, tvec: &mut impl ToOutputArray, invert: bool, ) -> Result<()>

Retrieves the current camera pose Read more
source§

fn get_camera_pose_def(&mut self) -> Result<()>

Retrieves the current camera pose Read more
source§

fn set_camera_intrinsics( &mut self, k: &impl ToInputArray, imsize: Size, z_near: f32, z_far: f32, ) -> Result<()>

set intrinsics of the camera Read more
source§

fn set_camera_intrinsics_def( &mut self, k: &impl ToInputArray, imsize: Size, ) -> Result<()>

set intrinsics of the camera Read more
source§

fn update(&mut self) -> Result<()>

render this window, but do not swap buffers. Automatically called by [ovis::waitKey]
source§

impl WindowSceneTraitConst for WindowScene

source§

impl Send for WindowScene

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

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<Mat> ModifyInplace for Mat
where Mat: Boxed,

source§

unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res, ) -> Res

Helper function to call OpenCV functions that allow in-place modification of a Mat or another similar object. By passing a mutable reference to the Mat to this function your closure will get called with the read reference and a write references to the same Mat. This is unsafe in a general case as it leads to having non-exclusive mutable access to the internal data, but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place modification is imgproc::threshold. Read more
source§

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

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

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

source§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.