SO3Engine
|
#include <SO3Environment.h>
Public Types | |
typedef std::set< SViewPort * > | ViewportList |
Public Member Functions | |
SEnvironment (SScene *parent, const std::string &environmentName) | |
~SEnvironment () | |
SScene * | GetScene () |
void | RegisterViewport (SViewPort *targetViewport) |
void | UnregisterViewport (SViewPort *targetViewport) |
void | UnregisterCamera (Ogre::Camera *cam) |
bool | IsRegisteredViewport (SViewPort *targetViewport) |
bool | IsRegisteredViewport (Ogre::Viewport *targetViewport) |
void | UnregisterAllViewports () |
ViewportList | GetRegisteredViewports () |
SUniversalClock * | GetUniversalClock () |
SWater * | GetWater () |
SSky * | GetSky () |
SSun * | GetSun () |
SMoon * | GetMoon () |
bool | GetEnable () |
void | SetEnable (const bool &enableEnvironment) |
bool | GetPaused () |
void | SetPaused (const bool &pauseSimulation) |
bool | GetWaterEnable () |
void | SetWaterEnable (const bool &enableWater) |
bool | GetSkyEnable () |
void | SetSkyEnable (const bool &enableSky) |
float | GetWindSpeed () |
void | SetWindSpeed (const float &newWindSpeed) |
Ogre::Vector2 | GetWindDirection () |
void | SetWindDirection (const Ogre::Vector2 &newWindDirection) |
float | GetHumidity () |
void | SetHumidity (const float &newHumidity) |
float | GetTimeSpeedFactor () |
void | SetTimeSpeedFactor (const float &newTimeSpeedFactor) |
SDateTime | GetDateTime () |
void | SetDateTime (const SDateTime &newDateTime) |
Ogre::Degree | GetLongitude () |
void | SetLongitude (const Ogre::Degree &newLongitude) |
Ogre::Degree | GetLatitude () |
void | SetLatitude (const Ogre::Degree &newLatitude) |
void | _NotifyEnvironmentComponentRegisterRenderTarget (Ogre::Viewport *targetViewport) |
void | _NotifyEnvironmentComponentUnRegisterRenderTarget (Ogre::Viewport *targetViewport) |
void | UpdateCamera (SViewPort *viewport) |
Public Member Functions inherited from SO3::SData | |
SData (const std::string &dataName) | |
virtual | ~SData () |
std::string | GetName () const |
SUserObjectBindings & | GetUserObjectBindings () |
const SUserObjectBindings & | GetUserObjectBindings () const |
Protected Member Functions | |
virtual bool | frameStarted (const Ogre::FrameEvent &evt) |
Additional Inherited Members | |
Protected Attributes inherited from SO3::SData | |
std::string | name |
Definition at line 44 of file SO3Environment.h.
typedef std::set<SViewPort*> SO3::SEnvironment::ViewportList |
Definition at line 49 of file SO3Environment.h.
SO3::SEnvironment::SEnvironment | ( | SScene * | parent, |
const std::string & | environmentName | ||
) |
Definition at line 44 of file SO3Environment.cpp.
SO3::SEnvironment::~SEnvironment | ( | ) |
Destructor
Definition at line 110 of file SO3Environment.cpp.
void SO3::SEnvironment::_NotifyEnvironmentComponentRegisterRenderTarget | ( | Ogre::Viewport * | targetViewport | ) |
Internal hack to be sure that the SEnvironement RenderTargetListener is AFTER SkyX/Hydrax RenderTargetListener in the RenderTarget::mListener list.
Definition at line 447 of file SO3Environment.cpp.
void SO3::SEnvironment::_NotifyEnvironmentComponentUnRegisterRenderTarget | ( | Ogre::Viewport * | targetViewport | ) |
Definition at line 460 of file SO3Environment.cpp.
|
protectedvirtual |
Definition at line 418 of file SO3Environment.cpp.
SDateTime SO3::SEnvironment::GetDateTime | ( | ) |
Definition at line 379 of file SO3Environment.cpp.
bool SO3::SEnvironment::GetEnable | ( | ) |
Definition at line 262 of file SO3Environment.cpp.
float SO3::SEnvironment::GetHumidity | ( | ) |
Definition at line 340 of file SO3Environment.cpp.
Ogre::Degree SO3::SEnvironment::GetLatitude | ( | ) |
Definition at line 408 of file SO3Environment.cpp.
Ogre::Degree SO3::SEnvironment::GetLongitude | ( | ) |
Definition at line 398 of file SO3Environment.cpp.
SMoon * SO3::SEnvironment::GetMoon | ( | ) |
Definition at line 257 of file SO3Environment.cpp.
bool SO3::SEnvironment::GetPaused | ( | ) |
Definition at line 369 of file SO3Environment.cpp.
SEnvironment::ViewportList SO3::SEnvironment::GetRegisteredViewports | ( | ) |
Definition at line 232 of file SO3Environment.cpp.
SScene * SO3::SEnvironment::GetScene | ( | ) |
Definition at line 123 of file SO3Environment.cpp.
SSky * SO3::SEnvironment::GetSky | ( | ) |
Definition at line 247 of file SO3Environment.cpp.
bool SO3::SEnvironment::GetSkyEnable | ( | ) |
Definition at line 307 of file SO3Environment.cpp.
SSun * SO3::SEnvironment::GetSun | ( | ) |
Definition at line 252 of file SO3Environment.cpp.
float SO3::SEnvironment::GetTimeSpeedFactor | ( | ) |
Definition at line 355 of file SO3Environment.cpp.
SUniversalClock * SO3::SEnvironment::GetUniversalClock | ( | ) |
Definition at line 237 of file SO3Environment.cpp.
SWater * SO3::SEnvironment::GetWater | ( | ) |
Definition at line 242 of file SO3Environment.cpp.
bool SO3::SEnvironment::GetWaterEnable | ( | ) |
Definition at line 294 of file SO3Environment.cpp.
Ogre::Vector2 SO3::SEnvironment::GetWindDirection | ( | ) |
Definition at line 330 of file SO3Environment.cpp.
float SO3::SEnvironment::GetWindSpeed | ( | ) |
Definition at line 320 of file SO3Environment.cpp.
bool SO3::SEnvironment::IsRegisteredViewport | ( | Ogre::Viewport * | targetViewport | ) |
Definition at line 208 of file SO3Environment.cpp.
bool SO3::SEnvironment::IsRegisteredViewport | ( | SViewPort * | targetViewport | ) |
Definition at line 199 of file SO3Environment.cpp.
void SO3::SEnvironment::RegisterViewport | ( | SViewPort * | targetViewport | ) |
Definition at line 128 of file SO3Environment.cpp.
void SO3::SEnvironment::SetDateTime | ( | const SDateTime & | newDateTime | ) |
Definition at line 391 of file SO3Environment.cpp.
void SO3::SEnvironment::SetEnable | ( | const bool & | enableEnvironment | ) |
Definition at line 267 of file SO3Environment.cpp.
void SO3::SEnvironment::SetHumidity | ( | const float & | newHumidity | ) |
Definition at line 345 of file SO3Environment.cpp.
void SO3::SEnvironment::SetLatitude | ( | const Ogre::Degree & | newLatitude | ) |
Definition at line 413 of file SO3Environment.cpp.
void SO3::SEnvironment::SetLongitude | ( | const Ogre::Degree & | newLongitude | ) |
Definition at line 403 of file SO3Environment.cpp.
void SO3::SEnvironment::SetPaused | ( | const bool & | pauseSimulation | ) |
Definition at line 374 of file SO3Environment.cpp.
void SO3::SEnvironment::SetSkyEnable | ( | const bool & | enableSky | ) |
Definition at line 312 of file SO3Environment.cpp.
void SO3::SEnvironment::SetTimeSpeedFactor | ( | const float & | newTimeSpeedFactor | ) |
Definition at line 363 of file SO3Environment.cpp.
void SO3::SEnvironment::SetWaterEnable | ( | const bool & | enableWater | ) |
Definition at line 299 of file SO3Environment.cpp.
void SO3::SEnvironment::SetWindDirection | ( | const Ogre::Vector2 & | newWindDirection | ) |
Definition at line 335 of file SO3Environment.cpp.
void SO3::SEnvironment::SetWindSpeed | ( | const float & | newWindSpeed | ) |
Definition at line 325 of file SO3Environment.cpp.
void SO3::SEnvironment::UnregisterAllViewports | ( | ) |
Definition at line 221 of file SO3Environment.cpp.
void SO3::SEnvironment::UnregisterCamera | ( | Ogre::Camera * | cam | ) |
Definition at line 190 of file SO3Environment.cpp.
void SO3::SEnvironment::UnregisterViewport | ( | SViewPort * | targetViewport | ) |
Definition at line 161 of file SO3Environment.cpp.
void SO3::SEnvironment::UpdateCamera | ( | SViewPort * | viewport | ) |
Definition at line 472 of file SO3Environment.cpp.