![]() |
VR-Forces 4.10 Class Documentation
|
Debug Draw Manager (back end) that receive (DIS/HLA) messages from a VRF GUI and then connect to the debugDrawRenderer (front end) with a non DIS/HLA UDP protocol. More...
Public Member Functions | |
| DtDebugDrawManager (DtSimManager *simManager) | |
| virtual | ~DtDebugDrawManager () |
| virtual void | tick () |
| The update function. More... | |
| virtual void | sendDrawTerrainSkinRequest (const std::string &EntityId, std::vector< DtTerrainTriangleStruct > &triangles, DtIfDebugDrawTerrain::DtSkinColorMode skinDrawMode, float colorAlpha) |
| *** Terrain functions *** More... | |
| virtual void | sendDeleteTerrainSkinRequest (const std::string &EntityId) |
| send delete terrain skin request (this delete the terrain area and all related drawing) More... | |
| virtual void | sendDrawTerrainNormalRequest (const std::string &EntityId, std::vector< DtTerrainTriangleStruct > &triangles) |
| send a terrain skin normal request (this is the main request for the terrain area) More... | |
| virtual void | sendDeleteTerrainNormalRequest (const std::string &EntityId) |
| send delete terrain skin normal request More... | |
| virtual void | sendElevationTileRequest (const std::string &EntityId, std::vector< makVrf::DtLine > &lines) |
| send a Elevation tile request More... | |
| virtual void | sendDeleteElevationTileRequest (const std::string &EntityId) |
| send a delete Elevation tile request More... | |
| virtual void | sendProceduralTreeTileRequest (const std::string &EntityId, std::vector< makVrf::DtLine > &lines) |
| send a Procedural Tree tile request More... | |
| virtual void | sendDeleteProceduralTreeTileRequest (const std::string &EntityId) |
| send a delete Procedural Tree tile request More... | |
| virtual void | sendCollisionRequest (const std::string &EntityId, std::vector< makVrf::DtLine > &lines) |
| send a Collision object request More... | |
| virtual void | sendDeleteCollisionRequest (const std::string &EntityId) |
| send a delete Collision Object request More... | |
| virtual void | sendQueryRequest (const std::string &EntityId, std::vector< makVrf::DtLine > &lines) |
| send a Query line request More... | |
| virtual void | sendDeleteQueryRequest (const std::string &EntityId) |
| send a delete Query line request More... | |
| virtual void | sendPageOutNodeBSRequest (const std::string &EntityId, DtNodeBoundingList &nodeBoundingList) |
| send a PageOutNodeBS request More... | |
| virtual void | sendDeletePageOutNodeBSRequest (const std::string &EntityId) |
| send a delete PageOutNodeBS request More... | |
| virtual void | sendPageInNodeBSRequest (const std::string &EntityId, DtNodeBoundingList &nodeBoundingList) |
| send a PageInNodeBS request More... | |
| virtual void | sendDeletePageInNodeBSRequest (const std::string &EntityId) |
| send a delete PageInNodeBS request More... | |
| virtual void | sendFeatureLinearRequest (const std::string &EntityId, std::vector< makVrf::DtLine > &lines) |
| *** Feature functions *** More... | |
| virtual void | sendDeleteFeatureLinearRequest (const std::string &EntityId) |
| send a delete Feature request More... | |
| virtual void | addLinearFeatures (MAKVRinTerra::DtFeatureGeometry &geom, float offset, bool addToAreal, bool &upVectorInit, DtVector &upVector, unsigned red, unsigned green, unsigned blue) |
| parse the feature query and add linear (good for linear and areal feature) More... | |
| virtual void | addPointFeatures (MAKVRinTerra::DtFeatureGeometry &geom, float offset, unsigned red, unsigned green, unsigned blue) |
| parse the feature query and add linear (good for linear and areal feature) More... | |
| virtual void | offsetNavMesh (std::list< DtNavArea::DtNavTriangleInfo > &triangles, float offset) |
| *** NavMesh functions *** More... | |
| virtual void | sendDrawNavMeshRequest (const std::string &EntityId, std::list< DtNavArea::DtNavTriangleInfo > &triangles, bool enableColor, float alpha) |
| send a nav mesh request More... | |
| virtual void | sendDeleteNavMeshRequest (const std::string &EntityId) |
| send delete nav mesh request More... | |
Static Public Member Functions | |
| static void | tickCallback (void *args) |
| This callback is registered on the sim manager's tick list. More... | |
| static void | messageConectorCallback (DtSimMessage *msg, void *usr) |
| Receive messages from the GUI via HLA/DIS to connect/disconnect the manager/renderer. More... | |
| static void | messageTerrainCallback (DtSimMessage *msg, void *usr) |
| Receive messages from the GUI via HLA/DIS to render terrain information the manager/renderer. More... | |
| static void | messageFeatureCallback (DtSimMessage *msg, void *usr) |
| Receive messages from the GUI via HLA/DIS to render feature information the manager/renderer. More... | |
| static void | messageNavMeshCallback (DtSimMessage *msg, void *usr) |
| Receive messages from the GUI via HLA/DIS to render NavMesh information the manager/renderer. More... | |
Protected Member Functions | |
| virtual bool | init () |
| initializes the client More... | |
| virtual void | connect () |
| connect to the tcpConnector More... | |
| virtual void | disconnect () |
| disconnect from the tcpConnector More... | |
| virtual void | setIp (const std::string &serverAddress) |
| set the IP to connect to (GUI) More... | |
| virtual void | setPort (unsigned int port) |
| set the port to connect to (GUI) More... | |
| virtual void | color (unsigned &rmix, unsigned &gmix, unsigned &bmix) |
| get a random color More... | |
| void | newFilterArea (DtIfDebugDrawFeature *msgContent) |
| set a new boundary area to query the features More... | |
| void | addFeature (const MAKVRinTerra::DtFeature &feature) |
| add new features to a list in an asynchronous fashion after a newFilterArea was called More... | |
| virtual void | checkForAddedFeature () |
| check if new features have been added by addFeature() More... | |
| virtual void | deleteLinearFeature () |
| virtual void | sendFeatures (std::vector< boost::shared_ptr< MAKVRinTerra::DtFeature > > &newFeatures) |
| virtual DtSimManager * | simManager () |
| get the sim manager pointer More... | |
| virtual DtTerrainProcessPolygonsBox | boundingBox (DtVector topLeftCorner, DtVector topRightCorner, DtVector bottomLeftCorner, DtVector bottomRightCorner) |
| calculate frustum bounding box More... | |
| virtual void | handleConnection (makVrf::DtDebugDrawConnector *connection) |
| handle the connection More... | |
| virtual void | handleDisconnection (makVrf::DtDebugDrawConnector *connection) |
| handle the disconnection More... | |
| virtual void | handleTerrainAreaResponse (makVrf::DtBaseMessage *msg) |
| handle the terrain area response from the server More... | |
| virtual void | handleFeatureResponse (makVrf::DtBaseMessage *msg) |
| handle the feature response from the server More... | |
Protected Attributes | |
| DtSimManager * | mySimManager |
| currently selected sim manager More... | |
| std::string | myServerAddress |
| debug draw renderer ip More... | |
| unsigned int | myPort |
| debug draw renderer port More... | |
| bool | myIsConnected |
| are we currently connected to the debug draw renderer More... | |
| unsigned int | myVisId |
| counter for the number of features More... | |
| makVrf::DtDebugDrawConnector * | myConnector |
| connector object that is used to send message from the debugDrawManager and debugDrawRenderer More... | |
| boost::scoped_ptr < MAKVRinTerra::DtFeatureSet > | myFeatureSet |
| set of queried feature More... | |
| MAKVRinTerra::DtFeatureSet::DetachCallback | myDetacher |
| std::string | myFeatureQuery |
| Query string in the form described in appData\settings\featureconfig.txt. More... | |
| float | myFeatureOffset |
| Feature Offset. More... | |
| tbb::spin_mutex | myMutex |
| Mutex. More... | |
| std::vector< makVrf::DtLine > | myFeaturePoint |
| List of points (converted to line) to send to the renderer. More... | |
| std::vector< makVrf::DtLine > | myFeatureLinear |
| List of linear to send to the renderer. More... | |
| std::vector< makVrf::DtLine > | myFeatureAreal |
| List of areal to send to the renderer. More... | |
| std::vector< boost::shared_ptr < MAKVRinTerra::DtFeature > > | myPendingPageInFeatures |
| list of queried features asynchronously added More... | |
| bool | myInit |
| was the manager initialized More... | |
| tbb::atomic< unsigned > | myNumEmptyTick |
| counter used to check the number of tick that happen between added features More... | |
| bool | myFeatureToSend |
| set to true when we need to send features to the renderer More... | |
| bool | myCheckForAddedFeature |
| flag that trigger the tick function that will send the new features More... | |
| bool | myDrawPointFeature |
| Flag to draw the point features. More... | |
| bool | myDrawLinearFeature |
| Flag to draw the linear features. More... | |
| bool | myDrawArealFeature |
| Flag to draw the areal features. More... | |
Debug Draw Manager (back end) that receive (DIS/HLA) messages from a VRF GUI and then connect to the debugDrawRenderer (front end) with a non DIS/HLA UDP protocol.
It will then send draw information to the debugDrawRenderer upon GUI request.
| DtDebugDrawManager::DtDebugDrawManager | ( | DtSimManager * | simManager | ) |
|
virtual |
|
virtual |
The update function.
|
static |
This callback is registered on the sim manager's tick list.
The sim manager calls this function when it is ticked.
|
static |
Receive messages from the GUI via HLA/DIS to connect/disconnect the manager/renderer.
|
static |
Receive messages from the GUI via HLA/DIS to render terrain information the manager/renderer.
|
static |
Receive messages from the GUI via HLA/DIS to render feature information the manager/renderer.
|
static |
Receive messages from the GUI via HLA/DIS to render NavMesh information the manager/renderer.
|
virtual |
*** Terrain functions ***
send a terrain skin request (this is the main request for the terrain area)
|
virtual |
send delete terrain skin request (this delete the terrain area and all related drawing)
|
virtual |
send a terrain skin normal request (this is the main request for the terrain area)
|
virtual |
send delete terrain skin normal request
|
virtual |
send a Elevation tile request
|
virtual |
send a delete Elevation tile request
|
virtual |
send a Procedural Tree tile request
|
virtual |
send a delete Procedural Tree tile request
|
virtual |
send a Collision object request
|
virtual |
send a delete Collision Object request
|
virtual |
send a Query line request
|
virtual |
send a delete Query line request
|
virtual |
send a PageOutNodeBS request
|
virtual |
send a delete PageOutNodeBS request
|
virtual |
send a PageInNodeBS request
|
virtual |
send a delete PageInNodeBS request
|
virtual |
*** Feature functions ***
send a Feature request
|
virtual |
send a delete Feature request
|
virtual |
parse the feature query and add linear (good for linear and areal feature)
|
virtual |
parse the feature query and add linear (good for linear and areal feature)
|
virtual |
*** NavMesh functions ***
offset each triangles in the normal direction
|
virtual |
send a nav mesh request
|
virtual |
send delete nav mesh request
|
protectedvirtual |
initializes the client
|
protectedvirtual |
connect to the tcpConnector
|
protectedvirtual |
disconnect from the tcpConnector
|
protectedvirtual |
set the IP to connect to (GUI)
set the port to connect to (GUI)
|
protectedvirtual |
get a random color
|
protected |
set a new boundary area to query the features
|
protected |
add new features to a list in an asynchronous fashion after a newFilterArea was called
|
protectedvirtual |
check if new features have been added by addFeature()
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
get the sim manager pointer
|
protectedvirtual |
calculate frustum bounding box
|
protectedvirtual |
handle the connection
|
protectedvirtual |
handle the disconnection
|
protectedvirtual |
handle the terrain area response from the server
|
protectedvirtual |
handle the feature response from the server
|
protected |
currently selected sim manager
|
protected |
debug draw renderer ip
|
protected |
are we currently connected to the debug draw renderer
|
protected |
connector object that is used to send message from the debugDrawManager and debugDrawRenderer
|
protected |
set of queried feature
|
protected |
|
protected |
Query string in the form described in appData\settings\featureconfig.txt.
|
protected |
Feature Offset.
|
mutableprotected |
Mutex.
|
protected |
List of points (converted to line) to send to the renderer.
|
protected |
List of linear to send to the renderer.
|
protected |
List of areal to send to the renderer.
|
protected |
list of queried features asynchronously added
|
protected |
was the manager initialized
|
protected |
counter used to check the number of tick that happen between added features
|
protected |
set to true when we need to send features to the renderer
|
protected |
flag that trigger the tick function that will send the new features
|
protected |
Flag to draw the point features.
|
protected |
Flag to draw the linear features.
|
protected |
Flag to draw the areal features.