Viewer class with some extras for rendering whole robots. More...
#include <osgviewer.hpp>
Classes | |
| struct | EventHandler |
Public Types | |
|
typedef boost::function< bool(const osgGA::GUIEventAdapter &)> | MouseCallback |
|
typedef boost::function< void(const osgGA::GUIEventAdapter &)> | KeyCallback |
Public Member Functions | |
| OSGViewer (OpenRAVE::EnvironmentBasePtr env) | |
| virtual int | main (bool bShow=true) |
| virtual void | quitmainloop () |
| void | RemoveKinBody (OpenRAVE::KinBodyPtr pbody) |
| void | Draw () |
| void | Idle () |
| void | UpdateSceneData () |
| const std::string & | GetName () const |
| void | SetBkgndColor (const RaveVectorf &) |
| void | AddMouseCallback (const MouseCallback &cb) |
| void | AddKeyCallback (int key, const KeyCallback &cb, const std::string &help="") |
| void | PrintHelp () |
| OpenRAVE::GraphHandlePtr | drawarrow (const RaveVectorf &p1, const RaveVectorf &p2, float fwidth, const RaveVectorf &color) |
| OpenRAVE::GraphHandlePtr | drawtrimesh (const float *ppoints, int stride, const int *pIndices, int numTriangles, const RaveVectorf &color) |
| OpenRAVE::GraphHandlePtr | plot3 (const float *ppoints, int numPoints, int stride, float fPointSize, const OpenRAVE::RaveVector< float > &color, int drawstyle=0) |
| OpenRAVE::GraphHandlePtr | plot3 (const float *ppoints, int numPoints, int stride, float pointsize, const float *colors, int drawstyle=0, bool bhasalpha=false) |
| OpenRAVE::GraphHandlePtr | drawlinelist (const float *ppoints, int numPoints, int stride, float fwidth, const RaveVectorf &color) |
| OpenRAVE::GraphHandlePtr | drawlinestrip (const float *ppoints, int numPoints, int stride, float fwidth, const RaveVectorf &color) |
| OpenRAVE::GraphHandlePtr | _drawlines (osg::PrimitiveSet::Mode mode, const float *ppoints, int numPoints, int stride, float fwidth, const RaveVectorf &color) |
| OpenRAVE::GraphHandlePtr | drawtext (const std::string &text, float x, float y, float fontsize, const OpenRAVE::Vector &color) |
| void | SetAllTransparency (float alpha) |
| void | SetTransparency (OpenRAVE::KinBodyPtr, float alpha) |
| OpenRAVE::GraphHandlePtr | PlotAxes (const OpenRAVE::Transform &T, float size) |
| OpenRAVE::GraphHandlePtr | PlotSphere (const OpenRAVE::Vector &x, float radius) |
| OpenRAVE::GraphHandlePtr | PlotKinBody (const OpenRAVE::KinBodyPtr) |
| copy current state of kinbody or link | |
| OpenRAVE::GraphHandlePtr | PlotLink (const OpenRAVE::KinBody::LinkPtr) |
Static Public Member Functions | |
|
static boost::shared_ptr < OSGViewer > | GetOrCreate (OpenRAVE::EnvironmentBasePtr env) |
Public Attributes | |
| osg::ref_ptr< EventHandler > | m_handler |
| osg::ref_ptr< osg::Group > | m_root |
Viewer class with some extras for rendering whole robots.
1.8.3