#include <src/DrawableSporeCloud.h>
Inheritance diagram for DrawableSporeCloud:
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 ©op) 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 | |
Terrain * | terrain |
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 |
|
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. |