SO3Engine
Public Member Functions | Protected Member Functions | List of all members
SO3::SSun Class Reference

#include <SO3Sun.h>

Inheritance diagram for SO3::SSun:
SO3::SSkyLight SO3::SData

Public Member Functions

 SSun (SEnvironment *parent, const std::string &sunName)
 
 ~SSun ()
 
- Public Member Functions inherited from SO3::SSkyLight
 SSkyLight (SEnvironment *parent, const std::string &skyLightName, const Ogre::ColourValue &defaultBaseColour)
 
virtual ~SSkyLight ()
 
SEnvironmentGetEnvironment ()
 
void Update ()
 
const Ogre::Vector3 GetLightDirection () const
 
void SetLightDirection (const Ogre::Vector3 &direction)
 
const Ogre::ColourValue GetLightColour (const float &level=1.0f) const
 
void SetLightColour (const Ogre::ColourValue &newColour)
 
bool GetEnable ()
 
void SetEnable (const bool &enable)
 
bool GetCastShadowEnable ()
 
void SetCastShadowEnable (const bool &enable)
 
void UpdateShadowFarDistance (const float &distance)
 
void UpdateShadowFarClipDistance (const float &distance)
 
Ogre::Light * GetOgreLight ()
 
- Public Member Functions inherited from SO3::SData
 SData (const std::string &dataName)
 
virtual ~SData ()
 
std::string GetName () const
 
SUserObjectBindingsGetUserObjectBindings ()
 
const SUserObjectBindingsGetUserObjectBindings () const
 

Protected Member Functions

virtual const Ogre::Vector3 ComputeDirectionImpl (const double &julianDay)
 
- Protected Member Functions inherited from SO3::SSkyLight
const Ogre::Vector3 MakeDirection (const Ogre::Degree &azimuth, const Ogre::Degree &altitude)
 

Additional Inherited Members

- Protected Attributes inherited from SO3::SSkyLight
SEnvironmentparentEnvironment
 
Ogre::SceneManager * ogreSceneManager
 
Ogre::Light * ogreSkyLight
 
Ogre::SceneNode * ogreSkyLightSceneNode
 
double lastJulDay
 
Ogre::Degree lastLatitude
 
Ogre::Degree lastLongitude
 
Ogre::ColourValue baseColour
 
SColourGradient lightColourGradient
 
bool forceUpdate
 
- Protected Attributes inherited from SO3::SData
std::string name
 

Detailed Description

Definition at line 40 of file SO3Sun.h.

Constructor & Destructor Documentation

◆ SSun()

SO3::SSun::SSun ( SEnvironment parent,
const std::string &  sunName 
)

Definition at line 38 of file SO3Sun.cpp.

◆ ~SSun()

SO3::SSun::~SSun ( )

Destructor

Definition at line 48 of file SO3Sun.cpp.

Member Function Documentation

◆ ComputeDirectionImpl()

const Ogre::Vector3 SO3::SSun::ComputeDirectionImpl ( const double &  julianDay)
protectedvirtual

Implements SO3::SSkyLight.

Definition at line 52 of file SO3Sun.cpp.


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