VR-Forces 5.0.1 Developer's Guide
 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. It will use the local weather manager's weather update rules to finalize the model definition and color needed.

Public Member Functions

 DtWeatherUpdater (makVrv::DtDe &de, makVrv::DtUniqueID id)
 
virtual ~DtWeatherUpdater ()
 
virtual void setEnvironmentalConditions (const makArchives::DtEnvironmentRecord &)
 
virtual void setSceneObject (makVrv::DtSceneObject *)
 
virtual void setWeatherIcon (makVrv::DtProjectedWidgetModel *)
 
virtual void setColor (float r, float g, float b, float a)
 
virtual void setSelected (bool b)
 
virtual void setWeatherAreaFilled (bool)
 
virtual void resetFill ()
 
virtual void updateLabelVisibilityState ()
 
virtual void setScale (float)
 
virtual void updateGeometricCenter (const DtVector &newCenter)
 
virtual void updateGeometricCenter ()
 

Protected Member Functions

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

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::signals2::connection mySceneObjectConnection
 
boost::signals2::connection myTickConnection
 

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::signals2::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.

boost::signals2::connection makVrf::DtWeatherUpdater::myTickConnection
protected

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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)