VR-Engage  2.3
Loading...
Searching...
No Matches
makVre::DtVortexMaterialDebugHelpers Class Referencefinal

Detailed Description

Owns the selection state for the runtime material table, terrain material mappings, and active dynamics contacts displayed by DtVortexDebug.

#include <vortexMaterialDebugHelpers.h>

Classes

struct  DtDynamicsContactSelection
 
struct  DtMaterialSelectionState
 

Public Types

enum class  DtMaterialInspectorSource { None , RigidBodyResponseModel , SurfaceMaterialMapper }
 

Public Member Functions

 DtVortexMaterialDebugHelpers ()=default
 
 ~DtVortexMaterialDebugHelpers ()=default
 
 DtVortexMaterialDebugHelpers (const DtVortexMaterialDebugHelpers &)=delete
 
DtVortexMaterialDebugHelpers & operator= (const DtVortexMaterialDebugHelpers &)=delete
 
void renderMainImgui (DtVortexPhysicalWorld *physicalWorld, Vx::VxUniverse *universe)
 
void renderExtraImguiWindows (Vx::VxUniverse *universe)
 

Protected Member Functions

Vx::VxMaterialTable * rigidBodyResponseModelMaterialTable (Vx::VxUniverse *universe) const
 
void resetSelections ()
 

Protected Attributes

Vx::VxUniverse * myUniverse = nullptr
 
bool myDynamicsContactInspectorOpen = false
 
DtDynamicsContactSelection myDynamicsContactSelection
 
DtMaterialSelectionState myRigidBodyResponseModelMaterialSelection
 
std::string mySelectedSurfaceMaterialMapperMaterialName
 
bool myMaterialInspectorOpen = false
 
DtMaterialInspectorSource myMaterialInspectorSource = DtMaterialInspectorSource::None
 

Member Enumeration Documentation

◆ DtMaterialInspectorSource

Identifies the source displayed by the material inspector window.

Enumerator
None 

No material source is selected.

RigidBodyResponseModel 

The active universe rigid-body response-model material table.

SurfaceMaterialMapper 

A material resolved by the terrain surface mapper.

Constructor & Destructor Documentation

◆ DtVortexMaterialDebugHelpers() [1/2]

makVre::DtVortexMaterialDebugHelpers::DtVortexMaterialDebugHelpers ( )
default

Constructor.

Referenced by DtVortexMaterialDebugHelpers(), and operator=().

◆ ~DtVortexMaterialDebugHelpers()

makVre::DtVortexMaterialDebugHelpers::~DtVortexMaterialDebugHelpers ( )
default

Destructor.

◆ DtVortexMaterialDebugHelpers() [2/2]

makVre::DtVortexMaterialDebugHelpers::DtVortexMaterialDebugHelpers ( const DtVortexMaterialDebugHelpers & )
delete

Deleted copy constructor.

References DtVortexMaterialDebugHelpers().

Member Function Documentation

◆ operator=()

DtVortexMaterialDebugHelpers & makVre::DtVortexMaterialDebugHelpers::operator= ( const DtVortexMaterialDebugHelpers & )
delete

Deleted copy-assignment operator.

References DtVortexMaterialDebugHelpers().

◆ renderMainImgui()

void makVre::DtVortexMaterialDebugHelpers::renderMainImgui ( DtVortexPhysicalWorld * physicalWorld,
Vx::VxUniverse * universe )

Renders material and contact sections in the main Vortex debug panel.

Updates selections while rendering active contacts, runtime materials, and terrain surface-to-material mappings.

Parameters
physicalWorldCurrent Vortex physical world
universeCurrent Vortex universe, or nullptr when no universe is active

◆ renderExtraImguiWindows()

void makVre::DtVortexMaterialDebugHelpers::renderExtraImguiWindows ( Vx::VxUniverse * universe)

Renders the detached material and contact inspector windows.

Renders details for selections made by renderMainImgui().

Parameters
universeCurrent Vortex universe, or nullptr when no universe is active

◆ rigidBodyResponseModelMaterialTable()

Vx::VxMaterialTable * makVre::DtVortexMaterialDebugHelpers::rigidBodyResponseModelMaterialTable ( Vx::VxUniverse * universe) const
protected

Returns the material table owned by the current universe response model.

Parameters
universeCurrent Vortex universe
Returns
A non-owning material-table pointer, or nullptr if unavailable

◆ resetSelections()

void makVre::DtVortexMaterialDebugHelpers::resetSelections ( )
protected

Clears selections when the active universe changes.

Member Data Documentation

◆ myUniverse

Vx::VxUniverse* makVre::DtVortexMaterialDebugHelpers::myUniverse = nullptr
protected

Non-owning pointer used to detect universe changes.

◆ myDynamicsContactInspectorOpen

bool makVre::DtVortexMaterialDebugHelpers::myDynamicsContactInspectorOpen = false
protected

Whether the detached contact inspector is visible.

◆ myDynamicsContactSelection

DtDynamicsContactSelection makVre::DtVortexMaterialDebugHelpers::myDynamicsContactSelection
protected

Active contact selected for inspection.

◆ myRigidBodyResponseModelMaterialSelection

DtMaterialSelectionState makVre::DtVortexMaterialDebugHelpers::myRigidBodyResponseModelMaterialSelection
protected

Selection in the rigid-body response-model material table.

Supports selecting a material pair to inspect its contact material.

◆ mySelectedSurfaceMaterialMapperMaterialName

std::string makVre::DtVortexMaterialDebugHelpers::mySelectedSurfaceMaterialMapperMaterialName
protected

Single material selected in the surface mapper.

◆ myMaterialInspectorOpen

bool makVre::DtVortexMaterialDebugHelpers::myMaterialInspectorOpen = false
protected

Whether the detached material inspector is visible.

◆ myMaterialInspectorSource

DtMaterialInspectorSource makVre::DtVortexMaterialDebugHelpers::myMaterialInspectorSource = DtMaterialInspectorSource::None
protected

Material source displayed in the detached inspector.

Note
None when no inspector is open.

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