VR-Forces 4.7 Class Documentation
 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 Reference

DtForestObject provides a way to make lots of trees. More...

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

Public Types

typedef boost::unordered_map
< DtUniqueID, DtTreeRecord
TreeRecordMap

Public Member Functions

virtual ~DtForestObject ()
 Destructor.
virtual DtDede ()
 IG accessor.
Driver bound methods

These methods are bound to the driver.

virtual void addUniqueTree (DtTreeRecord &record)=0
 Add a tree to the forest.
virtual void removeTree (DtUniqueID treeId)=0
 Remove a tree from the forest.
virtual void removeAllTrees ()=0
 Remove all trees.
virtual void setTreeClippingPlane (float fFar)=0
 Set the distance that trees are clipped.
virtual void getTreeClippingPlane (float &fFar)=0
 Get the clipping planes.
virtual void setTree3DLodDistances (float fNear, float fFar)=0
 Set the distances for tree LOD's.
virtual void getTree3DLodDistances (float &fNear, float &fFar)=0
 Set the distances for tree LOD's.
virtual void setTreeBillboardDistances (float fStart, float fEnd)=0
 Set the distances for tree billboard LOD's.
virtual void getTreeBillboardDistances (float &fStart, float &fEnd)=0
 Get the distances for tree billboard LOD's.
void addTree (DtTreeRecord &record)
 Add a tree to the forest.

Protected Member Functions

 DtForestObject (DtDe &de, DtUniqueID id)
 Constructor is protected because this class is created via the creator pattern.

Protected Attributes

DtDemyDe

Friends

class DtForestObjectClassesCreator
 This allows the protected constructor to be called by the DtForestCreator(2).
class DtForestCreator

Detailed Description

DtForestObject provides a way to make lots of trees.

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.

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 DtForestCreator(2).

friend class DtForestCreator
friend

Member Data Documentation

DtDe& makVrv::DtForestObject::myDe
protected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)