DtSpeedTreeDrawable draws a SpeedTree forest.
More...
Detailed Description
DtSpeedTreeDrawable draws a SpeedTree forest.
Member Typedef Documentation
Constructor & Destructor Documentation
| makVrv::DtSpeedTreeDrawable::DtSpeedTreeDrawable |
( |
DtDe & |
de, |
|
|
DtSpeedTreeForest * |
forestModel, |
|
|
const std::string & |
speedTreeDataPathRoot, |
|
|
int |
randomSeed |
|
) |
| |
CTOR which takes the path to the speed tree data directory containing forests and shaders.
| makVrv::DtSpeedTreeDrawable::DtSpeedTreeDrawable |
( |
const DtSpeedTreeDrawable & |
orig, |
|
|
const osg::CopyOp & |
copyop = osg::CopyOp::SHALLOW_COPY |
|
) |
| |
Copy constructor using CopyOp to manage deep vs shallow copy.
| virtual makVrv::DtSpeedTreeDrawable::~DtSpeedTreeDrawable |
( |
| ) |
|
|
virtual |
Member Function Documentation
| virtual osg::Object* makVrv::DtSpeedTreeDrawable::cloneType |
( |
| ) |
const |
|
inlinevirtual |
| virtual osg::Object* makVrv::DtSpeedTreeDrawable::clone |
( |
const osg::CopyOp & |
copyop | ) |
const |
|
inlinevirtual |
| virtual bool makVrv::DtSpeedTreeDrawable::isSameKindAs |
( |
const osg::Object * |
obj | ) |
const |
|
inlinevirtual |
| virtual const char* makVrv::DtSpeedTreeDrawable::libraryName |
( |
| ) |
const |
|
inlinevirtual |
| virtual const char* makVrv::DtSpeedTreeDrawable::className |
( |
| ) |
const |
|
inlinevirtual |
| virtual void makVrv::DtSpeedTreeDrawable::setProfile |
( |
int |
profile | ) |
|
|
virtual |
Set the tree profile (1-4). Fastest to Nicest looking.
| virtual void makVrv::DtSpeedTreeDrawable::drawImplementation |
( |
osg::RenderInfo & |
| ) |
const |
|
virtual |
The drawImplementation method is where the OSG wraps up the drawing of OpenGL primitives.
| virtual void makVrv::DtSpeedTreeDrawable::setTreesHaveChanged |
( |
bool |
bFlag | ) |
|
|
virtual |
| virtual bool makVrv::DtSpeedTreeDrawable::treesHaveChanged |
( |
| ) |
const |
|
virtual |
True if trees have been changed and forest needs to be rebuilt.
| virtual osg::BoundingBox makVrv::DtSpeedTreeDrawable::computeBound |
( |
| ) |
const |
|
virtual |
Compute the bounding box of the drawbable.
This is so that the scene graph knows where this objects is, for both positioning the camera at start up, and most importantly for culling.
| virtual void makVrv::DtSpeedTreeDrawable::setTreeClippingPlane |
( |
float |
fFar | ) |
|
|
virtual |
Set the distance that trees are clipped.
Since trees are expensive, they have their own clipping distances.
| virtual void makVrv::DtSpeedTreeDrawable::setTreeLodDistances |
( |
float |
fNear, |
|
|
float |
fFar |
|
) |
| |
|
virtual |
Set the distances for tree LOD's.
the near LOD plane. fFar is set using world units, determine solely by the application.
| virtual void makVrv::DtSpeedTreeDrawable::releaseGLObjects |
( |
osg::State * |
state = 0 | ) |
const |
|
virtual |
If State is non-zero, this function releases OpenGL objects for the specified graphics context.
Otherwise, releases OpenGL objects for all graphics contexts.
| DtSpeedTreeProfile* makVrv::DtSpeedTreeDrawable::getCurrentProfile |
( |
unsigned int |
contextId | ) |
const |
|
protected |
| void makVrv::DtSpeedTreeDrawable::setCurrentProfile |
( |
unsigned int |
contextId, |
|
|
DtSpeedTreeProfile * |
profile |
|
) |
| |
|
protected |
| void makVrv::DtSpeedTreeDrawable::flushGLObjects |
( |
unsigned int |
contextID | ) |
const |
|
protected |
| void makVrv::DtSpeedTreeDrawable::createProfile |
( |
unsigned int |
contextId | ) |
|
|
protected |
Friends And Related Function Documentation
Member Data Documentation
| DtDe& makVrv::DtSpeedTreeDrawable::myDe |
|
protected |
| bool makVrv::DtSpeedTreeDrawable::myTreesHaveChanged |
|
protected |
| bool makVrv::DtSpeedTreeDrawable::myProfileHasChanged |
|
protected |
| int makVrv::DtSpeedTreeDrawable::myProfileId |
|
protected |
| int makVrv::DtSpeedTreeDrawable::myRandomSeed |
|
protected |
| float makVrv::DtSpeedTreeDrawable::myFarPlane |
|
protected |
| float makVrv::DtSpeedTreeDrawable::myNearLod |
|
protected |
| float makVrv::DtSpeedTreeDrawable::myFarLod |
|
protected |
The documentation for this class was generated from the following file: