25 #ifndef WGEVIEWEREFFECT_H
26 #define WGEVIEWEREFFECT_H
33 #include <osg/StateSet>
35 #include "WGECamera.h"
36 #include "core/common/WObjectNDIP.h"
37 #include "core/common/WProperties.h"
48 typedef osg::ref_ptr< WGEViewerEffect >
SPtr;
53 typedef osg::ref_ptr< const WGEViewerEffect >
ConstSPtr;
62 WGEViewerEffect( std::string name, std::string description,
const char** icon = NULL );
Base class for implementing basic fullscreen effects for the WGEViewer.
WGEViewerEffect(std::string name, std::string description, const char **icon=NULL)
Create the effect.
WPropBool m_active
Enable or disable effect.
virtual void setEnabled(bool enable=true)
Set the effect enabled.
osg::ref_ptr< WGEViewerEffect > SPtr
Convenience typedef for a std::shared_ptr< WGEViewerEffect >.
virtual bool isEnabled() const
Check whether the effect is active or not.
virtual void setEnabledByDefault(bool enableByDefault=true)
Use this to activate an effect by default.
osg::ref_ptr< osg::StateSet > m_state
The stateset of the cam.
osg::ref_ptr< const WGEViewerEffect > ConstSPtr
Convenience typedef for a std::shared_ptr< const WGEViewerEffect >.
osg::ref_ptr< osg::Geode > m_geode
The fullscreen quad.
virtual ~WGEViewerEffect()
Destructor.
This is a base class for everything which has a Name,Description,Icon and Properties (=NDIP).