Caelum::SphereSun Class Reference

Class representing the sun as sphere with emissive color on it. More...

#include <Sun.h>

Inheritance diagram for Caelum::SphereSun:

Caelum::BaseSkyLight Caelum::CameraBoundElement

List of all members.

Public Member Functions

 SphereSun (Ogre::SceneManager *sceneMgr, Ogre::SceneNode *caelumRootNode, const Ogre::String &meshName="sphere.mesh")
 Constructor.
virtual ~SphereSun ()
 Destructor.
void setBodyColour (const Ogre::ColourValue &colour)
 Sets the sun sphere colour.
virtual void notifyCameraChanged (Ogre::Camera *cam)
 Handle camera change.
virtual void setQueryFlags (uint flags)
virtual uint getQueryFlags () const
virtual void setVisibilityFlags (uint flags)
virtual uint getVisibilityFlags () const

Static Public Attributes

static const Ogre::String SUN_MATERIAL_NAME = "CaelumSphereSun"
 Name of the sun material.


Detailed Description

Class representing the sun as sphere with emissive color on it.

Definition at line 40 of file Sun.h.


Constructor & Destructor Documentation

Caelum::SphereSun::SphereSun ( Ogre::SceneManager *  sceneMgr,
Ogre::SceneNode *  caelumRootNode,
const Ogre::String &  meshName = "sphere.mesh" 
)

Constructor.

Parameters:
sceneMgr The scene manager where the lights will be created.

Definition at line 30 of file Sun.cpp.

References Caelum::InternalUtilities::checkLoadMaterialClone(), and Caelum::InternalUtilities::pointerToString().

Caelum::SphereSun::~SphereSun (  )  [virtual]

Destructor.

Note:
If a sun position model is in use, it will be deleted.

Definition at line 48 of file Sun.cpp.


Member Function Documentation

void Caelum::SphereSun::setBodyColour ( const Ogre::ColourValue &  colour  )  [virtual]

Sets the sun sphere colour.

Parameters:
colour The colour used to draw the sun

Reimplemented from Caelum::BaseSkyLight.

Definition at line 50 of file Sun.cpp.


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

Generated on Sun Aug 9 10:24:22 2009 for Caelum by  doxygen 1.5.9