The DtTacticalGraphicModelUpdaterManager class manages tactical graphics that want to be updated by changes to camera orientation or zoom level.
More...
Detailed Description
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
Member Typedef Documentation
Function prototype for adding callback method to the model update manager.
Current channel update data such that can check if channel updates need to be called.
Constructor & Destructor Documentation
| makVrv::DtTacticalGraphicModelUpdaterManager::DtTacticalGraphicModelUpdaterManager |
( |
DtDe & |
| ) |
|
| virtual makVrv::DtTacticalGraphicModelUpdaterManager::~DtTacticalGraphicModelUpdaterManager |
( |
| ) |
|
|
virtual |
Member Function Documentation
Get the creator instance for this IG object.
- Exceptions
-
| DtCorruptedState | if it is unable to get the instance. |
Register the creator instance with an IG.
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 void makVrv::DtTacticalGraphicModelUpdaterManager::remove |
( |
int |
| ) |
|
|
virtual |
Removes an item to be notified on channel update.
| virtual bool makVrv::DtTacticalGraphicModelUpdaterManager::isRegistered |
( |
int |
| ) |
const |
|
virtual |
Return true if this identifier is registered with the manager.
| virtual double makVrv::DtTacticalGraphicModelUpdaterManager::viewResolution |
( |
DtChannel * |
| ) |
|
|
virtual |
Returns the current camera view resolution for the given channel.
Given a channel return an update data structure that would be sent if that channel were updated.
Slot called each tick for current camera.
Will only go through notification list if changed since last tick
| virtual void makVrv::DtTacticalGraphicModelUpdaterManager::slot_channelToBeDestroyed |
( |
DtChannelManager * |
, |
|
|
DtChannel * |
channel |
|
) |
| |
|
protectedvirtual |
Called when a channel is about to be destroyed will clean up any channel update data.
| void makVrv::DtTacticalGraphicModelUpdaterManager::initializeTerrainInformation |
( |
| ) |
|
|
protected |
Stores terrain information, if exists, and adds callbacks for patches added and removed to update terrain bounds information.
| virtual void makVrv::DtTacticalGraphicModelUpdaterManager::terrainChanged |
( |
const DtTerrainPatch & |
| ) |
|
|
protectedvirtual |
Called when a terrain patch is added or deleted, will set compute flag to true to recompute bounding volume.
| virtual double makVrv::DtTacticalGraphicModelUpdaterManager::computeHighestTerrainPoint |
( |
DtChannel * |
| ) |
const |
|
protectedvirtual |
Computes highest point of terrain.
If terrain is a global terrain use earth radius
Member Data Documentation
| DtDe& makVrv::DtTacticalGraphicModelUpdaterManager::myDe |
|
protected |
| CallbacksList makVrv::DtTacticalGraphicModelUpdaterManager::myCallbacks |
|
protected |
| double makVrv::DtTacticalGraphicModelUpdaterManager::myHighestTerrainPoint |
|
protected |
Calculated height above terrain of the highest point of the terrain based on its bounding sphere.
| bool makVrv::DtTacticalGraphicModelUpdaterManager::myComputeHighestTerrainPoint |
|
protected |
Set to true if bounding volume of terrain needs to be recalculated on next access.
The documentation for this class was generated from the following file: