VR-Forces 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) 2023 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <vrvMath/DtVector3.h>
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  , DtModelSetId modelSet
38  , float modelScale
39  , float modelRadius
40  , bool mapDofsSwitchesSequences
41  , const std::string& modelName
42  , const int modelId
43  , const int lightPointGroupId
45  , bool trackLifeTime
46  , const std::string& trackName
47  );
48 
51 
54 
55  private:
58 
61  public:
64 
67 
72 
75 
77 
79  const std::string myModelName;
80 
82  const int myModelId;
83 
85  const float myModelScale;
86 
88  const float myModelRadius;
89 
92 
93 
95  const DtModel* myModel;
96 
99 
103 
105 
108 
110  const bool myTrackLifeTime;
111 
113  const std::string myTrackName;
114  };
115 }
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:71
const int myLightPointGroupId
Definition: DtIndirectEntityManagerInstance.h:104
const std::string myTrackName
the display name of the entity being tracked (for debugging)
Definition: DtIndirectEntityManagerInstance.h:113
Definition: featureContext.h:37
const std::string myModelName
These are constants for the duration of this instance within the indirect entity manager.
Definition: DtIndirectEntityManagerInstance.h:79
const bool myMapDofsSwitchesSequences
whether dofs, switches, sequences are to be mapped typically: true for articulated model...
Definition: DtIndirectEntityManagerInstance.h:102
const DtModelSetId myModelSet
model set
Definition: DtIndirectEntityManagerInstance.h:98
DtIndirectEntityManagerInstance()=delete
not allowed
const float myModelScale
scale
Definition: DtIndirectEntityManagerInstance.h:85
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:42
3 dimensional vector
const bool myTrackLifeTime
whether tracking (for debugging)
Definition: DtIndirectEntityManagerInstance.h:110
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:66
const DtModelDefinition & myModelDefinition
reference to the model definition
Definition: DtIndirectEntityManagerInstance.h:91
const float myModelRadius
radius
Definition: DtIndirectEntityManagerInstance.h:88
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:56
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:82
DtModelSetId
Definition: DtModelSetEnums.h:19
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
Vector3_int myCellId
the cell id within the grid
Definition: DtIndirectEntityManagerInstance.h:74

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)