#include <opencv2/ovis.hpp>
Public Member Functions | |
virtual | ~WindowScene () |
virtual Rect2d | createCameraEntity (const String &name, InputArray K, const Size &imsize, float zFar, InputArray tvec=noArray(), InputArray rot=noArray(), const Scalar &color=Scalar::all(1))=0 |
virtual void | createEntity (const String &name, const String &meshname, InputArray tvec=noArray(), InputArray rot=noArray())=0 |
virtual void | createLightEntity (const String &name, InputArray tvec=noArray(), InputArray rot=noArray(), const Scalar &diffuseColor=Scalar::all(1), const Scalar &specularColor=Scalar::all(1))=0 |
virtual void | fixCameraYawAxis (bool useFixed, InputArray up=noArray())=0 |
virtual void | getCameraPose (OutputArray R=noArray(), OutputArray tvec=noArray(), bool invert=false)=0 |
virtual void | getCompositorTexture (const String &compname, const String &texname, OutputArray out, int mrtIndex=0)=0 |
virtual void | getDepth (OutputArray depth)=0 |
virtual void | getEntityAnimations (const String &name, std::vector< String > &out)=0 |
virtual void | getEntityPose (const String &name, OutputArray R=noArray(), OutputArray tvec=noArray(), bool invert=false)=0 |
virtual void | getEntityProperty (const String &name, int prop, OutputArray value)=0 |
virtual void | getScreenshot (OutputArray frame)=0 |
virtual void | playEntityAnimation (const String &name, const String &animname, bool loop=true)=0 |
virtual void | removeEntity (const String &name)=0 |
virtual void | setBackground (const Scalar &color)=0 |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
virtual void | setBackground (InputArray image)=0 |
virtual void | setCameraIntrinsics (InputArray K, const Size &imsize, float zNear=-1, float zFar=-1)=0 |
virtual void | setCameraLookAt (const String &target, InputArray offset=noArray())=0 |
virtual void | setCameraPose (InputArray tvec=noArray(), InputArray rot=noArray(), bool invert=false)=0 |
virtual void | setCompositors (const std::vector< String > &names)=0 |
virtual void | setEntityLookAt (const String &origin, const String &target, InputArray offset=noArray())=0 |
virtual void | setEntityPose (const String &name, InputArray tvec=noArray(), InputArray rot=noArray(), bool invert=false)=0 |
virtual void | setEntityProperty (const String &name, int prop, const Scalar &value)=0 |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
virtual void | setEntityProperty (const String &name, int prop, const String &value, int subEntityIdx=-1)=0 |
virtual void | stopEntityAnimation (const String &name, const String &animname)=0 |
virtual void | update ()=0 |
virtual void | updateEntityPose (const String &name, InputArray tvec=noArray(), InputArray rot=noArray())=0 |
Detailed Description
A 3D viewport and the associated scene
Constructor & Destructor Documentation
◆ ~WindowScene()
|
virtual |
Member Function Documentation
◆ createCameraEntity()
|
pure virtual |
convenience method to visualize a camera position
- Parameters
-
name entity name K intrinsic matrix imsize image size zFar far plane in camera coordinates tvec translation rot Rodrigues vector or 3x3 rotation matrix color line color
- Returns
- the extents of the Frustum at far plane, where the top left corner denotes the principal point offset
◆ createEntity()
|
pure virtual |
place an entity of a mesh in the scene
the mesh needs to be created beforehand. Either programmatically by e.g. createPointCloudMesh or by placing the respective file in a resource location.
- Parameters
-
name entity name meshname mesh name tvec translation rot Rodrigues vector or 3x3 rotation matrix
- See also
- addResourceLocation
◆ createLightEntity()
|
pure virtual |
creates a point light in the scene
- Parameters
-
name entity name tvec translation rot Rodrigues vector or 3x3 rotation matrix diffuseColor specularColor
◆ fixCameraYawAxis()
|
pure virtual |
convenience method to force the "up" axis to stay fixed
works with both programmatic changes and SCENE_INTERACTIVE
- Parameters
-
useFixed whether to enforce the fixed yaw axis up the axis to be fixed
◆ getCameraPose()
|
pure virtual |
Retrieves the current camera pose
- Parameters
-
R 3x3 rotation matrix tvec translation vector invert return the inverted pose
◆ getCompositorTexture()
|
pure virtual |
read back the texture of an active compositor
- Parameters
-
compname name of the compositor texname name of the texture inside the compositor mrtIndex if texture is a MRT, specifies the attachment out the texture contents
◆ getDepth()
|
pure virtual |
get the depth for the current frame.
return the per pixel distance to the camera in world units
◆ getEntityAnimations()
|
pure virtual |
get a list of available entity animations
- Parameters
-
name entity name out the animation names
◆ getEntityPose()
|
pure virtual |
Retrieves the current pose of an entity
- Parameters
-
name entity name R 3x3 rotation matrix tvec translation vector invert return the inverted pose
◆ getEntityProperty()
|
pure virtual |
get the property of an entity
- Parameters
-
name entity name prop EntityProperty value the value
◆ getScreenshot()
|
pure virtual |
read back the image generated by the last call to waitKey
◆ playEntityAnimation()
|
pure virtual |
play entity animation
- Parameters
-
name entity name animname animation name loop enable or disable animation loop
- See also
- getEntityAnimations
◆ removeEntity()
|
pure virtual |
remove an entity from the scene
- Parameters
-
name entity name
◆ setBackground() [1/2]
|
pure virtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
◆ setBackground() [2/2]
|
pure virtual |
set window background to custom image/ color
- Parameters
-
image
◆ setCameraIntrinsics()
|
pure virtual |
◆ setCameraLookAt()
|
pure virtual |
convenience method to orient the camera to a specific entity
- Parameters
-
target entity name offset offset from entity centre
◆ setCameraPose()
|
pure virtual |
Sets the current camera pose
- Parameters
-
tvec translation rot Rodrigues vector or 3x3 rotation matrix invert use the inverse of the given pose
◆ setCompositors()
|
pure virtual |
enable an ordered chain of full-screen post processing effects
this way you can add distortion or SSAO effects. The effects themselves must be defined inside Ogre .compositor scripts.
- Parameters
-
names compositor names that will be applied in order of appearance
- See also
- addResourceLocation
◆ setEntityLookAt()
|
pure virtual |
convenience method to orient an entity to a specific entity. If target is an empty string the entity looks at the given offset point
- Parameters
-
origin entity to make look at target name of target entity offset offset from entity centre
◆ setEntityPose()
|
pure virtual |
set entity pose in the world coordinate space.
- Parameters
-
name enitity name tvec translation rot Rodrigues vector or 3x3 rotation matrix invert use the inverse of the given pose
◆ setEntityProperty() [1/2]
|
pure virtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
◆ setEntityProperty() [2/2]
|
pure virtual |
set the property of an entity to the given value
- Parameters
-
name entity name prop EntityProperty value the value subEntityIdx index of the sub-entity (default: all)
◆ stopEntityAnimation()
|
pure virtual |
stop entity animation
- Parameters
-
name enitity name animname animation name
◆ update()
|
pure virtual |
render this window, but do not swap buffers. Automatically called by ovis::waitKey
◆ updateEntityPose()
|
pure virtual |
update entity pose by transformation in the parent coordinate space. (pre-rotation)
- Parameters
-
name entity name tvec translation rot Rodrigues vector or 3x3 rotation matrix
The documentation for this class was generated from the following file:
- opencv2/ovis.hpp