|
| SceneOpenGL () |
| Creates object.
|
|
virtual | ~SceneOpenGL () |
| Destroys object.
|
|
void | clearCache () |
| Clears the drawable cache by deleting all drawables.
|
|
void | draw (rw::graphics::SceneGraph::RenderInfo &info) |
| draws the scene, using the specified render information More...
|
|
void | draw (rw::graphics::SceneGraph::RenderInfo &info, rw::graphics::SceneNode::Ptr node) |
| draws the scene, using the specified render information More...
|
|
rw::graphics::DrawableNode::Ptr | pickDrawable (rw::graphics::SceneGraph::RenderInfo &info, int x, int y) |
| picks the drawable in the scene that intersects with the ray (x,y,-1) in camera coordinates. More...
|
|
rw::math::Vector3D | unproject (rw::graphics::SceneCamera::Ptr camera, int x, int y) |
| this method unprojects a 2D screen coordinate to 3D coordinates from the last draw'n scene. Which is the closest 3d point from the intersection of the ray (x,y,-1) and the objects drawn in the scene. More...
|
|
rw::math::Vector3D | project (rw::graphics::SceneCamera::Ptr camera, double x, double y, double z) |
| this method projects a 3D coordinate to 2D screen coordinates from the last draw'n scene. More...
|
|
void | update () |
| should be called after the structure of the scene has been changed More...
|
|
rw::graphics::DrawableGeometryNode::Ptr | makeDrawableFrameAxis (const std::string &name, double size, int dmask) |
| Create a drawable node for a frame axis coordinate system. More...
|
|
rw::graphics::DrawableGeometryNode::Ptr | makeDrawable (const std::string &name, rw::core::Ptr< rw::geometry::Geometry > geom, int dmask) |
|
rw::graphics::DrawableGeometryNode::Ptr | makeDrawable (const std::string &name, const std::vector< rw::geometry::Line > &lines, int dmask) |
|
rw::graphics::DrawableNode::Ptr | makeDrawable (const std::string &name, rw::core::Ptr< rw::geometry::Model3D > model, int dmask) |
|
rw::graphics::DrawableNode::Ptr | makeDrawable (const std::string &name, const class rw::sensor::Image &img, int dmask) |
|
rw::graphics::DrawableNode::Ptr | makeDrawable (const std::string &name, const rw::geometry::PointCloud &scan, int dmask) |
|
rw::graphics::DrawableNode::Ptr | makeDrawable (const std::string &name, const std::string &text, const rw::core::Ptr< rw::kinematics::Frame > labelFrame, int dmask) |
|
rw::graphics::DrawableNode::Ptr | makeDrawable (const std::string &name, rw::core::Ptr< rw::graphics::Render > render, int dmask) |
|
rw::graphics::DrawableNode::Ptr | makeDrawable (const std::string &filename, int dmask) |
| Create a drawable node from a file. More...
|
|
rw::core::Ptr< rw::graphics::SceneCamera > | makeCamera (const std::string &name) |
| Create a new scene camera. More...
|
|
rw::core::Ptr< rw::graphics::CameraGroup > | makeCameraGroup (const std::string &name) |
| Create a camera group. More...
|
|
void | clear () |
| Clear the scene graph.
|
|
virtual | ~SceneGraph () |
| Destructor.
|
|
virtual GroupNode::Ptr | makeGroupNode (const std::string &name) |
| Make a group node. More...
|
|
virtual rw::core::Ptr< rw::graphics::CameraGroup > | findCameraGroup (const std::string &name) |
| Find a camera group. More...
|
|
virtual void | addCameraGroup (rw::core::Ptr< rw::graphics::CameraGroup > cgroup) |
| Add a camera group. More...
|
|
virtual void | removeCameraGroup (rw::core::Ptr< rw::graphics::CameraGroup > cgroup) |
| Remove a camera group. More...
|
|
virtual void | removeCameraGroup (const std::string &name) |
| Remove a camera group. More...
|
|
virtual std::list< rw::core::Ptr< rw::graphics::CameraGroup > > | getCameraGroups () |
| Get all camera groups. More...
|
|
virtual void | setRoot (rw::graphics::GroupNode::Ptr node) |
| Set the root of the scene graph. More...
|
|
virtual rw::graphics::GroupNode::Ptr | getRoot () |
| Get the root of the scene graph. More...
|
|
virtual void | addChild (rw::core::Ptr< rw::graphics::SceneNode > child, rw::graphics::GroupNode::Ptr parent) |
| add a drawable to a node
|
|
virtual std::vector< rw::graphics::DrawableNode::Ptr > | getDrawables () |
| get all drawables in the scene. More...
|
|
virtual std::vector< rw::graphics::DrawableNode::Ptr > | getDrawables (rw::core::Ptr< rw::graphics::SceneNode > node) |
| get a vector of drawables attached to a node More...
|
|
virtual std::vector< rw::graphics::DrawableNode::Ptr > | getDrawablesRec (rw::core::Ptr< rw::graphics::SceneNode > node) |
| get all drawable nodes in the subtree of node. nodes of type camera will not be traversed More...
|
|
virtual rw::graphics::DrawableNode::Ptr | findDrawable (const std::string &name) |
| Find a drawable node in the scene graph. More...
|
|
virtual rw::graphics::DrawableNode::Ptr | findDrawable (const std::string &name, rw::core::Ptr< SceneNode > node) |
| Find a drawable node in the scene graph. More...
|
|
virtual std::vector< rw::graphics::DrawableNode::Ptr > | findDrawables (const std::string &name) |
| Find multiple drawable nodes in the scene graph. More...
|
|
virtual bool | removeDrawables (rw::graphics::GroupNode::Ptr node) |
| Remove a node. More...
|
|
virtual bool | removeDrawables (const std::string &name) |
| Remove all drawables with a given name. More...
|
|
virtual bool | removeDrawable (rw::graphics::DrawableNode::Ptr drawable) |
| Remove a specific drawable. More...
|
|
virtual bool | removeDrawable (rw::graphics::DrawableNode::Ptr drawable, rw::core::Ptr< rw::graphics::SceneNode > node) |
| Remove a specific drawable. More...
|
|
virtual bool | removeDrawable (const std::string &name) |
| Remove a specific drawable with a given name. More...
|
|
virtual bool | removeChild (const std::string &name, rw::graphics::GroupNode::Ptr node) |
| Removes child with the specified name from the node. More...
|
|
void | traverse (rw::core::Ptr< rw::graphics::SceneNode > &node, NodeVisitor &visitor) |
| Traverse all nodes in the subtree under node recursively. More...
|
|
void | traverse (rw::core::Ptr< rw::graphics::SceneNode > &node, NodeVisitor &visitor, NodeVisitor &postvisitor) |
| Traverse all nodes in the subtree under node recursively. More...
|
|
void | traverse (rw::core::Ptr< rw::graphics::SceneNode > &node, NodeVisitor &visitor, const NodeFilter &filter) |
| Traverse all nodes in the subtree under node recursively. More...
|
|
void | traverse (rw::core::Ptr< rw::graphics::SceneNode > &node, NodeVisitor &visitor, NodeVisitor &postvisitor, const NodeFilter &filter) |
| Traverse all nodes in the subtree under node recursively. More...
|
|
Helps with Visualizing a Workcell. SceneOpenGL is OpenGL specific.