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

OSG Drawable that renders position-only debug spheres for all active ballistic projectiles when DebugTrajectoryVis is enabled.

Registered as a child of the plain model-set root before the ShowTracers visualizer root is created. On each cull pass, accept() calls debugDrawPositions() and writes green spheres keyed by bullet index into DtDebugShapes. When a camera also has ShowTracers enabled, the DtChannelSpecificGroup for that visualizer root is traversed afterwards (it is a later sibling) and DtBallisticGeometry::debugDrawCullResults() overwrites the same name keys with cull-state-colored spheres. No per-view exclusion logic is required because child ordering guarantees that the overwrite always happens last.

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

Public Member Functions

 DtBallisticDebugGeometry (DtDe &de, DtBallisticComputeComponent &computeComponent)
 
virtual ~DtBallisticDebugGeometry ()
 
void shutdown ()
 
virtual void accept (osg::NodeVisitor &nv) override
 
virtual void drawImplementation (osg::RenderInfo &renderInfo) const override
 
virtual void releaseGLObjects (osg::State *state) const override
 
virtual void accept (osg::PrimitiveFunctor &functor) const override
 

Private Member Functions

 DtBallisticDebugGeometry ()=delete
 
 DtBallisticDebugGeometry (const DtBallisticDebugGeometry &)=delete
 
DtBallisticDebugGeometry & operator= (const DtBallisticDebugGeometry &)=delete
 

Private Attributes

DtDe & myDe
 
DtBallisticComputeComponent * myComputeComponent
 
const DtBallisticRunTimeSettings & myBallisticRunTimeSettings
 

Constructor & Destructor Documentation

makVrv::DtBallisticDebugGeometry::DtBallisticDebugGeometry ( DtDe &  de,
DtBallisticComputeComponent &  computeComponent 
)

Constructor.

Parameters
deSimulation environment.
computeComponentShared compute component providing the GPU state buffer.
virtual makVrv::DtBallisticDebugGeometry::~DtBallisticDebugGeometry ( )
virtual

Virtual destructor.

makVrv::DtBallisticDebugGeometry::DtBallisticDebugGeometry ( )
privatedelete

Default construction is not supported.

makVrv::DtBallisticDebugGeometry::DtBallisticDebugGeometry ( const DtBallisticDebugGeometry &  )
privatedelete

Copy construction is not supported.

Member Function Documentation

void makVrv::DtBallisticDebugGeometry::shutdown ( )

Severs this node from the compute component before that component is released on a display-config reload.

The OSG scene graph may keep this drawable alive after the owning manager deletes the compute component. Nulling the pointer here makes accept() a safe no-op for the remainder of this node's lifetime, preventing a virtual call through freed memory during the next cull traversal. This mirrors DtBallisticSpatialGridNode::shutdown().

virtual void makVrv::DtBallisticDebugGeometry::accept ( osg::NodeVisitor &  nv)
overridevirtual

Performs the per-camera position-only sphere draw during the cull pass.

virtual void makVrv::DtBallisticDebugGeometry::drawImplementation ( osg::RenderInfo &  renderInfo) const
overridevirtual

Required OSG Drawable draw entry point; all drawing is done in accept().

virtual void makVrv::DtBallisticDebugGeometry::releaseGLObjects ( osg::State *  state) const
overridevirtual

Releases all OpenGL objects associated with this geometry.

virtual void makVrv::DtBallisticDebugGeometry::accept ( osg::PrimitiveFunctor &  functor) const
overridevirtual

Overrides osg::Drawable::accept() for primitive functor support.

DtBallisticDebugGeometry& makVrv::DtBallisticDebugGeometry::operator= ( const DtBallisticDebugGeometry &  )
privatedelete

Copy assignment is not supported.

Member Data Documentation

DtDe& makVrv::DtBallisticDebugGeometry::myDe
private
DtBallisticComputeComponent* makVrv::DtBallisticDebugGeometry::myComputeComponent
private
const DtBallisticRunTimeSettings& makVrv::DtBallisticDebugGeometry::myBallisticRunTimeSettings
private

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)