Caelum  0.6.3
Public Types | Public Member Functions | List of all members
Caelum::CloudSystem Class Reference

A cloud system is implemented by a number of cloud layers. More...

#include <CloudSystem.h>

Public Types

typedef std::vector< FlatCloudLayer * > LayerVector
 

Public Member Functions

 CloudSystem (Ogre::SceneManager *sceneMgr, Ogre::SceneNode *cloudRoot)
 
LayerVector & getLayerVector ()
 Direct access to the layer vector.
 
void clearLayers ()
 Clears all cloud layers.
 
FlatCloudLayercreateLayer ()
 Create a new cloud layer with default settings at height 0. More...
 
FlatCloudLayercreateLayerAtHeight (Ogre::Real height)
 Create a new cloud layer with default settings at a certain height. More...
 
void addLayer (FlatCloudLayer *layer)
 Add new layer. Takes ownership of the layer.
 
FlatCloudLayergetLayer (int index)
 Get a pointer to a certain layer.
 
int getLayerCount ()
 Get the total number of layers.
 
void update (Ogre::Real timePassed, const Ogre::Vector3 &sunDirection, const Ogre::ColourValue &sunLightColour, const Ogre::ColourValue &fogColour, const Ogre::ColourValue &sunSphereColour)
 Update function called every frame from high above.
 
virtual void forceLayerQueryFlags (uint flags)
 Similar to. More...
 
virtual void forceLayerVisibilityFlags (uint flags)
 Similar to. More...
 

Detailed Description

A cloud system is implemented by a number of cloud layers.

Different cloud layers could implement different kinds of clouds (cirrus, stratus).

Member Function Documentation

FlatCloudLayer* Caelum::CloudSystem::createLayer ( )

Create a new cloud layer with default settings at height 0.

Returns
pointer to the new layer.
FlatCloudLayer* Caelum::CloudSystem::createLayerAtHeight ( Ogre::Real  height)

Create a new cloud layer with default settings at a certain height.

Returns
pointer to the new layer.
virtual void Caelum::CloudSystem::forceLayerQueryFlags ( uint  flags)
virtual
virtual void Caelum::CloudSystem::forceLayerVisibilityFlags ( uint  flags)
virtual

The documentation for this class was generated from the following file: