27 #include <osg/Geometry>
28 #include <osg/Texture>
29 #include <osg/Referenced>
31 #include <tbb/concurrent_queue.h>
32 #include <tbb/atomic.h>
38 #define INDIRECTGEOMETRYREGISTRAR_DEBUG 0
52 class DtIndirectGeometryRegistrar;
54 class DtIndirectTextureCollectionPolicy;
56 class DtAggregatedGeometry;
58 class DtOsgShaderManager;
60 struct DtAggregateModelInfo;
133 virtual void setName(
const std::string& name);
141 bool cullFaceEnabled =
false,
146 virtual void processRegisterModelQueue(
DtOsgRenderer* renderer);
149 virtual bool beingProcessed();
152 virtual unsigned int rebuildIfNeeded(
const osg::RenderInfo& renderInfo);
155 virtual unsigned int numModelsInQueue()
const;
158 virtual int numModels(
void)
const;
161 virtual int modelId(
int index)
const;
164 virtual int numGeometriesForModelID(
int modelId)
const;
167 virtual bool isModelDownloaded(
int modelId)
const;
179 virtual void bindBuffers()
const;
184 virtual void unbindBuffers()
const;
201 virtual GLenum indicesType(
void)
const;
206 virtual void releaseGLObjects(osg::State* state)
const;
210 virtual bool registeredModelsDirty()
const;
216 virtual void setPagerHandlesModelLoading(
bool value);
217 virtual bool pagerHandlesModelLoading();
220 virtual boost::mutex& addingModelsMutex();
226 bool cullFaceEnabled =
true,
232 virtual bool allTexturesReady(
const int modelId,
unsigned int contextID)
const;
Definition: DtIndirectGeometryRegistrar.h:242
The DtOsgRenderer is the component responsible for rendering 3D images onto the screen via OpenSceneG...
Definition: DtOsgRenderer.h:90
DtIndirectPolygonOffset myPolygonOffset
Definition: DtIndirectGeometryRegistrar.h:259
QueueRegisterModelOps myQueueRegisterModelOps
Definition: DtIndirectGeometryRegistrar.h:264
contains the information which indirect needs for all geometry found by the geometry aggregator after...
Definition: DtAggregatedGeometry.h:91
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtVirtualBaseClassCreator< DtIndirectGeometryRegistrar, DtIndirectTextureCollectionPolicy & > DtIndirectGeometryRegistrarCreator
creator
Definition: DtIndirectGeometryRegistrar.h:63
Contains the DtIndirectTextureProcessor class declaration.
bool myDaylightControlled
Definition: DtIndirectGeometryRegistrar.h:260
Indirect geometry can have multiple models and their corresponding ids registered in it...
Definition: DtIndirectGeometryRegistrar.h:106
Abstract class to look in the stateset and collect textures specified via its template The effect tex...
Definition: DtIndirectTextureCollectionPolicy.h:38
std::string myModelFileName
Definition: DtIndirectGeometryRegistrar.h:257
bool myCullFaceEnabled
Definition: DtIndirectGeometryRegistrar.h:258
Indirect rendering works because we are able to combine multiple geometries into a single 'aggregated...
Definition: DtIndirectGeometryAggregator.h:83
osg::ref_ptr< const osg::Node > myModel
Definition: DtIndirectGeometryRegistrar.h:255
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:22
Contains the DtIndirectEffectTexturesTemplate class declaration.
DtIndirectEffectTexturesTemplate myEffectTexturesState
Definition: DtIndirectGeometryRegistrar.h:238
unsigned int myLastRebuildNumber
Definition: DtIndirectGeometryRegistrar.h:271
Simple state/glmodes class for handling setting up modes It can now handle generic state modes and at...
Definition: DtIndirectGeometryStateManager.h:31
osg::ref_ptr< DtIndirectTextureProcessor > myTextureProcessor
Definition: DtIndirectGeometryRegistrar.h:268
tbb::atomic< bool > myBeingProcessed
Definition: DtIndirectGeometryRegistrar.h:274
DtIndirectGeometryAggregator * myAggregator
Definition: DtIndirectGeometryRegistrar.h:273
Contains the DtIndirectGeometryStateManager class declaration.
const DtIndirectTextureCollectionPolicy * myTextureCollectionPolicy
Definition: DtIndirectGeometryRegistrar.h:266
contains the Per Model info which DtAggregatedGeometry needs It is owned by the Indirect geometry reg...
Definition: DtAggregateModelInfo.h:31
DtDe & myDe
DtDe reference.
Definition: DtIndirectGeometryRegistrar.h:282
bool myPagerHandlesModelLoading
Definition: DtIndirectGeometryRegistrar.h:240
Definition: DtIndirectTextureProcessor.h:40
bool myRegisteredModelsDirty
Definition: DtIndirectGeometryRegistrar.h:270
boost::mutex myAddingModelsMutex
Definition: DtIndirectGeometryRegistrar.h:275
Contains makVrv::DtIndirectSwitchManager class.
DtOsgShaderManager injects custom shaders into the scenes, and keeps their uniform parameters set to ...
Definition: DtOsgShaderManager.h:41
unsigned int GLenum
Definition: DtGlTextureBufferObject.h:18
Contains makVrv::DtIndirectLodManager class.
DtIndirectGeometryStateManager myMutableStateContainer
mutable since it is needed to be used in drawImplementaion for the indirect geometry not private so i...
Definition: DtIndirectGeometryRegistrar.h:279
non virtual container class for defining a polygon offset state
Definition: DtIndirectPolygonOffset.h:18
DtAggregatedGeometry * myAggregatedGeometry
Definition: DtIndirectGeometryRegistrar.h:236
Contains DLL export macros.
int myModelId
Definition: DtIndirectGeometryRegistrar.h:254
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
tbb::concurrent_queue< RegisterModelOp > QueueRegisterModelOps
Definition: DtIndirectGeometryRegistrar.h:263
Contains the DtIndirectGeometryAggregator class declaration.
DtOsgShaderManager & myShaderManager
Definition: DtIndirectGeometryRegistrar.h:284
friend DtIndirectGeometryRegistrarCreator
friend class creator so that DtIndirectGeometryRegistrar can only be created by the creator ...
Definition: DtIndirectGeometryRegistrar.h:110
Class that allows you to abstractly register effect texture types the effect texture types are client...
Definition: DtIndirectEffectTexturesTemplate.h:40
const char * creatorTypeName< DtIndirectGeometryRegistrar >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtIndirectGeometryRegistrar.h:70