#include <lcctype.h>
Public Member Functions | ||||
| LCCType (unsigned int index, const std::string &name) | ||||
| Constructor. | ||||
| ~LCCType () | ||||
| Destructor. | ||||
| int | GetIndex () const | |||
| This returns the index of the lcc type. | ||||
| void | SetRGB (unsigned char red, unsigned char green, unsigned char blue) | |||
| Sets the RGB color value of this type. | ||||
| void | GetRGB (unsigned char &red, unsigned char &green, unsigned char &blue) | |||
| Gets the RGB color identifier for this type. | ||||
| const std::string & | GetLCCName () const | |||
| Gets the LCC name of this type. | ||||
| void | SetSlope (float min, float max, float sharpness) | |||
| ||||
| float | GetMaxSlope () const | |||
| ||||
| float | GetMinSlope () const | |||
| ||||
| void | SetElevation (float min, float max, float sharpness) | |||
| ||||
| float | GetMaxElevation () const | |||
| ||||
| float | GetMinElevation () const | |||
| ||||
| void | SetRelativeElevation (float min, float max, float sharpness) | |||
| ||||
| void | SetAspect (int aspect) | |||
| ||||
| float | GetAspect () const | |||
| ||||
| void | AddModel (const std::string &name, float scale=1.0) | |||
| This adds a model to the list of available models for this vegetation type. | ||||
| void | RemoveModel (const std::string &name) | |||
| Removes the LCC model from this LCC type's list of models. | ||||
| LCCModel * | GetModel (unsigned int index) | |||
| Retrives the model at the given index. | ||||
| LCCModel * | GetModel (const std::string &name) | |||
| Looks up an LCC model on this type by name. | ||||
| unsigned int | GetNumberOfModels () const | |||
| Gets the number of models registered under this LCC type. | ||||
| void | ClearModels () | |||
| Removes all the LCC models from this LCC type. | ||||
Classes | ||||
| struct | LCCModel | |||
| Describes an LCC's geometric model info. More... | ||||
| dtTerrain::LCCType::LCCType | ( | unsigned int | index, | |
| const std::string & | name | |||
| ) |
Constructor.
| dtTerrain::LCCType::~LCCType | ( | ) | [inline] |
Destructor.
| int dtTerrain::LCCType::GetIndex | ( | ) | const [inline] |
This returns the index of the lcc type.
| void dtTerrain::LCCType::SetRGB | ( | unsigned char | red, | |
| unsigned char | green, | |||
| unsigned char | blue | |||
| ) | [inline] |
Sets the RGB color value of this type.
The color value maps the the color defined by the land classification cover image map.
| void dtTerrain::LCCType::GetRGB | ( | unsigned char & | red, | |
| unsigned char & | green, | |||
| unsigned char & | blue | |||
| ) | [inline] |
Gets the RGB color identifier for this type.
| const std::string& dtTerrain::LCCType::GetLCCName | ( | ) | const [inline] |
Gets the LCC name of this type.
| void dtTerrain::LCCType::SetSlope | ( | float | min, | |
| float | max, | |||
| float | sharpness | |||
| ) | [inline] |
| minimum | slope |
| maximum | slope | |
| slope | sharpness |
| float dtTerrain::LCCType::GetMaxSlope | ( | ) | const [inline] |
| float dtTerrain::LCCType::GetMinSlope | ( | ) | const [inline] |
| void dtTerrain::LCCType::SetElevation | ( | float | min, | |
| float | max, | |||
| float | sharpness | |||
| ) | [inline] |
| minimum | elevation |
| maximum | elevation | |
| elevation | sharpness |
| float dtTerrain::LCCType::GetMaxElevation | ( | ) | const [inline] |
| float dtTerrain::LCCType::GetMinElevation | ( | ) | const [inline] |
| void dtTerrain::LCCType::SetRelativeElevation | ( | float | min, | |
| float | max, | |||
| float | sharpness | |||
| ) | [inline] |
| minimum | elevation |
| maximum | elevation | |
| relative | elevation sharpness |
| void dtTerrain::LCCType::SetAspect | ( | int | aspect | ) | [inline] |
| aspect |
| float dtTerrain::LCCType::GetAspect | ( | ) | const [inline] |
| void dtTerrain::LCCType::AddModel | ( | const std::string & | name, | |
| float | scale = 1.0 | |||
| ) |
This adds a model to the list of available models for this vegetation type.
When placing vegetation of this LCC type, a model is randomly chosen from the model list.
| name | File name of the model. | |
| scale | Uniform scaling factor for this model. |
| void dtTerrain::LCCType::RemoveModel | ( | const std::string & | name | ) |
Removes the LCC model from this LCC type's list of models.
| The | name of the model. If this name is not found in the list of models, this method does nothing. |
| LCCType::LCCModel * dtTerrain::LCCType::GetModel | ( | unsigned int | index | ) |
Retrives the model at the given index.
| index | An index into the list of models. |
| LCCType::LCCModel * dtTerrain::LCCType::GetModel | ( | const std::string & | name | ) |
Looks up an LCC model on this type by name.
| name | The name of the LCC model to retrieve. |
| unsigned int dtTerrain::LCCType::GetNumberOfModels | ( | ) | const [inline] |
Gets the number of models registered under this LCC type.
| void dtTerrain::LCCType::ClearModels | ( | ) | [inline] |
Removes all the LCC models from this LCC type.