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 39 of file Sun.h.


Constructor & Destructor Documentation

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

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

Destructor.

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

Definition at line 44 of file Sun.cpp.

References Ogre::Entity::_getManager(), Ogre::SceneNode::detachObject(), Ogre::MaterialManager::getSingletonPtr(), and Caelum::BaseSkyLight::mNode.


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 55 of file Sun.cpp.

References Caelum::BaseSkyLight::setBodyColour().


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

Generated on Mon Jan 19 09:15:32 2009 for Caelum by  doxygen 1.5.6