VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
makVrv::DtIndirectGeometryDebugging Class Reference

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.

Inheritance diagram for makVrv::DtIndirectGeometryDebugging:
Inheritance graph
[legend]

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 &registrarAddress) const
 
virtual DtIndirectGeometry * findMatchingGeometry (osg::Node *node, const std::string &geometryAddress) const
 
virtual void fillModelNamesForRegistrar (const std::string &registrarAddress)
 
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 &registrarAddress, 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
 

Protected Attributes

DtDe & myDe
 
std::set
< IndirectGeometryDebugInfo > 
myIndirectGeometryInfos
 
std::set< RegistrarDebugInfo > myRegistrarInfos
 
std::vector
< RegistrarModelEntryDebugInfo > 
myRegistrarModelEntryInfos
 
std::string mySelectedRegistrarAddress
 
std::string myLastSelectedRegistrarAddress
 
int mySelectedRegistrarModelId
 
int myLastSelectedRegistrarModelId
 
RegistrarModelDebugInfo mySelectedRegistrarModelInfo
 
ImGuiTextFilter myGeometryAddressFilter
 
std::vector< InstanceDebugInfo > myInstanceInfos
 
std::string mySelectedGeometryAddress
 
std::string mySelectedGeometryName
 
int mySelectedInstanceIndex
 
ImGuiTextFilter myInstanceFilter
 
bool myShowIndirectGeometryInfo
 
bool myShowRegistrarModelNames
 
bool myShowSelectedRegistrarModelInfo
 
bool myShowModelInfoDofPathsDialog
 
bool myShowModelInfoTextureNamesDialog
 
bool myShowGeometryInstances
 
bool myShowSelectedInstanceInfo
 

Constructor & Destructor Documentation

makVrv::DtIndirectGeometryDebugging::DtIndirectGeometryDebugging ( )
delete

not allowed.

makVrv::DtIndirectGeometryDebugging::DtIndirectGeometryDebugging ( const DtIndirectGeometryDebugging &  )
delete

not allowed.

virtual makVrv::DtIndirectGeometryDebugging::~DtIndirectGeometryDebugging ( )
virtual

destructor

makVrv::DtIndirectGeometryDebugging::DtIndirectGeometryDebugging ( DtDe &  de)
protected

constructor. protected. only creator can create

Member Function Documentation

DtIndirectGeometryDebugging& makVrv::DtIndirectGeometryDebugging::operator= ( const DtIndirectGeometryDebugging &  )
delete

not allowed.

static DtIndirectGeometryDebugging& makVrv::DtIndirectGeometryDebugging::instance ( DtDe &  de)
static

Get the singleton instance of the class.

virtual void makVrv::DtIndirectGeometryDebugging::updateGui ( )
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.

osg::Node* makVrv::DtIndirectGeometryDebugging::findRootNode ( ) const
protected

Find the root node of the scene graph.

virtual void makVrv::DtIndirectGeometryDebugging::gatherAllIndirectGeometries ( osg::Node *  node,
std::vector< DtIndirectGeometry * > &  outGeometries 
) const
protectedvirtual

Recursively gather all DtIndirectGeometry objects from the scene graph.

virtual void makVrv::DtIndirectGeometryDebugging::collectIndirectGeometryInfo ( osg::Node *  node,
std::set< IndirectGeometryDebugInfo > &  outInfos,
std::set< RegistrarDebugInfo > &  outRegistrarInfos 
) const
protectedvirtual

Collect indirect geometry info from the scene graph.

virtual void makVrv::DtIndirectGeometryDebugging::extractIndirectGeometryInfo ( DtIndirectGeometry *  indirectGeo,
std::set< IndirectGeometryDebugInfo > &  outInfos,
std::set< RegistrarDebugInfo > &  outRegistrarInfos 
) const
protectedvirtual

Extract indirect geometry info from a single DtIndirectGeometry object.

virtual int makVrv::DtIndirectGeometryDebugging::extractLodCount ( const DtIndirectModelInfo *  modelInfo) const
protectedvirtual

Extract LOD count from the model info.

virtual void makVrv::DtIndirectGeometryDebugging::extractDofPaths ( const DtIndirectModelInfo *  modelInfo,
std::vector< ModelInfoDofPathDebugInfo > &  dofPathInfo 
) const
protectedvirtual

Extract DOF path information from the model info.

virtual void makVrv::DtIndirectGeometryDebugging::extractTextureInfo ( const DtIndirectModelInfo *  modelInfo,
std::vector< ModelInfoTextureDebugInfo > &  outTextureInfo 
) const
protectedvirtual

Extract texture names and dimenstions from the model info.

virtual DtIndirectGeometryRegistrar* makVrv::DtIndirectGeometryDebugging::findMatchingRegistrar ( osg::Node *  node,
const std::string &  registrarAddress 
) const
protectedvirtual

Find the DtIndirectGeometryRegistrar that matches the given address string.

virtual DtIndirectGeometry* makVrv::DtIndirectGeometryDebugging::findMatchingGeometry ( osg::Node *  node,
const std::string &  geometryAddress 
) const
protectedvirtual

Find the DtIndirectGeometry that matches the given address string.

Parameters
nodeThe root node to search from.
geometryAddressThe address string captured in the snapshot.
Returns
A non-owning pointer to the matching geometry, or nullptr if it no longer exists in the scene graph. The caller must not store or delete the returned pointer.
virtual void makVrv::DtIndirectGeometryDebugging::fillModelNamesForRegistrar ( const std::string &  registrarAddress)
protectedvirtual

Fill model names for the specified registrar.

virtual void makVrv::DtIndirectGeometryDebugging::refreshIndirectGeometryInfo ( )
protectedvirtual

