VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCellIndirectGeo.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
16 
17 #include <osg/Matrixd>
18 #include <osg/Group>
19 
20 
21 namespace makVrv
22 {
23  class DtDe;
24  class DtIndirectGeometry;
25  class DtIndirectGeometryRegistrar;
26  class DtIndirectGeometryCreator;
27  class DtCellIndirectGeo;
28  class DtIndirectGeoIntersectionGroupCreator;
29 
33  {
34  public:
37  DtIndirectGeometryRegistrar* registrar,
38  DtIndirectGeometryCreator &indirectGeomCreator,
39  DtIndirectGeoComputeBoundCallbackCreator<DtCellIndirectGeo> &indirectGeoComputeBoundCallbackCreator,
40  DtIndirectGeoIntersectionGroupCreator &indirectGeoIntersectGroupCreator);
41 
43  virtual ~DtCellIndirectGeo();
44 
48  virtual void addInstance(const osg::Matrixd& instanceXForm, int modelId, osg::Node* modelNode);
49 
51  virtual void setParent(const osg::Group* parent);
52 
58  virtual const osg::BoundingBoxd& boundingBox(void) const;
59 
60  protected:
63  virtual void expandBoundingBox(osg::Node* modelNode, const osg::Matrixd& instanceXForm);
64  protected:
66 
67  osg::ref_ptr<DtIndirectGeometry> myIndirectGeometry;
68  osg::ref_ptr<osg::Group> myIndirectGeoIntersectionGroup;
69 
71  osg::BoundingBoxd myBoundingBox;
73 
75  private:
78  };
79 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)