VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectEntityManagerInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
17 
18 #include <string>
19 
20 namespace makVrv
21 {
22  class DtModelDefinition;
23  class DtOsgModelInstance;
24  class DtModel;
25 
26  class DtIndirectGeometryGrid;
27 
31  {
32  public:
35  , const DtOsgModelInstance& modelInstance
36  , const DtModel* model
37  , int modelSet
38  , float modelScale
39  , float modelRadius
40  , bool mapDofsSwitchesSequences
41  , const std::string& modelName
42  , const int modelId
43  , const int lightPointGroupId
45  );
46 
49 
52 
53  private:
56 
59  public:
62 
65 
70 
73 
75 
77  const std::string myModelName;
78 
80  const int myModelId;
81 
83  const float myModelScale;
84 
86  const float myModelRadius;
87 
90 
93 
95  const DtModel* myModel;
96 
98  const int myModelSet;
99 
103 
105 
108  };
109 }
internal structure for mapping a DtOsgArticulatedModel/DtOsgSimpleModel object to a corresponding ins...
Definition: DtIndirectEntityManagerInstance.h:30
osg::ref_ptr< DtIndirectEntityGeometry > myIndirectGeometry
the indirect geometry to which this instance belongs to Purposely hold a reference to avoid DtIndirec...
Definition: DtIndirectEntityManagerInstance.h:69
const int myLightPointGroupId
Definition: DtIndirectEntityManagerInstance.h:104
const std::string myModelName
These are constants for the duration of this instance within the indirect entity manager.
Definition: DtIndirectEntityManagerInstance.h:77
const bool myMapDofsSwitchesSequences
whether dofs, switches, sequences are to be mapped typically: true for articulated model...
Definition: DtIndirectEntityManagerInstance.h:102
DtIndirectEntityManagerInstance()=delete
not allowed
const float myModelScale
scale
Definition: DtIndirectEntityManagerInstance.h:83
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:38
3 dimensional vector
const DtOsgModelInstance & myModelInstance
reference to the model instance
Definition: DtIndirectEntityManagerInstance.h:92
The base class for simple OSG based model instances. This call can&#39;t be instantiated itself...
Definition: DtOsgModelInstance.h:77
DtIndirectEntityManagerInstance & operator=(const DtIndirectEntityManagerInstance &rhs)=delete
assignment
int myInstanceIdInIndirectGeometry
These are not constants for the duration of this instance within the indirect entity manager we chang...
Definition: DtIndirectEntityManagerInstance.h:64
const int myModelSet
model set
Definition: DtIndirectEntityManagerInstance.h:98
const DtModelDefinition & myModelDefinition
reference to the model definition
Definition: DtIndirectEntityManagerInstance.h:89
const float myModelRadius
radius
Definition: DtIndirectEntityManagerInstance.h:86
DtIndirectGeometryGrid * myGrid
back pointer to the grid which this instance belongs to
Definition: DtIndirectEntityManagerInstance.h:107
virtual ~DtIndirectEntityManagerInstance()
destructor
Contains the DtIndirectEntityGeometry class declaration.
A model which owns a single model instance. A DtModel is a managing container for a single DtModelIns...
Definition: DtModel.h:55
Contains DLL export macros.
const DtModel * myModel
reference to the model (DtOsgArticulatedModel/DtOsgSimpleModel)
Definition: DtIndirectEntityManagerInstance.h:95
const int myModelId
the model id
Definition: DtIndirectEntityManagerInstance.h:80
Manages a bunch of &#39;cells&#39; for a given cell size (similar to a sparse octree) each cell has a...
Definition: DtIndirectGeometryGrid.h:57
Vector3_int myCellId
the cell id within the grid
Definition: DtIndirectEntityManagerInstance.h:72

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)