![]() |
VR-Forces Developer's Guide
|
Overide that adds the ability to request information from the back-end for intervisibility checks.

Classes | |
| struct | ColorWait |
| struct | LineOfSightPoint |
| struct | UpdateCheckState |
Public Types | |
| typedef std::vector < LineOfSightPoint > | LineOfSightPoints |
| typedef DtVrfExtendedIntervisibilitySettingsData::Color | Color |
Public Member Functions | |
| DtBackendLineOfSightManager (makVrv::DtDe &) | |
| virtual | ~DtBackendLineOfSightManager () override |
| virtual bool | hasRequestPending (makVrv::DtUniqueID) const |
| virtual void | requestLineOfSightCheck (makVrv::DtUniqueID, const DtVector &start, const DtVector &end, bool intersectTerrain=true, bool intersectEntities=false, bool intersectFeatures=true) |
| virtual void | requestLineOfSightCheck (makVrv::DtUniqueID, const LineOfSightPoints &pts, bool intersectTerrain=true, bool intersectEntities=false, bool intersectFeatures=true) |
| virtual void | addReference (makVrv::DtUniqueID) |
| virtual void | removeReference (makVrv::DtUniqueID) |
| virtual bool | validBackendToCheck () const |
| virtual bool | needsRequestForBackendLineOfSight (makVrv::DtUniqueID id, const DtVector &startPoint, const DtVector &endPoint, double waitTimeRequest, bool intersectEntities, bool &startingTimeRequest, bool useAsTimer=false) |
| virtual void | setAlphaFactor (double) |
| virtual double | alphaFactor () const |
| virtual void | adjustAlpha (makVrv::DtUniqueID, double alpha) |
| virtual void | adjustColor (makVrv::DtUniqueID, const Color &visible, const Color &blocked) |
| virtual bool | itemIsSelected (makVrv::DtUniqueID) const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtBackendLineOfSightManager & | instance (makVrv::DtDe &de) |
| static void | registerInstance (makVrv::DtDe &de, DtBackendLineOfSightManager *) |
Public Attributes | |
| boost::signals2::signal< void(makVrv::DtUniqueID, const DtIfIntersectionInformationResponse::IntersectionPairInformation &)> | signal_lineOfSightResponse |
| boost::signals2::signal< void(makVrv::DtUniqueID, DtVrfExtendedIntervisibilitySettingsData::IntervisibilitySettings)> | signal_extendedIntervisibilityOptionsChanged |
Protected Member Functions | |
| virtual void | checkWaitingForColor () |
| virtual void | slot_visibleColorChanged (makVrv::DtUniqueID, float, float, float, float) |
| virtual void | slot_blockedColorChanged (makVrv::DtUniqueID, float, float, float, float) |
| virtual void | slot_extendedIntervisibilityOptionsChanged (makVrv::DtUniqueID id, DtVrfExtendedIntervisibilitySettingsData::IntervisibilitySettings) |
| virtual DtVrfSimBackendManager & | backendManager () const |
| virtual void | removeRequestId (makVrv::DtUniqueID) |
| virtual void | processIntersectionResponse (DtSimMessage *) |
| virtual void | resetColor (makVrv::DtUniqueID, const Color &visibleColor, const Color &blockedColor) |
| virtual void | slot_onCurrentSelectionChanged (const makVrv::DtSelectionManager::IdSet &deselected) |
| virtual void | setupConnectionsForListener (makVrv::DtIntervisibilityStateListener *, makVrv::DtSignalConnectionManager *) |
| virtual void | slot_elementToBeDestroyed (makVrv::DtIntervisibilityElement *) |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| DtVrfSimBackendManager * | myBackendManager |
| std::map< makVrv::DtUniqueID, unsigned long > | myKeyToRequestMap |
| std::map< unsigned long, std::pair< makVrv::DtUniqueID, DtSimulationAddress > > | myRequestToKeyMap |
| std::map< makVrv::DtUniqueID, UpdateCheckState > | myUpdateCheckState |
| makVrv::DtSignalConnectionManager | myConnections |
| boost::signals2::connection | mySelectionChangedConnection |
| double | myAlphaFactor |
| std::map< makVrv::DtUniqueID, ColorWait > | myWaitForSelectionChange |
| typedef std::vector<LineOfSightPoint> makVrf::DtBackendLineOfSightManager::LineOfSightPoints |
| makVrf::DtBackendLineOfSightManager::DtBackendLineOfSightManager | ( | makVrv::DtDe & | ) |
|
overridevirtual |
|
static |
Returns instance of the DtExtendedLabelsManager.
|
static |
|
virtual |
Returns true if there is a pending request for this id.
|
virtual |
Makes a request for the pending id. Vectors are in local coordinates.
|
virtual |
|
virtual |
Use these calls to manager the checker list. If the checker list is not managed it can grow with each new check request.
|
virtual |
|
virtual |
Returns true if there are any valid backends to check.
|
virtual |
Returns true if, given the start and end point, the given id needs to be updated for line of sight check.
|
virtual |
Factor to adjust alpha of color by if waiting for response from back-end. Default is 0.5.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
If the object is not selected, sets the alpha to what the alpha should be multiplied by the alpha factor to show if data is from back or front-end (more see through is from front-end, if back-end is being used)
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
| boost::signals2::signal<void (makVrv::DtUniqueID, const DtIfIntersectionInformationResponse::IntersectionPairInformation&)> makVrf::DtBackendLineOfSightManager::signal_lineOfSightResponse |
Signal sent when backend request has been received.
| boost::signals2::signal<void (makVrv::DtUniqueID, DtVrfExtendedIntervisibilitySettingsData::IntervisibilitySettings)> makVrf::DtBackendLineOfSightManager::signal_extendedIntervisibilityOptionsChanged |
Signal sent when a listener changes it's settings.
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |