RobWorkProject  23.9.11-
Public Types | Public Member Functions | List of all members
SceneViewerWidget Class Referenceabstract

Class representing a Qt widget for 3D visualization of a scene. More...

#include <SceneViewerWidget.hpp>

Inherits SceneViewer.

Inherited by SceneOpenGLViewer.

Public Types

typedef rw::core::Ptr< SceneViewerWidgetPtr
 Smart pointer type for a SceneViewerWidget.
 
- Public Types inherited from SceneViewer
typedef rw::core::Ptr< SceneViewerPtr
 smart pointer type to this class
 
typedef boost::function< void(const rw::math::Vector3D<> &)> PositionSelectedListener
 Defines a listener for position change events. More...
 
typedef rw::core::Event< PositionSelectedListener, const rw::math::Vector3D<> & > PositionSelectedEvent
 Defines event for PositionChanged.
 

Public Member Functions

virtual rw::graphics::SceneGraph::RenderInfogetRenderInfo ()=0
 Get rendering info for the scene. More...
 
virtual rw::graphics::DrawableNode::Ptr getPivotDrawable ()=0
 Get the drawable used for pivoting. More...
 
virtual QWidget * getWidget ()=0
 Get the Qt widget for visualization of the scene. More...
 
- Public Member Functions inherited from SceneViewer
 SceneViewer ()
 Constructor.
 
virtual ~SceneViewer ()
 Destructor.
 
virtual SceneGraph::Ptr getScene ()=0
 get the current scene graph
 
virtual const std::string & getLogo () const =0
 get the logo that is displayed in the 3d scene
 
virtual void setLogo (const std::string &string)=0
 set the logo that is displayed in the 3d scene
 
virtual rw::core::PropertyMapgetPropertyMap ()=0
 get propertymap
 
virtual void updateView ()=0
 Update the view.
 
virtual void updateState (const rw::kinematics::State &state)=0
 Set a new state. More...
 
virtual void setWorldNode (rw::graphics::GroupNode::Ptr wnode)=0
 Set the world group node. More...
 
virtual void setWorkCellScene (rw::core::Ptr< class WorkCellScene > wcscene)
 Set the WorkCell scene. More...
 
virtual rw::graphics::GroupNode::Ptr getWorldNode ()=0
 Get the world node. More...
 
virtual void saveBufferToFile (const std::string &filename, const int fillR, const int fillG, const int fillB)=0
 Saves the current 3D view to disk as either jpg, bmp or png. More...
 
virtual SceneCamera::Ptr getViewCamera ()=0
 Get the view camera. More...
 
virtual rw::math::Vector3D getViewCenter ()=0
 Get the view center. More...
 
virtual DrawableNode::Ptr pickDrawable (int x, int y)=0
 picks the drawable in the scene that intersects with the ray (x,y,-1) in camera coordinates. More...
 
virtual DrawableNode::Ptr pickDrawable (SceneGraph::RenderInfo &info, int x, int y)=0
 picks the drawable in the scene that intersects with the ray (x,y,-1) in camera coordinates. More...
 
virtual View::Ptr createView (const std::string &name, bool enableBackground=false)=0
 Create a new view. More...
 
virtual View::Ptr getMainView ()=0
 Get the main view. More...
 
virtual void destroyView (View::Ptr view)=0
 Destroy view. More...
 
virtual void selectView (View::Ptr view)=0
 Select a view. More...
 
virtual View::Ptr getCurrentView ()=0
 Get the currently selected view. More...
 
virtual std::vector< View::PtrgetViews ()=0
 Get all views. More...
 
virtual void renderView (View::Ptr view)=0
 Render a view. More...
 
PositionSelectedEventpositionSelectedEvent ()
 Returns PositionChangedEvent object needed for subscription to and firing of event. More...
 
virtual void setTransform (const rw::math::Transform3D<> &t3d)
 set the orientation of the view. The view will look in the positive direction of the z-axis, with x-axis as the width and the y-axis as the height. Origin of view is in the center of the image. More...
 
virtual rw::math::Transform3D getTransform ()
 get the current rotation of the view More...
 
virtual void zoom (double amount)=0
 Move the camera along its z-axis. More...
 
virtual void autoZoom ()=0
 Automatically fits all frames inside the viewport by moving camera in its z-axis.
 

Additional Inherited Members

- Protected Attributes inherited from SceneViewer
PositionSelectedEvent _positionSelectedEvent
 Event for selection of a position.
 
rw::core::Ptr< class WorkCellScene_wcscene
 The WorkCell scene.
 

Detailed Description

Class representing a Qt widget for 3D visualization of a scene.

Member Function Documentation

◆ getPivotDrawable()

virtual rw::graphics::DrawableNode::Ptr getPivotDrawable ( )
pure virtual

Get the drawable used for pivoting.

Returns
the drawable node.

Implemented in SceneOpenGLViewer.

◆ getRenderInfo()

virtual rw::graphics::SceneGraph::RenderInfo& getRenderInfo ( )
pure virtual

Get rendering info for the scene.

Returns
the render info.

Implemented in SceneOpenGLViewer.

◆ getWidget()

virtual QWidget* getWidget ( )
pure virtual

Get the Qt widget for visualization of the scene.

Returns
the Qt widget.

Implemented in SceneOpenGLViewer.


The documentation for this class was generated from the following file: