#include <DataManager.h>
Volumetric textures enumeration.
Enumerator |
---|
VOL_TEX0 |
|
VOL_TEX1 |
|
SkyX::VClouds::DataManager::DataManager |
( |
VClouds * |
vc | ) |
|
SkyX::VClouds::DataManager::~DataManager |
( |
| ) |
|
const Ogre::Real SkyX::VClouds::DataManager::_getInterpolation |
( |
| ) |
const |
|
inline |
Get current interpolation factor.
- Returns
- Interpolation factor
void SkyX::VClouds::DataManager::addEllipsoid |
( |
Ellipsoid * |
e, |
|
|
const bool & |
UpdateProbabilities = true |
|
) |
| |
Add ellipsoid: clouds are modelled as ellipsoids in our simulation approach, so.
. different kind of clouds can be modelled with ellipsoids compositions.
- Parameters
-
e | Ellipsoid |
UpdateProbabilities | Update probabilities? |
void SkyX::VClouds::DataManager::create |
( |
const int & |
nx, |
|
|
const int & |
ny, |
|
|
const int & |
nz |
|
) |
| |
Create.
- Parameters
-
nx | X complexity |
ny | Y complexity |
nz | Z complexity |
void SkyX::VClouds::DataManager::forceToUpdateData |
( |
| ) |
|
Forces the data manager to calculate the next step right now.
const Ogre::Real& SkyX::VClouds::DataManager::getUpdateTime |
( |
| ) |
const |
|
inline |
Get update time.
- Returns
- Update time
const bool& SkyX::VClouds::DataManager::isCreated |
( |
| ) |
const |
|
inline |
Has been create(...) already called?
- Returns
- true if created() have been already called
References SkyX::mCreated.
void SkyX::VClouds::DataManager::remove |
( |
| ) |
|
void SkyX::VClouds::DataManager::setUpdateTime |
( |
const float & |
UpdateTime | ) |
|
|
inline |
Set update time.
- Parameters
-
UpdateTime | Time elapsed between data calculations, a little freeze could be experimented during these calculations on old CPU's |
void SkyX::VClouds::DataManager::setWheater |
( |
const float & |
Humidity, |
|
|
const float & |
AverageCloudsSize, |
|
|
const bool & |
delayedResponse = true |
|
) |
| |
Set wheater parameters Use this funtion to update the cloud field parameters, you'll get a smart and smooth transition from your old setting to your new ones.
- Parameters
-
Humidity | Humidity, in other words: the percentage of clouds in [0,1] range. |
AverageCloudsSize | Average clouds size, for example: if previous wheater clouds size parameter was very different from new one(i.e: more little) only the old biggest clouds are going to be keept and the little ones are going to be replaced |
delayedResponse | false to change wheather conditions over several updates, true to change it at the moment |
void SkyX::VClouds::DataManager::update |
( |
const Ogre::Real & |
timeSinceLastFrame | ) |
|
Update.
- Parameters
-
timeSinceLastFrame | Time elapsed since last frame |
The documentation for this class was generated from the following file: