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 | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtBallisticRenderer Class Reference

OSG Drawable that batches and issues GPU draw calls for all ballistic geometries.

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

Public Member Functions

virtual void accept (osg::NodeVisitor &nv) override
 
virtual void drawImplementation (osg::RenderInfo &renderInfo) const override
 
virtual void releaseGLObjects (osg::State *state) const override
 
virtual
DtBallisticRendererUserData * 
add (DtBallisticGeometry *ballisticGeometry, const osg::Matrixd &modelViewMatrix, const osg::Camera *osgCamera)
 

Static Public Member Functions

static const std::string & theClassName (void)
 

Public Attributes

friend DtBallisticRendererCreator
 

Protected Member Functions

 DtBallisticRenderer (DtDe &de, const std::string &name)
 
virtual ~DtBallisticRenderer ()
 

Protected Attributes

DtDe & myDe
 
const std::string myName
 
const DtBallisticRunTimeSettings & myBallisticRunTimeSettings
 
DtThreadCameraStreamDataManager & myTcsDataManager
 
DtBallisticRendererUserDataCreator & myUserDataCreator
 
osg::ref_ptr< osg::StateSet > myDefaultDrawStateSet
 

Private Member Functions

 DtBallisticRenderer ()=delete
 
 DtBallisticRenderer (const DtBallisticRenderer &rhs)=delete
 
DtBallisticRenderer & operator= (const DtBallisticRenderer &rhs)=delete
 

Constructor & Destructor Documentation

makVrv::DtBallisticRenderer::DtBallisticRenderer ( DtDe &  de,
const std::string &  name 
)
protected

Protected constructor; use the creator factory to instantiate.

Parameters
deSimulation environment.
nameName for this renderer node.
virtual makVrv::DtBallisticRenderer::~DtBallisticRenderer ( )
protectedvirtual

Virtual destructor.

makVrv::DtBallisticRenderer::DtBallisticRenderer ( )
privatedelete

Default construction is not supported.

makVrv::DtBallisticRenderer::DtBallisticRenderer ( const DtBallisticRenderer &  rhs)
privatedelete

Copy construction is not supported.

Member Function Documentation

DtBallisticRenderer& makVrv::DtBallisticRenderer::operator= ( const DtBallisticRenderer &  rhs)
privatedelete

Copy assignment is not supported.

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

Overrides osg::Drawable::accept() to collect per-camera draw data during the cull pass.

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

Issues all batched draw calls for the current frame.

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

Releases per-camera GL objects for all live observers on GL context reset.

Iterates all per-camera DtBallisticRendererUserData entries and calls releaseGLObjects() on each, ensuring GPU buffer handles are invalidated and buffers are re-created on the next cull pass.

virtual DtBallisticRendererUserData* makVrv::DtBallisticRenderer::add ( DtBallisticGeometry *  ballisticGeometry,
const osg::Matrixd &  modelViewMatrix,
const osg::Camera *  osgCamera 
)
virtual

Registers a geometry for batched drawing on a specific camera.

Parameters
ballisticGeometryGeometry to register.
modelViewMatrixCurrent model-view matrix for this camera.
osgCameraOSG camera performing the cull traversal.
Returns
The per-camera user data for this camera, or nullptr if lookup failed.
static const std::string& makVrv::DtBallisticRenderer::theClassName ( void  )
static

Returns the OSG class name string for this type.

Member Data Documentation

friend makVrv::DtBallisticRenderer::DtBallisticRendererCreator
DtDe& makVrv::DtBallisticRenderer::myDe
protected

Reference to the simulation environment.

const std::string makVrv::DtBallisticRenderer::myName
protected

Name of this renderer node.

const DtBallisticRunTimeSettings& makVrv::DtBallisticRenderer::myBallisticRunTimeSettings
protected

Reference to the shared ballistic runtime settings.

DtThreadCameraStreamDataManager& makVrv::DtBallisticRenderer::myTcsDataManager
protected

Manager for per-camera/thread stream data.

DtBallisticRendererUserDataCreator& makVrv::DtBallisticRenderer::myUserDataCreator
protected

Factory for creating per-camera user-data instances.

osg::ref_ptr<osg::StateSet> makVrv::DtBallisticRenderer::myDefaultDrawStateSet
protected

Default OSG state set (render bin) for draw components.


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)