VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectGeometryGridNode.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2025 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
17 
18 #include <osg/Node>
19 
20 namespace osg
21 {
22  class NodeVisitor;
23 }
24 
25 namespace makVrv
26 {
27  class DtIndirectGeometryGrid;
28  class DtDe;
29  class DtCellGridVisManager;
30  class DtIndirectGeometry;
31  class DtOsgCullVisitor;
32 
35 
38 
40  template <>
41  inline const char* creatorTypeName<DtIndirectGeometryGridNode>(void) { return "DtIndirectGeometryGridNodeCreator"; }
42 
48  class DT_DLL_VRVOSG DtIndirectGeometryGridNode : public osg::Node
49  {
50  public:
52 
54  virtual const char* className() const { return "DtIndirectGeometryGridNode"; }
55 
56  protected:
59 
61  virtual ~DtIndirectGeometryGridNode();
62  private:
66  DtIndirectGeometryGridNode &operator=(const DtIndirectGeometryGridNode &other) = delete;
67 
68  public:
71  virtual void accept(osg::NodeVisitor& nv) override;
72 
74  virtual void releaseGLObjects(osg::State* state) const;
75 
79  virtual void enableCellCullDebugging(bool val);
80 
82  virtual bool enabledCellCullDebugging(void) const;
83 
85  virtual void setMaxLodDistance( double dist );
86 
88  const DtIndirectGeometryGrid& grid() const;
89 
90  protected:
92  virtual void addGeometry(DtIndirectGeometry* indirectGeometry, DtOsgCullVisitor* cullVisitor);
93 
95  virtual void addDebugDrawable(osg::Drawable* drawable, DtOsgCullVisitor* cullVisitor);
96 
99  virtual void getFrustumAndEye( Frustum_64& frustum, Vector3_64& eyePosition, const DtOsgCullVisitor* cullVisitor, DtDe& de, bool ignoreNearFar );
100  protected:
103 
106 
110 
112 
114  };
115 }
friend DtIndirectGeometryGridNodeCreator
Definition: DtIndirectGeometryGridNode.h:51
double myLastUpdateTime
Definition: DtIndirectGeometryGridNode.h:111
parent node for all the indirect geometries within a
Definition: DtIndirectGeometryGridNode.h:48
DtVirtualBaseClassCreator< DtIndirectGeometryGridNode, DtIndirectGeometryGrid & > DtIndirectGeometryGridNodeCreator
creator
Definition: DtIndirectGeometryGridNode.h:34
DtDe & myDe
reference to the DtDe
Definition: DtIndirectGeometryGridNode.h:105
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtIndirectGeometryGrid & myGrid
reference to the grid
Definition: DtIndirectGeometryGridNode.h:102
const char * creatorTypeName< DtIndirectGeometryGridNode >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtIndirectGeometryGridNode.h:41
virtual const char * className() const
needed by scene graph visualizer
Definition: DtIndirectGeometryGridNode.h:54
Camera forward declarations.
double myMaxLodDistance
Definition: DtIndirectGeometryGridNode.h:113
DtOsgCullVisitor will inspect the camera to see which visual mode is active. If the visual mode is a ...
Definition: DtOsgCullVisitor.h:27
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:23
This class inherits from.
Definition: DtIndirectGeometry.h:122
bool myEnableCullVisualDebugging
are we debug rendering?
Definition: DtIndirectGeometryGridNode.h:108
bool myEnableCullLogging
Definition: DtIndirectGeometryGridNode.h:109
Contains DLL export macros.
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
Manages a bunch of &#39;cells&#39; for a given cell size (similar to a sparse octree) each cell has a...
Definition: DtIndirectGeometryGrid.h:62

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)