VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrv::DtForestObject Class Referenceabstract

DtForestObject provides a way to make lots of trees.

Inheritance diagram for makVrv::DtForestObject:
Inheritance graph
[legend]

Public Types

typedef boost::unordered_map
< DtUniqueID, DtTreeRecord
TreeRecordMap
 

Public Member Functions

virtual ~DtForestObject ()
 
virtual DtDede ()
 
Driver bound methods

These methods are bound to the driver.

virtual void addUniqueTree (DtTreeRecord &record)=0
 
virtual void removeTree (DtUniqueID treeId)=0
 
virtual void removeAllTrees ()=0
 
virtual void setTreeClippingPlane (float fFar)=0
 
virtual void getTreeClippingPlane (float &fFar)=0
 
virtual void setTree3DLodDistances (float fNear, float fFar)=0
 
virtual void getTree3DLodDistances (float &fNear, float &fFar)=0
 
virtual void setTreeBillboardDistances (float fStart, float fEnd)=0
 
virtual void getTreeBillboardDistances (float &fStart, float &fEnd)=0
 
virtual void setBillboardFadeOutRange (float fRange)=0
 
virtual void getBillboardFadeOutRange (float &fRange)=0
 
void addTree (DtTreeRecord &record)
 

Protected Member Functions

 DtForestObject (DtDe &de, DtUniqueID id)
 

Protected Attributes

DtDemyDe
 

Friends

class DtForestObjectClassesCreator
 
class DtForestObjectCreator
 

Member Typedef Documentation

Constructor & Destructor Documentation

virtual makVrv::DtForestObject::~DtForestObject ( )
virtual

Destructor.

makVrv::DtForestObject::DtForestObject ( DtDe de,
DtUniqueID  id 
)
protected

Constructor is protected because this class is created via the creator pattern.

Member Function Documentation

virtual void makVrv::DtForestObject::addUniqueTree ( DtTreeRecord record)
pure virtual

Add a tree to the forest.

Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.

virtual void makVrv::DtForestObject::removeTree ( DtUniqueID  treeId)
pure virtual

Remove a tree from the forest.

Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.

virtual void makVrv::DtForestObject::removeAllTrees ( )
pure virtual

Remove all trees.

Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.

virtual void makVrv::DtForestObject::setTreeClippingPlane ( float  fFar)
pure virtual

Set the distance that trees are clipped. Not implemented in DtOsgForest (only DtSpeedTreeForest).

Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.

virtual void makVrv::DtForestObject::getTreeClippingPlane ( float &  fFar)
pure virtual

Get the clipping planes.

Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.

virtual void makVrv::DtForestObject::setTree3DLodDistances ( float  fNear,
float  fFar 
)
pure virtual

Set the distances for tree LOD's. Not implemented in DtOsgForest (only DtSpeedTreeForest).

Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.

virtual void makVrv::DtForestObject::getTree3DLodDistances ( float &  fNear,
float &  fFar 
)
pure virtual

Set the distances for tree LOD's. Not implemented in DtOsgForest (only DtSpeedTreeForest).

Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.

virtual void makVrv::DtForestObject::setTreeBillboardDistances ( float  fStart,
float  fEnd 
)
pure virtual

Set the distances for tree billboard LOD's. Not implemented in DtOsgForest (only DtSpeedTreeForest).

Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.

virtual void makVrv::DtForestObject::getTreeBillboardDistances ( float &  fStart,
float &  fEnd 
)
pure virtual

Get the distances for tree billboard LOD's. Not implemented in DtOsgForest (only DtSpeedTreeForest).

Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.

virtual void makVrv::DtForestObject::setBillboardFadeOutRange ( float  fRange)
pure virtual

set the fade out distance for the billboards. The Range - Cull distance = start transition dist

Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.

virtual void makVrv::DtForestObject::getBillboardFadeOutRange ( float &  fRange)
pure virtual

get the fade out distance for the billboards. The Range - Cull distance = start transition dist

Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.

void makVrv::DtForestObject::addTree ( DtTreeRecord record)

Add a tree to the forest. Non virtual. Calls virtual method addUniqueTree().

virtual DtDe& makVrv::DtForestObject::de ( )
virtual

IG accessor.

Friends And Related Function Documentation

friend class DtForestObjectClassesCreator
friend

This allows the protected constructor to be called by the DtForestObjectCreator(2).

friend class DtForestObjectCreator
friend

Member Data Documentation

DtDe& makVrv::DtForestObject::myDe
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)