OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Member Functions | Private Attributes | List of all members
MWRender::ClipCullNode Class Reference

Allows to cull and clip meshes that are below a plane. Useful for reflection & refraction camera effects. Also handles flipping of the plane when the eye point goes below it. To use, simply create the scene as subgraph of this node, then do setPlane(const osg::Plane& plane);. More...

Inheritance diagram for MWRender::ClipCullNode:
Collaboration diagram for MWRender::ClipCullNode:

Classes

class  FlipCallback
 
class  PlaneCullCallback
 

Public Member Functions

 ClipCullNode ()
 
void setPlane (const osg::Plane &plane)
 

Private Attributes

osg::ref_ptr< osg::Group > mClipNodeTransform
 
osg::ref_ptr< osg::ClipNode > mClipNode
 
osg::Plane mPlane
 

Detailed Description

Allows to cull and clip meshes that are below a plane. Useful for reflection & refraction camera effects. Also handles flipping of the plane when the eye point goes below it. To use, simply create the scene as subgraph of this node, then do setPlane(const osg::Plane& plane);.

Constructor & Destructor Documentation

MWRender::ClipCullNode::ClipCullNode ( )
inline

Member Function Documentation

void MWRender::ClipCullNode::setPlane ( const osg::Plane &  plane)
inline

Member Data Documentation

osg::ref_ptr<osg::ClipNode> MWRender::ClipCullNode::mClipNode
private
osg::ref_ptr<osg::Group> MWRender::ClipCullNode::mClipNodeTransform
private
osg::Plane MWRender::ClipCullNode::mPlane
private

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