TODO. More...
#include <DrawPlantsTask.h>
Public Member Functions | |
DrawPlantsTask (const string &terrain, ptr< Plants > plants) | |
Creates a new DrawPlantsTask. | |
virtual | ~DrawPlantsTask () |
Deletes a DrawPlantsTask. | |
virtual ptr< Task > | getTask (ptr< Object > context) |
Initializes terrainInfos and creates the actual task that will draw plants. | |
Protected Member Functions | |
DrawPlantsTask () | |
Creates a new DrawPlantsTask. | |
void | init (const string &terrain, ptr< Plants > plants) |
Initializes the field of a DrawPlantsTask. | |
Protected Attributes | |
ptr< Plants > | plants |
Plant models and amplification parameters. | |
Private Attributes | |
string | terrain |
Name of the terrain to be amplified. |
TODO.
proland::DrawPlantsTask::DrawPlantsTask | ( | const string & | terrain, | |
ptr< Plants > | plants | |||
) |
Creates a new DrawPlantsTask.
terrain | used to determine which subNodes are pointing to the Terrain SceneNodes. | |
plants | the Plants that contains the patterns & models used for our vegetation. |
virtual proland::DrawPlantsTask::~DrawPlantsTask | ( | ) | [virtual] |
Deletes a DrawPlantsTask.
proland::DrawPlantsTask::DrawPlantsTask | ( | ) | [protected] |
Creates a new DrawPlantsTask.
virtual ptr<Task> proland::DrawPlantsTask::getTask | ( | ptr< Object > | context | ) | [virtual] |
Initializes terrainInfos and creates the actual task that will draw plants.
void proland::DrawPlantsTask::init | ( | const string & | terrain, | |
ptr< Plants > | plants | |||
) | [protected] |
Initializes the field of a DrawPlantsTask.
See DrawPlantsTask().
ptr<Plants> proland::DrawPlantsTask::plants [protected] |
Plant models and amplification parameters.
string proland::DrawPlantsTask::terrain [private] |
Name of the terrain to be amplified.