paysages3d/src/definition/VegetationDefinition.h
Michaël Lemaire c5950f810f Merge branch 'master' into vegetation
Conflicts:
	src/definition/Scenery.cpp
	src/interface/commandline/tests.cpp
2015-12-10 19:48:42 +01:00

37 lines
873 B
C++

#ifndef VEGETATIONDEFINITION_H
#define VEGETATIONDEFINITION_H
#include "definition_global.h"
#include "Layers.h"
namespace paysages {
namespace definition {
/**
* Definition of all vegetation layers in the scenery.
*/
class DEFINITIONSHARED_EXPORT VegetationDefinition : public Layers {
public:
VegetationDefinition(DefinitionNode *parent);
/**
* Get a vegetation layer by its position.
*/
inline VegetationLayerDefinition *getVegetationLayer(int position) const {
return (VegetationLayerDefinition *)getLayer(position);
}
/**
* Get the max height of all layers assembled.
*/
double getMaxHeight() const;
typedef enum { VEGETATION_PRESET_TEMPERATE } VegetationPreset;
void applyPreset(VegetationPreset preset, RandomGenerator &random = RandomGeneratorDefault);
};
}
}
#endif // VEGETATIONDEFINITION_H