17 #include <osg/Texture>
18 #include <osg/Program>
20 #include <osg/Texture2D>
25 #include <boost/unordered_map.hpp>
46 virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);
86 virtual void setFragmentShaderSource(
const char *
source);
93 virtual void setVertexShaderSource(
const char *
source);
100 virtual void setFragmentShaderFile(
const std::string& fileName);
107 virtual void setVertexShaderFile(
const std::string& fileName);
114 virtual void setInputTexture(
const DtChannel *channel, osg::Texture* texture);
117 virtual bool update(
DtChannel *channel) = 0;
122 virtual osg::Texture* outputTexture();
127 virtual void setIsFinalEffect(
const DtChannel *channel,
bool final);
131 virtual osg::Camera* cameraForChannel(
const DtChannel *channel);
135 virtual void slot_releaseResources();
139 virtual void releaseGLObjects();
142 virtual bool hasEffect(
const std::string& effect);
145 virtual bool effectEnabled(
const std::string& effect);
148 virtual bool anyEffectEnabled();
151 virtual bool enableEffect(
const std::string& effect);
155 virtual bool disableEffect(
const std::string& effect);
159 virtual std::list<std::string> supportedEffects();
163 virtual bool handles2D()
const;
166 virtual const std::string& type()
const;
169 virtual void enablePostProcessor();
171 virtual void disablePostProcessor();
175 virtual bool postProcessorEnabled();
181 virtual bool needsOcclusionTexture()
const;
186 typedef boost::unordered_map<std::string, bool>
EffectMap;
188 virtual bool effectItrEnabled(
const EffectMap::iterator &effect)
const;
190 virtual void initialize();
195 virtual void addEffect(std::string effect);
198 virtual void setEnablePostProcessor(
bool enabled);
208 typedef std::map<const DtChannel*, osg::ref_ptr<osg::Camera> >
CameraMap;
std::map< const DtChannel *, osg::ref_ptr< osg::Camera > > CameraMap
Definition: DtPostProcessor.h:208
bool myDirty
Definition: DtPostProcessor.h:53
CameraMap myCameraMap
Definition: DtPostProcessor.h:209
DtPostProcessorCreator is the common base class for all post processor creators.
Definition: DtPostProcessor.h:234
osg::ref_ptr< osg::Program > myProgram
Definition: DtPostProcessor.h:203
osg::ref_ptr< osg::Shader > myVertexShader
Definition: DtPostProcessor.h:205
Factory to create the specific DtPostProcessors registered when vrvOsg starts up. ...
Definition: DtPostProcessorFactory.h:26
DtPostProcessorCullVistorCallback()
Definition: DtPostProcessor.h:40
osg::ref_ptr< osg::Texture > myOutputTexture
Definition: DtPostProcessor.h:202
virtual void setDirty(bool flag)
setter for the dirty flag
DtSignalConnectionManager mySignals
Definition: DtPostProcessor.h:228
osg::ref_ptr< osg::Geode > myQuad
Definition: DtPostProcessor.h:206
bool myHandles2DFlag
Definition: DtPostProcessor.h:211
The abstract Channel Class.
Definition: DtChannel.h:35
bool myEnabledFlag
Definition: DtPostProcessor.h:212
EffectMap myEffects
Definition: DtPostProcessor.h:218
std::map< const DtChannel *, CallbackRefPtr > CallbackMap
Definition: DtPostProcessor.h:223
This class provides the OSG-specific management of post-processing effects.
Definition: DtPostProcessManager.h:27
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
std::string myType
Definition: DtPostProcessor.h:215
#define DT_DLL_VRVPOSTPROCESSOR
Definition: vrvPostProcessor.h:19
const char * source
Definition: lz4.h:442
Contains DLL export macros.
osg::ref_ptr< osg::Shader > myFragmentShader
Definition: DtPostProcessor.h:204
Base class to provide boost signal/slot management.
osg::ref_ptr< DtPostProcessorCullVistorCallback > CallbackRefPtr
Definition: DtPostProcessor.h:222
Definition: DtPostProcessor.h:36
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:76
virtual void operator()(osg::Node *node, osg::NodeVisitor *nv)
DtDe & myDe
Definition: DtPostProcessor.h:227
boost::unordered_map< std::string, bool > EffectMap
Definition: DtPostProcessor.h:186
CallbackMap myCullCallbackMap
Definition: DtPostProcessor.h:225
This class provides the OSG-specific implementation of a post processor. A post processor has a type ...
Definition: DtPostProcessor.h:66