|
VR-Engage
2.2
|
This class manages various debugging features for the Vortex physics integration, including visualization of physics objects, collision triangles, and performance metrics. It also handles configuration of the Vortex logging system and remote debugging.
#include <vortexDebug.h>
Classes | |
| class | LogHandler |
Public Member Functions | |
| DtVortexDebug (const DtSimulationServices *services) | |
| virtual | ~DtVortexDebug ()=default |
| virtual void | tick (double dt) |
| virtual void | renderImgui () |
| virtual void | initializeVortexDebugging () |
| virtual void | shutdownVortexDebugging () |
| virtual bool | active () const |
| virtual bool | debugArtParts () const |
| virtual bool | debugContacts () const |
| virtual void | updateVortexRemoteDebugging () |
| bool | debugRequestBounds () const |
| bool | debugCollisionTriangles () const |
| bool | debugPrintDynamicTerrain () const |
| bool | debugPagerTimes () const |
| double | debugPagerTimeoutTime () const |
| std::shared_ptr< DtVortexDebug::LogHandler > | logHandler () |
Protected Member Functions | |
| makVre::DtInitializer * | debugInitializer () const |
| makVre::DtVreMessageResult | handleDebugMessage (makVre::DtVreMessage *msg) |
| virtual void | registerDebugValues () |
| virtual void | unregisterDebugValues () |
Static Protected Member Functions | |
| static void | setVortexLogLevel (DtNotifyLevelType notifyLevel) |
Protected Attributes | |
| makVre::DtInitializer * | myDebugInitializer |
| DtSimulationAddress | mySimAddress |
| DebugMetaRegisterMessage::Process | myProcessType |
| bool | myActive |
| bool | myDebugRequestBounds |
| bool | myDebugPagerTimes |
| bool | myDebugPrintDynamicTerrain |
| double | myDebugTerrainPageoutTime |
| bool | myDebugArtParts |
| bool | myDebugContacts |
| bool | myDebugRemoteEnabled |
| bool | myDebugCollisionTriangles |
| double | myDebugCollisionTrianglesInterval |
| unsigned int | myDebugCollisionTrianglesMaxRequestCount |
| double | myCollisionTrianglesLastDtSent |
| std::shared_ptr< DtVortexDebug::LogHandler > | myVortexLogHandler |
| std::deque< std::pair< int, std::vector< DtVector > > > | myCollisionGeometryDeque |
| std::deque< std::pair< unsigned int, std::vector< DtVector > > > | myArtPartsGeometryDeque |
| double | myDebugArtPartsGeometryInterval |
| unsigned int | myDebugArtPartsGeometryMaxRequestCount |
| double | myDebugArtPartsGeometryLastDtSent |
|
explicit |
Constructor.
Initializes the debug system with the provided simulation services. Sets up default debug values and loads the debug configuration file.
| services | Pointer to the simulation services |
|
virtualdefault |
Destructor.
Performs cleanup of debug resources.
|
virtual |
Updates the debug state and visuals.
Called each simulation frame to update debug visualizations and process any pending debug operations.
| dt | Time step in seconds since the last update |
|
virtual |
Renders debug information using ImGui.
Displays debug information and controls in an ImGui interface.
|
virtual |
Initializes Vortex debugging functionality.
Sets up the log handler and registers debug values with the debug manager. This makes the debugging options visible in the user interface.
|
virtual |
Shuts down Vortex debugging functionality.
Unregisters debug values and cleans up resources.
|
virtual |
Checks if debugging is active.
|
virtual |
Checks if art parts debugging is enabled.
|
virtual |
Checks if contact point debugging is enabled.
|
virtual |
Updates the Vortex remote debugging connection.
Enables or disables the Vortex remote debugger based on the current setting.
| bool makVre::DtVortexDebug::debugRequestBounds | ( | ) | const |
Checks if request bounds debugging is enabled.
| bool makVre::DtVortexDebug::debugCollisionTriangles | ( | ) | const |
Checks if collision triangle debugging is enabled.
| bool makVre::DtVortexDebug::debugPrintDynamicTerrain | ( | ) | const |
Checks if dynamic terrain debugging is enabled.
| bool makVre::DtVortexDebug::debugPagerTimes | ( | ) | const |
Checks if pager timing debugging is enabled.
| double makVre::DtVortexDebug::debugPagerTimeoutTime | ( | ) | const |
Gets the timeout time for pager timing debugging.
| std::shared_ptr< DtVortexDebug::LogHandler > makVre::DtVortexDebug::logHandler | ( | ) |
Gets the Vortex log handler.
|
protected |
Gets the debug initializer.
|
protected |
Handles debug messages from the debug manager.
Processes debug enable/disable messages and other control messages.
| msg | The message to handle |
|
protectedvirtual |
Registers debug values with the debug manager.
Makes debug options visible in the user interface and sets up message handlers.
|
protectedvirtual |
Unregisters debug values from the debug manager.
Removes debug options from the user interface and cleans up message handlers.
|
staticprotected |
Sets the Vortex logging level.
Translates the VR-Forces notification level to the appropriate Vortex log level.
| notifyLevel | The VR-Forces notification level |
|
protected |
Initializer for debug configuration.
|
protected |
Address of the simulation.
|
protected |
Type of process (VRF or VRE)
|
protected |
Flag indicating if debugging is active.
|
protected |
Flag for debug request bounds visualization.
|
protected |
Flag for pager timing debug output.
|
protected |
Flag for dynamic terrain debug output.
|
protected |
Timeout for terrain paging.
|
protected |
Flag for art parts visualization.
|
protected |
Flag for contact points visualization.
|
protected |
Flag for remote debugging.
|
protected |
Flag for collision triangle visualization.
|
protected |
Time interval between triangle updates.
|
protected |
Counter for triangle requests.
|
protected |
Time of last triangle data sent.
|
protected |
Log handler for Vortex messages.
|
protected |
Queue of collision geometries for visualization.
|
protected |
|
protected |
Time interval between part geometry updates.
|
protected |
Counter for geometry requests.
|
protected |