VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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::DtProjectedWidgetModel *)
 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.
virtual void setWeatherAreaFilled (bool)
 Sets whether or not to fill this weather area.
virtual void resetFill ()
 If need be, reset the fill to the current fill desire.
virtual void updateLabelVisibilityState ()
virtual void setScale (float)
virtual void updateGeometricCenter (const DtVector &newCenter)
 Updates the center point of this object.
virtual void updateGeometricCenter ()
 Updates the center point of this object.

Protected Member Functions

virtual void updateWeatherLook (bool colorChange=false)
virtual void weatherLookRulesChanged ()
virtual void slot_sceneObjectToBeDeleted (const makVrv::DtUniqueID &id)
virtual void slot_applicationSettingsChanged ()
 See if fill rule has changed.
virtual void findWeatherLabel (bool)
virtual void update ()
 Called to see if geometric center should be updated.

Protected Attributes

makVrv::DtDemyDe
makVrv::DtUniqueID myUniqueID
makVrv::DtSceneObjectmySceneObject
makVrv::DtProjectedWidgetModelmyIcon
float myR
float myG
float myB
float myA
makVrv::DtOsgOverlayPolygonModelmyWeatherArea
makVrv::DtOsgOverlayEllipseArcModelmyWeatherEllipse
makVrv::DtProjectedWidgetModelmyWeatherLabels
makVrv::DtAttributeGroupWidgetmyWeatherAttributes
bool mySelected
bool myInitialized
makArchives::DtEnvironmentRecord myEnvironmentRecord
makVrv::DtSignalConnectionManager myConnections
bool myWeatherAreaFilled
float myScale
double myOriginX
double myOriginY
DtVector myLastCheckPoint
boost::signalslib::connection mySceneObjectConnection
 When the class is destructed, the scene object may or may not exist.

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::DtProjectedWidgetModel )
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::setWeatherAreaFilled ( bool  )
virtual

Sets whether or not to fill this weather area.

virtual void makVrf::DtWeatherUpdater::resetFill ( )
virtual

If need be, reset the fill to the current fill desire.

virtual void makVrf::DtWeatherUpdater::updateLabelVisibilityState ( )
virtual
virtual void makVrf::DtWeatherUpdater::setScale ( float  )
virtual
virtual void makVrf::DtWeatherUpdater::updateGeometricCenter ( const DtVector newCenter)
virtual

Updates the center point of this object.

virtual void makVrf::DtWeatherUpdater::updateGeometricCenter ( )
virtual

Updates the center point of this object.

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
virtual void makVrf::DtWeatherUpdater::slot_applicationSettingsChanged ( )
protectedvirtual

See if fill rule has changed.

virtual void makVrf::DtWeatherUpdater::findWeatherLabel ( bool  )
protectedvirtual
virtual void makVrf::DtWeatherUpdater::update ( )
protectedvirtual

Called to see if geometric center should be updated.

Member Data Documentation

makVrv::DtDe& makVrf::DtWeatherUpdater::myDe
protected
makVrv::DtUniqueID makVrf::DtWeatherUpdater::myUniqueID
protected
makVrv::DtSceneObject* makVrf::DtWeatherUpdater::mySceneObject
protected
makVrv::DtProjectedWidgetModel* 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
makVrv::DtOsgOverlayEllipseArcModel* makVrf::DtWeatherUpdater::myWeatherEllipse
protected
makVrv::DtProjectedWidgetModel* makVrf::DtWeatherUpdater::myWeatherLabels
protected
makVrv::DtAttributeGroupWidget* makVrf::DtWeatherUpdater::myWeatherAttributes
protected
bool makVrf::DtWeatherUpdater::mySelected
protected
bool makVrf::DtWeatherUpdater::myInitialized
protected
makArchives::DtEnvironmentRecord makVrf::DtWeatherUpdater::myEnvironmentRecord
protected
makVrv::DtSignalConnectionManager makVrf::DtWeatherUpdater::myConnections
protected
bool makVrf::DtWeatherUpdater::myWeatherAreaFilled
protected
float makVrf::DtWeatherUpdater::myScale
protected
double makVrf::DtWeatherUpdater::myOriginX
protected
double makVrf::DtWeatherUpdater::myOriginY
protected
DtVector makVrf::DtWeatherUpdater::myLastCheckPoint
protected
boost::signalslib::connection makVrf::DtWeatherUpdater::mySceneObjectConnection
protected

When the class is destructed, the scene object may or may not exist.

Using a separate connection variable makes it possible to 'disconnect' even if the scene object has been deleted.


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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)