27 #include <osg/Uniform>
30 #include <unordered_map>
33 #include <tbb/atomic.h>
44 class DtGlTextureBufferObject;
47 class DtThreadCameraStreamDataManager;
49 class DtLightingComponentShaderConstants;
77 virtual void update(
const std::vector<const DtLight*>& lights,
const osg::State& state,
const osg::Camera* camera);
80 virtual void updateLightSourceIndexBufferHandle(
const osg::Camera* camera,
DtGlBuffer* handle,
int maxNumLightSources,
bool createIfNeeded);
83 virtual void setDirty(
bool isDirty) { myDirty = isDirty; }
86 virtual bool dirty()
const {
return myDirty; }
90 virtual bool install(osg::StateSet* stateset);
93 virtual bool uninstall(osg::StateSet* stateset);
96 virtual bool isInstalled(
void)
const;
104 virtual void releaseGLObjects(
void);
107 virtual void slot_reloadShader();
113 virtual void bindRenderPassBuffers(
const osg::State& state);
116 virtual void slot_componentVisualizationModeChanged(
int mode);
118 virtual void slot_paramsChanged(
void);
Contains the DtLightingComponentStateAttribute class.
std::vector< osg::ref_ptr< osg::Uniform > > myUniforms
Definition: DtOsgLightingComponent.h:123
Manager for DtThreadCameraStreamData Holds them as cameras come in. Deletes them as cameras go out (v...
Definition: DtThreadCameraStreamDataManager.h:86
virtual void setDirty(bool isDirty)
Sets dirty state for reinstallation.
Definition: DtOsgLightingComponent.h:83
DtOsgLightingComponentTcsUserDataCreator & myUserDataCreator
Definition: DtOsgLightingComponent.h:145
Definition: DtLightingComponentShaderConstants.h:28
osg::ref_ptr< osg::Uniform > myEnableLightingUniform
Definition: DtOsgLightingComponent.h:120
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::ref_ptr< osg::Uniform > myAmbientFactorUniform
Definition: DtOsgLightingComponent.h:125
osg::ref_ptr< osg::Uniform > myDiffuseFactorUniform
Definition: DtOsgLightingComponent.h:128
osg::ref_ptr< DtLightingComponentStateAttribute > myLightingComponentStateAttribute
Definition: DtOsgLightingComponent.h:141
bool myDirty
Definition: DtOsgLightingComponent.h:133
const char * creatorTypeName< DtOsgLightingComponent >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtOsgLightingComponent.h:153
osg::ref_ptr< osg::Uniform > myUseGlobalDiffuseUniform
Definition: DtOsgLightingComponent.h:129
osg::ref_ptr< osg::Uniform > myLightingOffClampUniform
Definition: DtOsgLightingComponent.h:121
DtSignalConnectionManager myConnections
Definition: DtOsgLightingComponent.h:137
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:22
DtThreadCameraStreamDataManager & myTcsDataManager
Definition: DtOsgLightingComponent.h:144
osg::ref_ptr< osg::Uniform > myModelTypeDefaultUniform
Definition: DtOsgLightingComponent.h:131
osg::ref_ptr< osg::Uniform > myUseGlobalAmbientUniform
Definition: DtOsgLightingComponent.h:126
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
bool myIsInstalled
Definition: DtOsgLightingComponent.h:135
Contains makVrv::DtLightComputeProgram class.
A generic OpenGL buffer. This can be: -> a vertex buffer -> an index buffer -> a shader storage buffe...
Definition: DtGlBuffer.h:29
DtVirtualBaseClassCreator< DtOsgLightingComponent > DtOsgLightingComponentCreator
creator
Definition: DtOsgLightingComponent.h:149
Base class to provide boost signal/slot management.
Base class for components that affect the state on a subset of the scene graph, injecting state...
Definition: DtOsgStateComponent.h:34
const char int mode
Definition: ioapi.h:38
Contains the DtOsgLightingComponentTcsUserData class.
Manage buffer object binding state, via glBindBufferBase.
Definition: DtLightingComponentStateAttribute.h:34
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
Contains makVrv::DtOsgStateComponent class.
virtual bool dirty() const
Checks if component needs to be re-installed.
Definition: DtOsgLightingComponent.h:86
State component that injects lighting shaders and uniforms into a state set. It also has a DtLightCom...
Definition: DtOsgLightingComponent.h:57