![]() |
VR-Forces Developer's Guide
|
This class is intended to be a global singleton. It manages multiple DtSimImguiThread instances such that only one is allowed to be enabled at a time. The expectation is that each one of these is operating in a different thread. This manager registers a command console for enabling and controlling these instances.
Public Member Functions | |
| DtImguiMultithreadManager () | |
| virtual | ~DtImguiMultithreadManager () |
| void | addImguiManager (DtSimImguiThread *imGuiManager) |
| void | removeImguiManager (DtSimImguiThread *imGuiManager) |
| void | setAppName (const DtString &appName) |
| void | setPort (unsigned int port) |
| unsigned int | port () const |
| void | setHost (const DtString &host) |
| DtString | host () const |
| void | startImgui () |
| void | stopImgui () |
| bool | isRunning () |
| DtString | currentThread () |
| std::list< DtString > | availableThreads () |
| bool | setThread (const DtString &threadName) |
Static Public Member Functions | |
| static DtImguiMultithreadManager * | globalMultiImguiManager () |
Protected Member Functions | |
| void | startupThread (DtSimImguiThread *thread) |
| void | shutdownThread (DtSimImguiThread *thread) |
Protected Attributes | |
| tbb::spin_mutex | myMutex |
| std::map< DtString, DtSimImguiThread * > | myImguiManagerList |
| unsigned int | myPort |
| DtString | myHost |
| DtSimImguiThread * | myCurrentThread |
| DtString | myAutostartThreadName |
| DtString | myAppName |
Static Protected Attributes | |
| static tbb::spin_mutex | theGlobalMutex |
| static DtImguiMultithreadManager * | theGlobalMultiImguiManager |
| DtImguiMultithreadManager::DtImguiMultithreadManager | ( | ) |
|
virtual |
| void DtImguiMultithreadManager::addImguiManager | ( | DtSimImguiThread * | imGuiManager | ) |
Register an IM GUI manager with this manager.
| void DtImguiMultithreadManager::removeImguiManager | ( | DtSimImguiThread * | imGuiManager | ) |
| void DtImguiMultithreadManager::setAppName | ( | const DtString & | appName | ) |
Set the name that will be used in the title bar for the window to this application when connected to the remote debugger.
| void DtImguiMultithreadManager::setHost | ( | const DtString & | host | ) |
| DtString DtImguiMultithreadManager::host | ( | ) | const |
| void DtImguiMultithreadManager::startImgui | ( | ) |
| void DtImguiMultithreadManager::stopImgui | ( | ) |
| bool DtImguiMultithreadManager::isRunning | ( | ) |
| DtString DtImguiMultithreadManager::currentThread | ( | ) |
| std::list<DtString> DtImguiMultithreadManager::availableThreads | ( | ) |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
Map is indexed by thread names.
|
protected |
|
protected |
|
protected |
If a thread by this name is added and no thread is running, it will be started.
|
protected |
|
staticprotected |
Static globals for singleton.
|
staticprotected |