proland::Plants Class Reference
[plants]

TODO. More...

#include <Plants.h>

List of all members.

Public Member Functions

 Plants (int minLevel, int maxLevel, int minDensity, int maxDensity, int tileCacheSize, float maxDistance)
 Creates a new Plants.
 ~Plants ()
 Deletes this Plants.
int getMinLevel ()
 TODO.
int getMaxLevel ()
 TODO.
int getMinDensity ()
 TODO.
int getMaxDensity ()
 TODO.
int getTileCacheSize ()
 TODO.
float getMaxDistance ()
 TODO.
int getPatternCount ()
 TODO.
float getPoissonRadius ()
 TODO.
ptr< MeshBuffers > getPattern (int index)
 Returns the i'th pattern.
void addPattern (ptr< MeshBuffers > pattern)
 TODO.
void setMaxDistance (float maxDistance)
 TODO.

Public Attributes

ptr< Program > selectProg
 The GLSL Shader that is able to determine if a seed is valid (see DrawPlantsTask).
ptr< Program > shadowProg
 The GLSL Shader used to render the plants shadows, based on the selected seeds.
ptr< Program > renderProg
 The GLSL Shader used to render the plants, based on the selected seeds.

Protected Member Functions

 Plants ()
 Creates a new Plants.
void init (int minLevel, int maxLevel, int minDensity, int maxDensity, int tileCacheSize, float maxDistance)
 Initializes a Plants fields.

Detailed Description

TODO.

Author:
Eric Bruneton, Antoine Begault, Guillaume Piolat

Constructor & Destructor Documentation

proland::Plants::Plants ( int  minLevel,
int  maxLevel,
int  minDensity,
int  maxDensity,
int  tileCacheSize,
float  maxDistance 
)

Creates a new Plants.

Parameters:
minLevel the first level to display the models from this Plants.
maxLevel the last level to display the models from this Plants.
maxDistance the furthest distance at which to display the models.
lodDistance the distance between each lod.
proland::Plants::~Plants (  ) 

Deletes this Plants.

proland::Plants::Plants (  )  [protected]

Creates a new Plants.


Member Function Documentation

void proland::Plants::addPattern ( ptr< MeshBuffers >  pattern  ) 

TODO.

int proland::Plants::getMaxDensity (  ) 

TODO.

float proland::Plants::getMaxDistance (  ) 

TODO.

int proland::Plants::getMaxLevel (  ) 

TODO.

int proland::Plants::getMinDensity (  ) 

TODO.

int proland::Plants::getMinLevel (  ) 

TODO.

ptr<MeshBuffers> proland::Plants::getPattern ( int  index  ) 

Returns the i'th pattern.

int proland::Plants::getPatternCount (  ) 

TODO.

float proland::Plants::getPoissonRadius (  ) 

TODO.

int proland::Plants::getTileCacheSize (  ) 

TODO.

void proland::Plants::init ( int  minLevel,
int  maxLevel,
int  minDensity,
int  maxDensity,
int  tileCacheSize,
float  maxDistance 
) [protected]

Initializes a Plants fields.

See Plants.

void proland::Plants::setMaxDistance ( float  maxDistance  ) 

TODO.


Member Data Documentation

The GLSL Shader used to render the plants, based on the selected seeds.

The GLSL Shader that is able to determine if a seed is valid (see DrawPlantsTask).

If it is, it will determine its properties, such as the size of the plant, its type, color etc... Eliminated seeds will contain (0, 0, 0, 0) values.

The GLSL Shader used to render the plants shadows, based on the selected seeds.


Generated on Sat May 12 09:42:32 2012 for proland by  doxygen 1.6.1