![]() |
VR-Forces 4.10 Class Documentation
|

Classes | |
| struct | GlobalScenarioCreationData |
Public Types | |
| typedef std::map < makVrv::DtElementID, makVrv::DtStateView < DtVrlinkSimulatedEnvironmentProcess > * > | WeatherObjects |
| typedef std::map < makVrv::DtUniqueID, GlobalScenarioCreationData > | GlobalWeatherObjects |
Public Member Functions | |
| DtLocalWeatherManager (makVrv::DtDe &) | |
| CTOR. More... | |
| virtual | ~DtLocalWeatherManager () |
| DTOR. More... | |
| virtual const WeatherObjects & | weatherObjects () const |
| virtual bool | hasEnvironment (const std::string &) const |
| Returns true if the environment exists. More... | |
| virtual void | setupCommand (DtChangeWeatherCommand &weatherCommand, const std::string &environment) const |
| Given an environment name retrieve the environment record and set the appropriate variables into the weather command. More... | |
| virtual void | setupCommand (DtChangeWeatherCommand &weatherCommand, const makArchives::DtEnvironmentRecord &environment) const |
| Given the environment record set the appropriate variables into the weather command. More... | |
| virtual void | setupRecord (makArchives::DtEnvironmentRecord &environment, const DtChangeWeatherCommand &weatherCommand) const |
| virtual void | setupCommand (DtChangeWeatherCommand &weatherCommand, const makVrv::DtStateView< DtVrlinkSimulatedWeatherState > *environment) const |
| Given the weather state record set the appropriate variables into the weather command. More... | |
| virtual void | setupRecord (makArchives::DtEnvironmentRecord &rec, const makVrv::DtStateView< DtVrlinkSimulatedWeatherState > *environment) const |
| virtual int | nextPriority () const |
| Returns the next lowest priority available. More... | |
| virtual void | setShowWeather (bool) |
| Sets whether or not to show weather. This will simply show/hide the Weather overlay layer. More... | |
| virtual bool | showWeather () const |
| virtual void | setWeatherAreaFilled (bool) |
| Sets whether or not weather areas are unfilled. More... | |
| virtual bool | weatherAreaFilled () const |
| virtual void | setUseDayNightIlluminationModel (bool) |
| Returns whether or not to use the day/night illumination model. More... | |
| virtual bool | useDayNightIlluminationModel () const |
| virtual void | increasePriorityOf (makVrv::DtElementID) |
| Increases the priority of the given weather area referenced by the element id. More... | |
| virtual void | decreasePriorityOf (makVrv::DtElementID) |
| Decreases the priority of the given weather area referenced by the element id. More... | |
| virtual void | bringWeatherToFront (makVrv::DtElementID) |
| Makes the specified weather object the highest priority, lowering the priority of all other weather items. More... | |
| virtual void | sendWeatherToBack (makVrv::DtElementID) |
| Makes the specified weather object the lowest priority, filling the gap left with lower priority items than the one that was moved. More... | |
| virtual void | changePriorityOf (makVrv::DtElementID, int) |
| Changes the priority of the given id to the specified priority, changing the priorities of all the other items to fill the gap left. More... | |
| const GlobalWeatherObjects & | globalWeatherObjects () const |
| bool | hasGlobalWeather () const |
| virtual void | setTimeBasedOnCreation (bool, int session=-1) |
| For the specified session (or all session) set the time to set to local based on the first simulation object creation. More... | |
| virtual int | addWeatherLookModificationOperation (const DtWeatherLookModificationOperation &) |
| Adds a new rule for modifying weather color. More... | |
| virtual void | removeWeatherLookModificationOperation (int) |
| Removes operation. More... | |
| virtual void | insertWeatherLookModificationOperation (int, const DtWeatherLookModificationOperation &) |
| Inserts an operation. More... | |
| virtual DtLocalWeatherLookOperationManager::WeatherLookModificationOperations | weatherLookModificationOperations () const |
| virtual void | modifyColorForWeather (const makArchives::DtEnvironmentRecord &, float &r, float &g, float &b, float &a) const |
| Given the environment record and some base colors, calls weather modification rules to change the color to a new one and returns in the same variables that were the base colors supplied. More... | |
| virtual std::string | weatherLookModelDefinitionFor (const makArchives::DtEnvironmentRecord &) const |
| Returns the model definition for the look of the weather icon. More... | |
| virtual void | setLocalWeatherLookManager (DtLocalWeatherLookOperationManager *) |
| Sets the look manager for this local weather manager. More... | |
| DtLocalWeatherLookOperationManager * | localWeatherLookManager () const |
| Accessor for the manager. More... | |
| virtual bool | isTimeFrozen () const |
| Returns true if the setting of time for the first entity placement can be done. False means it can. More... | |
| virtual bool | isTimeSetToLocalOnFirstPlacement () |
| Returns true if the first entity placement will set time to local time. More... | |
| virtual bool | isLocalWeatherArea (makVrv::DtUniqueID id) const |
| const makVrv::DtStateView < makVrv::DtVrlinkSimulatedBaseState > * | globalWeather () const |
| virtual bool | isWeatherObject (makVrv::DtUniqueID) const |
| virtual makVrv::DtUniqueID | weatherAreaNear (makVrv::DtUniqueID) const |
| Given the location of the particular object, return the area that contains the given location of the object given. More... | |
| virtual makVrv::DtUniqueID | weatherAreaNear (const DtVector &) const |
| Given the location of the particular object, return the area that contains the given location of the object given. More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Static Public Member Functions | |
| static DtLocalWeatherManager & | instance (makVrv::DtDe &de) |
| Returns DtLocalWeatherManager of the manager. More... | |
| static void | registerInstance (makVrv::DtDe &, DtLocalWeatherManager *) |
| Register a new manager instance. More... | |
Public Attributes | |
| boost::signals2::signal< void(makVrv::DtElementID)> | signal_removed |
| Signal sent when the local weather area is removed. More... | |
| boost::signals2::signal< void(const makVrv::DtStateView < DtVrlinkSimulatedEnvironmentProcess > *)> | signal_updated |
| Signal sent when the local weather area is updated. More... | |
| boost::signals2::signal< void(const makVrv::DtStateView < DtVrlinkSimulatedWeatherState > *)> | signal_weatherUpdated |
| boost::signals2::signal< void(makVrv::DtUniqueID, bool)> | signal_isTimeFrozenChanged |
| Signals sent when information about a particular global weather has updated. More... | |
| boost::signals2::signal< void(makVrv::DtUniqueID, bool)> | signal_isTimeSetToLocalOnFirstPlacementChanged |
| boost::signals2::signal< void()> | signal_weatherLookRulesChanged |
| Signal sent when the weather look rules have changed. More... | |
| boost::signals2::signal< void(makVrv::DtUniqueID)> | signal_globalWeatherDiscovered |
| Signal when global weather is discovered. More... | |
| boost::signals2::signal< void(makVrv::DtUniqueID)> | signal_globalWeatherRemoved |
| Signal when all global weathers are removed. More... | |
Protected Types | |
| typedef std::map < makVrv::DtUniqueID, makVrv::DtSignalConnectionManager * > | WeatherConnections |
| typedef std::map<makVrv::DtElementID, makVrv::DtStateView<DtVrlinkSimulatedEnvironmentProcess>*> makVrf::DtLocalWeatherManager::WeatherObjects |
| typedef std::map<makVrv::DtUniqueID, GlobalScenarioCreationData> makVrf::DtLocalWeatherManager::GlobalWeatherObjects |
|
protected |
| makVrf::DtLocalWeatherManager::DtLocalWeatherManager | ( | makVrv::DtDe & | ) |
CTOR.
|
virtual |
DTOR.
|
static |
Returns DtLocalWeatherManager of the manager.
|
static |
Register a new manager instance.
|
inlinevirtual |
|
virtual |
Returns true if the environment exists.
|
virtual |
Given an environment name retrieve the environment record and set the appropriate variables into the weather command.
|
virtual |
Given the environment record set the appropriate variables into the weather command.
|
virtual |
|
virtual |
Given the weather state record set the appropriate variables into the weather command.
|
virtual |
|
virtual |
Returns the next lowest priority available.
|
virtual |
Sets whether or not to show weather. This will simply show/hide the Weather overlay layer.
|
virtual |
|
virtual |
Sets whether or not weather areas are unfilled.
If they are unfilled then the label of the weather area will also b shown under the weather icon
|
virtual |
|
virtual |
Returns whether or not to use the day/night illumination model.
|
virtual |
|
virtual |
Increases the priority of the given weather area referenced by the element id.
If there is another weather area at the newly increased priority it will swap with this weather area. Note that the priority cannot be increased beyond 1
|
virtual |
Decreases the priority of the given weather area referenced by the element id.
If there is another weather area at the newly decreased priority it will swap with this weather area.
|
virtual |
Makes the specified weather object the highest priority, lowering the priority of all other weather items.
|
virtual |
Makes the specified weather object the lowest priority, filling the gap left with lower priority items than the one that was moved.
|
virtual |
Changes the priority of the given id to the specified priority, changing the priorities of all the other items to fill the gap left.
|
inline |
|
inline |
|
virtual |
For the specified session (or all session) set the time to set to local based on the first simulation object creation.
Only valid before the first entity is placed in the simulation. If the timeIsFrozen() is true this method will have no effect
|
virtual |
Adds a new rule for modifying weather color.
Returns the index it was added at. Use that index to remove the weather operation. Will clone operation and keep pointer
|
virtual |
Removes operation.
|
virtual |
Inserts an operation.
|
virtual |
|
virtual |
Given the environment record and some base colors, calls weather modification rules to change the color to a new one and returns in the same variables that were the base colors supplied.
|
virtual |
Returns the model definition for the look of the weather icon.
|
virtual |
Sets the look manager for this local weather manager.
This will delete the existing weather manager so do not hold onto the memory passed in
|
inline |
Accessor for the manager.
|
virtual |
Returns true if the setting of time for the first entity placement can be done. False means it can.
|
virtual |
Returns true if the first entity placement will set time to local time.
|
virtual |
|
inline |
|
virtual |
|
virtual |
Given the location of the particular object, return the area that contains the given location of the object given.
|
virtual |
Given the location of the particular object, return the area that contains the given location of the object given.
The location is in geocentric
|
protectedvirtual |
Adds this item in if it is a local weather item (by matching object type)
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Initializes environment by scanning for weather objects.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Offsets the priority of the object by the given amount.
If more than 1 will still swap weather areas that conflict with the new priority – it will not shift priorities
| boost::signals2::signal<void (makVrv::DtElementID)> makVrf::DtLocalWeatherManager::signal_removed |
Signal sent when the local weather area is removed.
| boost::signals2::signal<void (const makVrv::DtStateView<DtVrlinkSimulatedEnvironmentProcess>*)> makVrf::DtLocalWeatherManager::signal_updated |
Signal sent when the local weather area is updated.
| boost::signals2::signal<void (const makVrv::DtStateView<DtVrlinkSimulatedWeatherState>*)> makVrf::DtLocalWeatherManager::signal_weatherUpdated |
| boost::signals2::signal<void (makVrv::DtUniqueID, bool)> makVrf::DtLocalWeatherManager::signal_isTimeFrozenChanged |
Signals sent when information about a particular global weather has updated.
If ID is 0 check to see if need to reset to defaults
| boost::signals2::signal<void (makVrv::DtUniqueID, bool)> makVrf::DtLocalWeatherManager::signal_isTimeSetToLocalOnFirstPlacementChanged |
| boost::signals2::signal<void ()> makVrf::DtLocalWeatherManager::signal_weatherLookRulesChanged |
Signal sent when the weather look rules have changed.
| boost::signals2::signal<void (makVrv::DtUniqueID)> makVrf::DtLocalWeatherManager::signal_globalWeatherDiscovered |
Signal when global weather is discovered.
| boost::signals2::signal<void (makVrv::DtUniqueID)> makVrf::DtLocalWeatherManager::signal_globalWeatherRemoved |
Signal when all global weathers are removed.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |