VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrf::DtWeatherUpdater Class Reference

This class will change the look of a weather area based on supplied environment conditions. More...

Public Member Functions

 DtWeatherUpdater (makVrv::DtDe &de, makVrv::DtUniqueID id)
 CTOR.
virtual ~DtWeatherUpdater ()
 DTOR.
virtual void setEnvironmentalConditions (const makArchives::DtEnvironmentRecord &)
 Sets the environmental record and updates if needed.
virtual void setSceneObject (makVrv::DtSceneObject *)
 Sets the scene object to be used for this object to set group for.
virtual void setWeatherIcon (makVrv::DtWidget *)
 Sets the weather icon.
virtual void setColor (float r, float g, float b, float a)
virtual void setSelected (bool b)
 If selected is false resets to last color set with weather modifications, else disables weather color modifications until unselected.

Protected Member Functions

virtual void updateWeatherLook (bool colorChange=false)
virtual void weatherLookRulesChanged ()
virtual void slot_sceneObjectToBeDeleted (const makVrv::DtUniqueID &id)

Protected Attributes

makVrv::DtDemyDe
makVrv::DtUniqueID myUniqueID
makVrv::DtSceneObjectmySceneObject
makVrv::DtWidgetmyIcon
float myR
float myG
float myB
float myA
makVrv::DtOsgOverlayPolygonModelmyWeatherArea
bool mySelected
bool myInitialized
makArchives::DtEnvironmentRecord myEnvironmentRecord

Detailed Description

This class will change the look of a weather area based on supplied environment conditions.

It will use the local weather manager's weather update rules to finalize the model definition and color needed

Constructor & Destructor Documentation

makVrf::DtWeatherUpdater::DtWeatherUpdater ( makVrv::DtDe de,
makVrv::DtUniqueID  id 
)

CTOR.

virtual makVrf::DtWeatherUpdater::~DtWeatherUpdater ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrf::DtWeatherUpdater::setEnvironmentalConditions ( const makArchives::DtEnvironmentRecord )
virtual

Sets the environmental record and updates if needed.

virtual void makVrf::DtWeatherUpdater::setSceneObject ( makVrv::DtSceneObject )
virtual

Sets the scene object to be used for this object to set group for.

virtual void makVrf::DtWeatherUpdater::setWeatherIcon ( makVrv::DtWidget )
virtual

Sets the weather icon.

virtual void makVrf::DtWeatherUpdater::setColor ( float  r,
float  g,
float  b,
float  a 
)
virtual
virtual void makVrf::DtWeatherUpdater::setSelected ( bool  b)
virtual

If selected is false resets to last color set with weather modifications, else disables weather color modifications until unselected.

virtual void makVrf::DtWeatherUpdater::updateWeatherLook ( bool  colorChange = false)
protectedvirtual
virtual void makVrf::DtWeatherUpdater::weatherLookRulesChanged ( )
protectedvirtual
virtual void makVrf::DtWeatherUpdater::slot_sceneObjectToBeDeleted ( const makVrv::DtUniqueID id)
protectedvirtual

Member Data Documentation

makVrv::DtDe& makVrf::DtWeatherUpdater::myDe
protected
makVrv::DtUniqueID makVrf::DtWeatherUpdater::myUniqueID
protected
makVrv::DtSceneObject* makVrf::DtWeatherUpdater::mySceneObject
protected
makVrv::DtWidget* makVrf::DtWeatherUpdater::myIcon
protected
float makVrf::DtWeatherUpdater::myR
protected
float makVrf::DtWeatherUpdater::myG
protected
float makVrf::DtWeatherUpdater::myB
protected
float makVrf::DtWeatherUpdater::myA
protected
makVrv::DtOsgOverlayPolygonModel* makVrf::DtWeatherUpdater::myWeatherArea
protected
bool makVrf::DtWeatherUpdater::mySelected
protected
bool makVrf::DtWeatherUpdater::myInitialized
protected
makArchives::DtEnvironmentRecord makVrf::DtWeatherUpdater::myEnvironmentRecord
protected

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)