VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectGeometryInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrvOsg/vrvOsg.h>
14 
16 
17 #include <osg/Node>
18 
19 namespace makVrv
20 {
21  struct DtAggregateModelInfo;
22 
26  {
27  public:
30 
32  DtIndirectGeometryInstance(int modelId,
33  const osg::Matrixd& xform,
35  const osg::NodePath& nodePath = osg::NodePath(),
37 
40 
43 
46 
48  void setModelId(int id);
49 
51  void setXForm(const osg::Matrixd& xForm);
52 
54  void setLodStack(const DtIndirectLodManager::DequeIndirectLodInfos& lodStack);
55 
57  void setNodePath(const osg::NodePath& nodePath);
58 
60  void setSwitchStack(const DtIndirectSwitchManager::DequeNodeSwitchInfoPairs& switchStack);
61 
63  int modelId() const;
64 
66  DtAggregateModelInfo * modelInfo() const;
67 
69  void setModelInfo(DtAggregateModelInfo * info);
70 
72  const osg::Matrixd& xForm() const;
73 
75  const DtIndirectLodManager::DequeIndirectLodInfos& lodStack() const;
76 
78  const osg::NodePath& nodePath() const;
79 
81  const DtIndirectSwitchManager::DequeNodeSwitchInfoPairs& switchStack() const;
82 
83  protected:
84  int myModelId;
85  osg::Matrixd myXForm;
87  osg::NodePath myNodePath;
90  };
91 
92 
93 }
non virtual container class for holding the information needed to create an indirect geometry instanc...
Definition: DtIndirectGeometryInstance.h:25
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtIndirectSwitchManager::DequeNodeSwitchInfoPairs mySwitchStack
Definition: DtIndirectGeometryInstance.h:88
std::deque< NodeSwitchInfoPair > DequeNodeSwitchInfoPairs
Definition: DtIndirectSwitchManager.h:72
int myModelId
Definition: DtIndirectGeometryInstance.h:84
DtGeometrySpecification class declaration.
contains the Per Model info which DtAggregatedGeometry needs It is owned by the Indirect geometry reg...
Definition: DtAggregatedGeometry.h:47
DtIndirectLodManager::DequeIndirectLodInfos myLodStack
Definition: DtIndirectGeometryInstance.h:86
Contains makVrv::DtIndirectSwitchManager class.
osg::NodePath myNodePath
Definition: DtIndirectGeometryInstance.h:87
Contains makVrv::DtIndirectLodManager class.
Contains DLL export macros.
std::deque< IndirectLodInfo > DequeIndirectLodInfos
Definition: DtIndirectLodManager.h:95
DtAggregateModelInfo * myModelInfo
Definition: DtIndirectGeometryInstance.h:89
osg::Matrixd myXForm
Definition: DtIndirectGeometryInstance.h:85

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)