![]() |
VR-Forces Developer's Guide
|
The DtTacticalGraphicModelUpdaterManager class manages tactical graphics that want to be updated by changes to camera orientation or zoom level. The items will only be notified if either of those changes occur.

Classes | |
| struct | ChannelUpdateData |
Public Types | |
| typedef std::function< void(ChannelUpdateData)> | ChannelUpdateCallback |
Public Member Functions | |
| DtTacticalGraphicModelUpdaterManager (DtDe &) | |
| virtual | ~DtTacticalGraphicModelUpdaterManager () |
| virtual void | add (intptr_t identifier, ChannelUpdateCallback) |
| virtual void | remove (intptr_t) |
| virtual bool | isRegistered (intptr_t) const |
| virtual double | viewResolution (DtChannel *) |
| virtual ChannelUpdateData | channelUpdateData (DtChannel *) |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtTacticalGraphicModelUpdaterManager & | instance (DtDe &de) |
| static void | registerInstance (DtDe &de, DtTacticalGraphicModelUpdaterManager *anInstance) |
Protected Types | |
| typedef std::map< intptr_t, ChannelUpdateCallback > | CallbacksList |
| typedef std::map< DtChannel *, ChannelUpdateData > | ChannelUpdateDataMap |
Protected Member Functions | |
| virtual void | slot_channelUpdated (DtChannelManager *, DtChannel *channel) |
| virtual void | slot_channelToBeDestroyed (DtChannelManager *, DtChannel *channel) |
| void | initializeTerrainInformation () |
| virtual void | terrainChanged (const DtTerrainPatch &) |
| virtual double | computeHighestTerrainPoint (DtChannel *) const |
| virtual void | slot_coordinateSystemChanged () |
| typedef std::function<void (ChannelUpdateData)> makVrv::DtTacticalGraphicModelUpdaterManager::ChannelUpdateCallback |
Function prototype for adding callback method to the model update manager.
|
protected |
|
protected |
Current channel update data such that can check if channel updates need to be called.
| makVrv::DtTacticalGraphicModelUpdaterManager::DtTacticalGraphicModelUpdaterManager | ( | DtDe & | ) |
CTOR.
|
virtual |
DTOR.
|
static |
Get the creator instance for this IG object.
| DtCorruptedState | if it is unable to get the instance. |
|
static |
Register the creator instance with an IG.
|
virtual |
Adds a new item to be notified on channel update. Will check identifier to see if there is already a callback for it, and, if there is, will not replace.
|
virtual |
Removes an item to be notified on channel update.
|
virtual |
Return true if this identifier is registered with the manager.
Returns the current camera view resolution for the given channel.
|
virtual |
Given a channel return an update data structure that would be sent if that channel were updated.
|
protectedvirtual |
Slot called each tick for current camera. Will only go through notification list if changed since last tick.
|
protectedvirtual |
Called when a channel is about to be destroyed will clean up any channel update data.
|
protected |
Stores terrain information, if exists, and adds callbacks for patches added and removed to update terrain bounds information.
|
protectedvirtual |
Called when a terrain patch is added or deleted, will set compute flag to true to recompute bounding volume.
|
protectedvirtual |
Computes highest point of terrain. If terrain is a global terrain use earth radius instead. NOTE: Geocentric and global terrain patches will return 0.
|
protectedvirtual |
slot for when the coordinate system changes
|
protected |
|
protected |
|
protected |
|
protected |
Calculated height above terrain of the highest point of the terrain based on its bounding sphere.
|
protected |
Set to true if bounding volume of terrain needs to be recalculated on next access.
|
protected |
|
protected |
local clone of the system wide coordinate system. for thread safety.