vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
grass::GrassDrawable Class Reference

#include <grass_drawable.h>

Inheritance diagram for grass::GrassDrawable:

Public Types

enum  ROLE { TOP_LEVEL, INTERMEDIATE, DETAILED }
 

Public Member Functions

 GrassDrawable (Geode &g, GrassAbilityParameters *parameters)
 
 GrassDrawable (Mesh *newMesh, GrassAbilityParameters *parameters)
 
virtual ~GrassDrawable ()
 
 GrassDrawable (const GrassDrawable &gd, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
virtual Object * cloneType () const
 
virtual Object * clone (const CopyOp &copyop) const
 
virtual bool isSameKindAs (const Object *obj) const
 
virtual const char * libraryName () const
 
virtual const char * className () const
 
virtual void drawImplementation (RenderInfo &renderInfo) const
 
void ManageCulling (osgUtil::CullVisitor *cv, RenderInfo *renderInfo)
 

Protected Member Functions

void PrepareDisplayList (osg::RenderInfo &renderInfo) const
 
void EnsureDetailedVersionIsReady ()
 

Protected Attributes

float LOD
 
float distanceFromEye
 
bool displayListValid
 
ref_ptr< GrassAbilityParametersparams
 
ROLE role
 
std::vector< ref_ptr
< GrassDrawable > > 
moreDetailedVersion
 
GLuint grassDisplayList
 
ref_ptr< Meshmesh
 

Member Enumeration Documentation

Enumerator
TOP_LEVEL 
INTERMEDIATE 
DETAILED 

Constructor & Destructor Documentation

grass::GrassDrawable::GrassDrawable ( Geode &  g,
GrassAbilityParameters parameters 
)
grass::GrassDrawable::GrassDrawable ( Mesh newMesh,
GrassAbilityParameters parameters 
)
grass::GrassDrawable::~GrassDrawable ( )
virtual
grass::GrassDrawable::GrassDrawable ( const GrassDrawable gd,
const CopyOp &  copyop = CopyOp::SHALLOW_COPY 
)

Member Function Documentation

virtual const char* grass::GrassDrawable::className ( ) const
inlinevirtual
virtual Object* grass::GrassDrawable::clone ( const CopyOp &  copyop) const
inlinevirtual
virtual Object* grass::GrassDrawable::cloneType ( ) const
inlinevirtual
void grass::GrassDrawable::drawImplementation ( RenderInfo &  renderInfo) const
virtual
void grass::GrassDrawable::EnsureDetailedVersionIsReady ( )
protected
virtual bool grass::GrassDrawable::isSameKindAs ( const Object *  obj) const
inlinevirtual
virtual const char* grass::GrassDrawable::libraryName ( ) const
inlinevirtual
void grass::GrassDrawable::ManageCulling ( osgUtil::CullVisitor *  cv,
RenderInfo *  renderInfo 
)
void grass::GrassDrawable::PrepareDisplayList ( osg::RenderInfo &  renderInfo) const
protected

Member Data Documentation

bool grass::GrassDrawable::displayListValid
mutableprotected
float grass::GrassDrawable::distanceFromEye
protected
GLuint grass::GrassDrawable::grassDisplayList
mutableprotected
float grass::GrassDrawable::LOD
protected
ref_ptr<Mesh> grass::GrassDrawable::mesh
protected
std::vector<ref_ptr<GrassDrawable> > grass::GrassDrawable::moreDetailedVersion
protected
ref_ptr<GrassAbilityParameters> grass::GrassDrawable::params
protected
ROLE grass::GrassDrawable::role
protected

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