Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | Namespace Members | Class Members

DrawableSporeCloud Class Reference

#include <src/DrawableSporeCloud.h>

Inheritance diagram for DrawableSporeCloud:

Inheritance graph
[legend]
Collaboration diagram for DrawableSporeCloud:

Collaboration graph
[legend]
List of all members.

Detailed Description

Author:
Nicolas Brodu


Public Member Functions

 DrawableSporeCloud (Terrain *terrain, int divx, int divy, int divz, double baseDiffusionCoef, double lowestConcentration)
void setDefaultAttributes (const std::string &texturefile="", bool emissive_particles=true, bool lighting=false, int texture_unit=0)
 Taken from OSG particle system. Used to set up a texture for particles.
void drawImplementation (osg::State &state) const
void setBillboardSize (float width, float height)
virtual void step ()
 Override parent integration step to compute visual updates at this frequency, and not each frame!
void setEnableView (bool state)
 Whether to display the cloud, or not.
bool getEnableView ()
virtual osg::Object * cloneType () const
virtual osg::Object * clone (const osg::CopyOp &copyop) const
virtual bool isSameKindAs (const osg::Object *obj) const
virtual const char * libraryName () const
virtual const char * className () const

Protected Member Functions

void single_pass_render (const osg::Matrix &modelview) const
void renderParticle (const osg::Vec3 &pos) const

Static Protected Member Functions

static SporeVolume * coloredVolumeFactory (void *user)

Protected Attributes

Terrainterrain
double baseDiffusionCoef
float billboardWidth
float billboardHeight
float halfBillboardWidth
float halfBillboardHeight
double stepx
double stepy
double stepz
ColoredVolume * visibleList
OpenThreads::Mutex visibleListMutex
bool viewDisabled

Classes

struct  ColoredGenome
struct  ColoredVolume


Member Function Documentation

void DrawableSporeCloud::setEnableView bool  state  )  [inline]
 

Whether to display the cloud, or not.

Default is true, but when the cloud is too dense it may be de-activated so we can see the agents.


The documentation for this class was generated from the following files:
Generated on Mon Mar 28 11:27:05 2005 for Crogai by  doxygen 1.4.1