Refresh the indirect geometry information.

virtual void makVrv::DtIndirectGeometryDebugging::displayIndirectGeometryInfo ( )
protectedvirtual

Display the indirect geometry information using ImGui.

virtual void makVrv::DtIndirectGeometryDebugging::displayIndirectGeometryTable ( ImGuiTableFlags  tableFlags,
float  tableHeight 
)
protectedvirtual

Display the indirect geometry table shows a list of all active indirect geometries.

virtual void makVrv::DtIndirectGeometryDebugging::displayRegistrarTable ( ImGuiTableFlags  tableFlags,
float  tableHeight 
)
protectedvirtual

Display the registrar table shows a list of all active registrars.

virtual void makVrv::DtIndirectGeometryDebugging::displayRegistrarModelNames ( )
protectedvirtual

Display the registrar model names shows a list of model names for the selected registrar.

virtual void makVrv::DtIndirectGeometryDebugging::gatherRegistrarModelInfo ( const std::string &  registrarAddress,
int  registrarModelId,
RegistrarModelDebugInfo &  outModelInfo 
) const
protectedvirtual

Gather detailed model info for the specified registrar and model ID.

virtual void makVrv::DtIndirectGeometryDebugging::displaySelectedRegistrarModelInfo ( )
protectedvirtual

Display the selected registrar model info shows detailed info for the selected registrar model.

virtual void makVrv::DtIndirectGeometryDebugging::displayModelInfoDofPathsDialog ( )
protectedvirtual

Display the model info DOF paths dialog shows DOF paths for the selected registrar model.

virtual void makVrv::DtIndirectGeometryDebugging::displayModelInfoTextureNamesDialog ( )
protectedvirtual

Display the model info texture names dialog shows texture names for the selected registrar model.

virtual void makVrv::DtIndirectGeometryDebugging::setSelectedRegistrarAddress ( const std::string &  address)
protectedvirtual

Set the currently selected registrar address.

virtual void makVrv::DtIndirectGeometryDebugging::setSelectedGeometryAddress ( const std::string &  address)
protectedvirtual

Set the currently selected indirect geometry address.

virtual void makVrv::DtIndirectGeometryDebugging::fillInstancesForGeometry ( const std::string &  geometryAddress)
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.

virtual void makVrv::DtIndirectGeometryDebugging::displayGeometryInstances ( )
protectedvirtual

Display the instance table for the selected indirect geometry.

virtual void makVrv::DtIndirectGeometryDebugging::displaySelectedInstanceInfo ( )
protectedvirtual

Display detailed info for the selected instance.

virtual void makVrv::DtIndirectGeometryDebugging::showInstancePositionShape ( const InstanceDebugInfo &  info) const
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.

Member Data Documentation

const float makVrv::DtIndirectGeometryDebugging::theDefaultIdColumnWidth
static
const float makVrv::DtIndirectGeometryDebugging::theDefaultAddressColumnWidth
static
const float makVrv::DtIndirectGeometryDebugging::theDefaultCountColumnWidth
static
const ImVec4 makVrv::DtIndirectGeometryDebugging::theDefaultImguiHighlightColor
static
const ImVec4 makVrv::DtIndirectGeometryDebugging::theDefaultImguiTextHighlightColor
static
DtDe& makVrv::DtIndirectGeometryDebugging::myDe
protected
std::set<IndirectGeometryDebugInfo> makVrv::DtIndirectGeometryDebugging::myIndirectGeometryInfos
protected
std::set<RegistrarDebugInfo> makVrv::DtIndirectGeometryDebugging::myRegistrarInfos
protected
std::vector<RegistrarModelEntryDebugInfo> makVrv::DtIndirectGeometryDebugging::myRegistrarModelEntryInfos
protected
std::string makVrv::DtIndirectGeometryDebugging::mySelectedRegistrarAddress
protected
std::string makVrv::DtIndirectGeometryDebugging::myLastSelectedRegistrarAddress
protected
int makVrv::DtIndirectGeometryDebugging::mySelectedRegistrarModelId
protected
int makVrv::DtIndirectGeometryDebugging::myLastSelectedRegistrarModelId
protected
RegistrarModelDebugInfo makVrv::DtIndirectGeometryDebugging::mySelectedRegistrarModelInfo
protected
ImGuiTextFilter makVrv::DtIndirectGeometryDebugging::myGeometryAddressFilter
protected

filter for narrowing the geometry table by address

std::vector<InstanceDebugInfo> makVrv::DtIndirectGeometryDebugging::myInstanceInfos
protected
std::string makVrv::DtIndirectGeometryDebugging::mySelectedGeometryAddress
protected
std::string makVrv::DtIndirectGeometryDebugging::mySelectedGeometryName
protected
int makVrv::DtIndirectGeometryDebugging::mySelectedInstanceIndex
protected
ImGuiTextFilter makVrv::DtIndirectGeometryDebugging::myInstanceFilter
protected

Filter for the instance table (matches instance id or model name).

bool makVrv::DtIndirectGeometryDebugging::myShowIndirectGeometryInfo
protected
bool makVrv::DtIndirectGeometryDebugging::myShowRegistrarModelNames
protected
bool makVrv::DtIndirectGeometryDebugging::myShowSelectedRegistrarModelInfo
protected
bool makVrv::DtIndirectGeometryDebugging::myShowModelInfoDofPathsDialog
protected
bool makVrv::DtIndirectGeometryDebugging::myShowModelInfoTextureNamesDialog
protected
bool makVrv::DtIndirectGeometryDebugging::myShowGeometryInstances
protected
bool makVrv::DtIndirectGeometryDebugging::myShowSelectedInstanceInfo
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)