![]() |
VR-Forces Developer's Guide
|
A debugging class used to help debug indirect geometry.
This class provides ImGui based displays of the indirect geometry information. Registrars, model templates, and individual geometry instances (ids, model names, world/local positions, per-geometry instance details, lifetime tracking state) can be inspected. A debug marker sphere can be drawn at a selected instance's world position via the DtDebugShapes facility.
This class is meant to be a passive probe into the indirect rendering system. It never mutates indirect rendering state. No indirect object pointers or references are held by this class; all displayed data is snapshotted by value on demand (via the Refresh button or by selecting a geometry) and may therefore be stale relative to the live scene. Geometries and registrars are re-located in the scene graph by their captured address strings each time data is needed; if the object no longer exists, the corresponding display is left empty.
It relies on the debugOnly* methods of DtIndirectGeometry, which take the instance read lock and copy data out; those methods exist solely for this class and must not be used by runtime rendering or simulation code paths.
Singleton; access via instance(). updateGui() must be called once per frame from within an ImGui update (currently driven by DtIndirectRunTimeSettings), i.e. on the thread that owns the ImGui context.

Classes | |
| struct | IndirectGeometryDebugInfo |
| struct | InstanceDebugInfo |
| struct | ModelInfoDofPathDebugInfo |
| struct | ModelInfoTextureDebugInfo |
| struct | PerGeomInstanceDebugInfo |
| struct | RegistrarDebugInfo |
| struct | RegistrarModelDebugInfo |
| struct | RegistrarModelEntryDebugInfo |
Public Member Functions | |
| DtIndirectGeometryDebugging ()=delete | |
| DtIndirectGeometryDebugging (const DtIndirectGeometryDebugging &)=delete | |
| DtIndirectGeometryDebugging & | operator= (const DtIndirectGeometryDebugging &)=delete |
| virtual | ~DtIndirectGeometryDebugging () |
| virtual void | updateGui () |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtIndirectGeometryDebugging & | instance (DtDe &de) |
Static Public Attributes | |
| static const float | theDefaultIdColumnWidth |
| static const float | theDefaultAddressColumnWidth |
| static const float | theDefaultCountColumnWidth |
| static const ImVec4 | theDefaultImguiHighlightColor |
| static const ImVec4 | theDefaultImguiTextHighlightColor |
Protected Member Functions | |
| DtIndirectGeometryDebugging (DtDe &de) | |
| osg::Node * | findRootNode () const |
| virtual void | gatherAllIndirectGeometries (osg::Node *node, std::vector< DtIndirectGeometry * > &outGeometries) const |
| virtual void | collectIndirectGeometryInfo (osg::Node *node, std::set< IndirectGeometryDebugInfo > &outInfos, std::set< RegistrarDebugInfo > &outRegistrarInfos) const |
| virtual void | extractIndirectGeometryInfo (DtIndirectGeometry *indirectGeo, std::set< IndirectGeometryDebugInfo > &outInfos, std::set< RegistrarDebugInfo > &outRegistrarInfos) const |
| virtual int | extractLodCount (const DtIndirectModelInfo *modelInfo) const |
| virtual void | extractDofPaths (const DtIndirectModelInfo *modelInfo, std::vector< ModelInfoDofPathDebugInfo > &dofPathInfo) const |
| virtual void | extractTextureInfo (const DtIndirectModelInfo *modelInfo, std::vector< ModelInfoTextureDebugInfo > &outTextureInfo) const |
| virtual DtIndirectGeometryRegistrar * | findMatchingRegistrar (osg::Node *node, const std::string ®istrarAddress) const |
| virtual DtIndirectGeometry * | findMatchingGeometry (osg::Node *node, const std::string &geometryAddress) const |
| virtual void | fillModelNamesForRegistrar (const std::string ®istrarAddress) |
| virtual void | refreshIndirectGeometryInfo () |
| virtual void | displayIndirectGeometryInfo () |
| virtual void | displayIndirectGeometryTable (ImGuiTableFlags tableFlags, float tableHeight) |
| virtual void | displayRegistrarTable (ImGuiTableFlags tableFlags, float tableHeight) |
| virtual void | displayRegistrarModelNames () |
| virtual void | gatherRegistrarModelInfo (const std::string ®istrarAddress, int registrarModelId, RegistrarModelDebugInfo &outModelInfo) const |
| virtual void | displaySelectedRegistrarModelInfo () |
| virtual void | displayModelInfoDofPathsDialog () |
| virtual void | displayModelInfoTextureNamesDialog () |
| virtual void | setSelectedRegistrarAddress (const std::string &address) |
| virtual void | setSelectedGeometryAddress (const std::string &address) |
| virtual void | fillInstancesForGeometry (const std::string &geometryAddress) |
| virtual void | displayGeometryInstances () |
| virtual void | displaySelectedInstanceInfo () |
| virtual void | showInstancePositionShape (const InstanceDebugInfo &info) const |
|
delete |
not allowed.
|
delete |
not allowed.
|
virtual |
destructor
|
protected |
constructor. protected. only creator can create
|
delete |
not allowed.
|
static |
Get the singleton instance of the class.
|
virtual |
called to update the debugging information Intended to be called once per frame within an imgui update. Currently called as part of the DtIndirectRunTimeSettings update.
|
protected |
Find the root node of the scene graph.
|
protectedvirtual |
Recursively gather all DtIndirectGeometry objects from the scene graph.
|
protectedvirtual |
Collect indirect geometry info from the scene graph.
|
protectedvirtual |
Extract indirect geometry info from a single DtIndirectGeometry object.
|
protectedvirtual |
Extract LOD count from the model info.
|
protectedvirtual |
Extract DOF path information from the model info.
|
protectedvirtual |
Extract texture names and dimenstions from the model info.
|
protectedvirtual |
Find the DtIndirectGeometryRegistrar that matches the given address string.
|
protectedvirtual |
Find the DtIndirectGeometry that matches the given address string.
| node | The root node to search from. |
| geometryAddress | The address string captured in the snapshot. |
|
protectedvirtual |
Fill model names for the specified registrar.
|
protectedvirtual |
Refresh the indirect geometry information.
|
protectedvirtual |
Display the indirect geometry information using ImGui.
|
protectedvirtual |
Display the indirect geometry table shows a list of all active indirect geometries.
|
protectedvirtual |
Display the registrar table shows a list of all active registrars.
|
protectedvirtual |
Display the registrar model names shows a list of model names for the selected registrar.
|
protectedvirtual |
Gather detailed model info for the specified registrar and model ID.
|
protectedvirtual |
Display the selected registrar model info shows detailed info for the selected registrar model.
|
protectedvirtual |
Display the model info DOF paths dialog shows DOF paths for the selected registrar model.
|
protectedvirtual |
Display the model info texture names dialog shows texture names for the selected registrar model.
|
protectedvirtual |
Set the currently selected registrar address.
|
protectedvirtual |
Set the currently selected indirect geometry address.
|
protectedvirtual |
Fill the instance list for the selected indirect geometry.
Finds the matching DtIndirectGeometry in the scene graph by address string and snapshots its instance data (ids, model info, tracking, world and local positions, per-geometry instance details). All data is copied by value; no pointers or references are retained. If the geometry no longer exists, the list is left empty.
|
protectedvirtual |
Display the instance table for the selected indirect geometry.
|
protectedvirtual |
Display detailed info for the selected instance.
|
protectedvirtual |
Show a debug sphere at the given instance's world position. Uses the DtDebugShapes facility on the renderer. The shape times out on its own; no state is retained by this class.
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
filter for narrowing the geometry table by address
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Filter for the instance table (matches instance id or model name).
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |