VR-Forces 4.10 Class Documentation
 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) 2020 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
16 #include <osg/Node>
17 
18 namespace osg
19 {
20  class NodeVisitor;
21 }
22 
23 namespace makVrv
24 {
25  class DtIndirectGeometryGrid;
26  class DtDe;
27  class DtCellGridVisManager;
28  class DtIndirectGeometry;
29  class DtOsgCullVisitor;
30 
36  class DT_DLL_VRVOSG DtIndirectGeometryGridNode : public osg::Node
37  {
38  public:
41 
42  protected:
44  virtual ~DtIndirectGeometryGridNode();
45  private:
49  DtIndirectGeometryGridNode &operator=(const DtIndirectGeometryGridNode &other) = delete;
50 
51  public:
54  virtual void accept(osg::NodeVisitor& nv) override;
55 
57  virtual void releaseGLObjects(osg::State* state) const;
58 
62  virtual void enableCellCullDebugging(bool val);
63 
65  virtual bool enabledCellCullDebugging(void) const;
66 
67  protected:
69  virtual void addGeometry(DtIndirectGeometry* indirectGeometry, DtOsgCullVisitor* cullVisitor);
70 
72  virtual void addDebugDrawable(osg::Drawable* drawable, DtOsgCullVisitor* cullVisitor);
73 
74  protected:
77 
80 
83  };
84 
88  {
89  public:
92 
95 
97  virtual DtIndirectGeometryGridNode* create(DtIndirectGeometryGrid& grid) const;
98 
101  static DtIndirectGeometryGridNodeCreator& instance(DtDe& de);
102 
104  static const std::string& theClassName();
105  protected:
107  };
108 }
Virtual base class.
Definition: DtVirtualBaseClass.h:19
parent node for all the indirect geometries within a
Definition: DtIndirectGeometryGridNode.h:36
DtDe & myDe
reference to the DtDe
Definition: DtIndirectGeometryGridNode.h:79
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtIndirectGeometryGrid & myGrid
reference to the grid
Definition: DtIndirectGeometryGridNode.h:76
DtDe & myDe
Definition: DtIndirectGeometryGridNode.h:106
DtOsgCullVisitor will inspect the camera to see which visual mode is active.
Definition: DtOsgCullVisitor.h:25
Contains makVrv::DtVirtualBaseClass class.
bool myEnableCullDebugging
are we debug rendering?
Definition: DtIndirectGeometryGridNode.h:82
\ ::, which allows us to hook into our indirect engine to render using indirect rendering...
Definition: DtIndirectGeometry.h:102
creator for DtIndirectGeometryGridNode
Definition: DtIndirectGeometryGridNode.h:87
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Manages a bunch of &#39;cells&#39; for a given cell size (similar to a sparse octree) each cell has a...
Definition: DtIndirectGeometryGrid.h:44

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)