VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtBallisticRenderer.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2026 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
14 
16 
17 #include <osg/Drawable>
18 #include <osg/RenderInfo>
19 #include <osg/Matrixd>
20 #include <osg/ref_ptr>
21 
22 namespace osg
23 {
24  class Camera;
25 }
26 
27 namespace makVrv
28 {
29  class DtDe;
30  class DtThreadCameraStreamDataManager;
31  class DtBallisticGeometry;
32  class DtBallisticRunTimeSettings;
33  class DtKeyedData;
34 
37 
40 
42  template <>
43  inline const char* creatorTypeName<DtBallisticRenderer>(void) { return "DtBallisticRendererCreator"; }
44 
46  class DT_DLL_VRVOSG DtBallisticRenderer : public osg::Drawable
47  {
48  public:
50 
51  protected:
56  DtBallisticRenderer(DtDe& de, const std::string& name);
57 
59  virtual ~DtBallisticRenderer();
60 
61  private:
63  DtBallisticRenderer() = delete;
64 
66  DtBallisticRenderer(const DtBallisticRenderer& rhs) = delete;
67 
69  DtBallisticRenderer& operator=(const DtBallisticRenderer& rhs) = delete;
70 
71  public:
73  virtual void accept(osg::NodeVisitor& nv) override;
74 
76  virtual void drawImplementation(osg::RenderInfo& renderInfo) const override;
77 
83  virtual void releaseGLObjects(osg::State* state) const override;
84 
91  virtual DtBallisticRendererUserData* add(DtBallisticGeometry* ballisticGeometry, const osg::Matrixd& modelViewMatrix, const osg::Camera* osgCamera);
92 
94  static const std::string& theClassName(void);
95 
96  protected:
99 
101  const std::string myName;
102 
105 
108 
111 
114  };
115 
116 } // namespace makVrv
const DtBallisticRunTimeSettings & myBallisticRunTimeSettings
Reference to the shared ballistic runtime settings.
Definition: DtBallisticRenderer.h:104
Manager for DtThreadCameraStreamData Holds them as cameras come in. Deletes them as cameras go out (v...
Definition: DtThreadCameraStreamDataManager.h:86
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
const char * creatorTypeName< DtBallisticRenderer >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtBallisticRenderer.h:43
OSG Drawable that drives per-camera GPU cull and draw for a ballistic spatial cell.
Definition: DtBallisticGeometry.h:58
osg::ref_ptr< osg::StateSet > myDefaultDrawStateSet
Default OSG state set (render bin) for draw components.
Definition: DtBallisticRenderer.h:113
DtDe & myDe
Reference to the simulation environment.
Definition: DtBallisticRenderer.h:98
DtThreadCameraStreamDataManager & myTcsDataManager
Manager for per-camera/thread stream data.
Definition: DtBallisticRenderer.h:107
DtBallisticRendererUserDataCreator & myUserDataCreator
Factory for creating per-camera user-data instances.
Definition: DtBallisticRenderer.h:110
OSG Drawable that batches and issues GPU draw calls for all ballistic geometries. ...
Definition: DtBallisticRenderer.h:46
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:23
Contains makVrv::DtBallisticRendererUserData class.
friend DtBallisticRendererCreator
Definition: DtBallisticRenderer.h:49
Singleton holding runtime-tweakable settings for the ballistic system.
Definition: DtBallisticRunTimeSettings.h:43
DtVirtualBaseClassCreator< DtBallisticRenderer, const std::string & > DtBallisticRendererCreator
creator
Definition: DtBallisticRenderer.h:36
Contains DLL export macros.
Per-camera data used by DtBallisticRenderer to drive GPU cull and draw for one camera.
Definition: DtBallisticRendererUserData.h:71
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
const std::string myName
Name of this renderer node.
Definition: DtBallisticRenderer.h:101

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)