#include <cloudplane.h>

Public Member Functions | |
| CloudPlane (int octaves, float cutoff, int frequency, float amp, float persistence, float density, int texSize, float height, const std::string &name="CloudPlane", const std::string &textureFilePath="") | |
| Constructor: These params initialize the noise function for a detailed description see dtUtil::Fractal. | |
| CloudPlane (float height, const std::string &name, const std::string &textureFilePath) | |
| virtual void | Repaint (const osg::Vec3 &skyColor, const osg::Vec3 &fogColor, double sunAngle, double sunAzimuth, double visibility) |
| Must override this to supply the repainting routine. | |
| float | GetHeight () |
| |
| bool | SaveTexture (const std::string &textureFilePath) |
| Save generated texture to file. | |
| bool | LoadTexture (const std::string &textureFilePath) |
| Load generated texture from file. | |
| void | SetColor (const osg::Vec4 &) |
| Sets the color of the Cloud Plane. | |
| osg::Vec4 | GetColor () const |
| Returns the color of the clouds. | |
| void | SetWind (float x, float y) |
| osg::Vec2 | GetWind () const |
Protected Member Functions | |
| virtual | ~CloudPlane () |
| CloudPlane::CloudPlane | ( | int | octaves, | |
| float | cutoff, | |||
| int | frequency, | |||
| float | amp, | |||
| float | persistence, | |||
| float | density, | |||
| int | texSize, | |||
| float | height, | |||
| const std::string & | name = "CloudPlane", |
|||
| const std::string & | textureFilePath = "" | |||
| ) |
Constructor: These params initialize the noise function for a detailed description see dtUtil::Fractal.
| CloudPlane::CloudPlane | ( | float | height, | |
| const std::string & | name, | |||
| const std::string & | textureFilePath | |||
| ) |
| CloudPlane::~CloudPlane | ( | ) | [protected, virtual] |
| void CloudPlane::Repaint | ( | const osg::Vec3 & | skyColor, | |
| const osg::Vec3 & | fogColor, | |||
| double | sunAngle, | |||
| double | sunAzimuth, | |||
| double | visibility | |||
| ) | [virtual] |
| float dtCore::CloudPlane::GetHeight | ( | ) | [inline] |
| bool CloudPlane::SaveTexture | ( | const std::string & | textureFilePath | ) |
Save generated texture to file.
| bool CloudPlane::LoadTexture | ( | const std::string & | textureFilePath | ) |
Load generated texture from file.
| void CloudPlane::SetColor | ( | const osg::Vec4 & | newColor | ) |
Sets the color of the Cloud Plane.
| osg::Vec4 CloudPlane::GetColor | ( | ) | const |
Returns the color of the clouds.
| void CloudPlane::SetWind | ( | float | x, | |
| float | y | |||
| ) |
| osg::Vec2 dtCore::CloudPlane::GetWind | ( | ) | const [inline] |