25 #ifndef WGEVIEWEREFFECTIMAGEOVERLAY_H
26 #define WGEVIEWEREFFECTIMAGEOVERLAY_H
30 #include <osg/Texture2D>
32 #include "WGEViewerEffect.h"
33 #include "callbacks/WGEShaderAnimationCallback.h"
34 #include "core/common/WLogger.h"
47 typedef osg::ref_ptr< WGEViewerEffectImageOverlay >
SPtr;
52 typedef osg::ref_ptr< const WGEViewerEffectImageOverlay >
ConstSPtr;
148 virtual void operator() ( osg::Node* node, osg::NodeVisitor* nv );
Update the uniforms and textures if needed.
virtual void operator()(osg::Node *node, osg::NodeVisitor *nv)
Called before draw on update.
WPropBool m_blendOutAuto
Enable to blend out the overlay.
osg::ref_ptr< osg::Uniform > m_overlayWidth
Width of the image in pixels.
osg::ref_ptr< osg::Uniform > m_viewportHeight
Height of the viewport in pixels.
osg::ref_ptr< const WGEViewerEffectImageOverlay > ConstSPtr
Convenience typedef for a std::shared_ptr< const WGEViewerEffectImageOverlay >.
osg::ref_ptr< osg::Texture2D > m_logoTexture
The texture.
const std::shared_ptr< WGEViewer > getReferenceViewer() const
Query current reference viewer.
osg::ref_ptr< osg::Uniform > m_viewportWidth
Width of the viewport in pixels.
WPropFilename m_image
The filename to load.
osg::ref_ptr< WGEViewerEffectImageOverlay > SPtr
Convenience typedef for a std::shared_ptr< WGEViewerEffectImageOverlay >.
WPropDouble m_blendOutDuration
Time to blend out in seconds.
std::shared_ptr< WGEViewer > m_viewer
The viewer used to query the current reference cam.
WGEViewerEffectImageOverlay()
Default constructor.
virtual ~WGEViewerEffectImageOverlay()
Destructor.
osg::ref_ptr< osg::Uniform > m_overlayHeight
Height of the image in pixels.
osg::ref_ptr< Updater > m_updater
Update callback for the viewport.
osg::ref_ptr< WGEShaderAnimationCallback > m_animationCallback
Animate blend out sequence.
bool m_forceReload
If true, the update callback is forced to reload the image.
void setReferenceViewer(std::shared_ptr< WGEViewer > viewer)
Set the reference viewer.
Base class for implementing basic fullscreen effects for the WGEViewer.
Class for managing one view to the scene.