osgEarth 2.1.1
Public Member Functions | Public Attributes

osgEarth::CullDrawableByNormal Struct Reference

List of all members.

Public Member Functions

 CullDrawableByNormal (const osg::Vec3d &normal)
bool cull (osg::NodeVisitor *nv, osg::Drawable *drawable, osg::State *state) const

Public Attributes

osg::Vec3d _normal

Detailed Description

Definition at line 189 of file Utils.


Constructor & Destructor Documentation

osgEarth::CullDrawableByNormal::CullDrawableByNormal ( const osg::Vec3d &  normal) [inline]

Definition at line 191 of file Utils.

: _normal(normal) { }

Member Function Documentation

bool osgEarth::CullDrawableByNormal::cull ( osg::NodeVisitor *  nv,
osg::Drawable *  drawable,
osg::State *  state 
) const [inline]

Definition at line 192 of file Utils.

                                                                                    {
            return nv && nv->getEyePoint() * _normal <= 0;
        }

Member Data Documentation

Definition at line 190 of file Utils.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines