9 #ifndef OSGEARTH_EFFECTMAP_EXTENSION
10 #define OSGEARTH_EFFECTMAP_EXTENSION 1
14 #include <osgEarth/Extension>
15 #include <osgEarth/MapNode>
18 #include <osg/observer_ptr>
30 using namespace osgEarth;
59 virtual void setDBOptions(
const osgDB::Options* dbOptions);
68 bool connect(MapNode* mapNode);
71 bool disconnect(MapNode* mapNode);
76 virtual void addEffectMapLayer(MapNode* mapNode);
80 virtual const std::string generateShareTexUniformName()
const;
84 virtual const std::string generateShareTexMatUniformName()
const;
89 virtual void connectSignals();
93 virtual void slot_effectMapRainStateChanged(
bool enabled);
97 virtual void slot_effectMapSnowStateChanged(
bool enabled);
102 virtual bool shouldDeferCreation()
const;
105 virtual bool createLayerAndEffect(MapNode* mapNode);
123 #endif // OSGEARTH_EFFECTMAP_EXTENSION
osg::ref_ptr< const osgDB::Options > myDbOptions
Definition: EffectMapExtension.h:114
EffectMapExtension(const EffectMapExtension &rhs, const osg::CopyOp &op)
protected copy constructor that does nothing
Definition: EffectMapExtension.h:53
makVrv::DtSignalConnectionManager myConnections
Definition: EffectMapExtension.h:110
static std::set< EffectMapOptions::EffectType > theEffectTypes
Definition: EffectMapExtension.h:116
static int theEffectMapCount
Definition: EffectMapExtension.h:117
Extension for loading the effect mapping effect on demand.
Definition: EffectMapExtension.h:37
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Effect that applies effect mapping to the terrain.
Definition: EffectMapTerrainEffect.h:30
virtual const ConfigOptions & getConfigOptions() const
get the configuration options for this extention (typecast of this object)
Definition: EffectMapExtension.h:62
effect map earth file options
EffectMapTerrainEffect * myEffect
Definition: EffectMapExtension.h:115
Base class to provide boost signal/slot management.
Options governing effect mapping of the terrain.
Definition: EffectMapOptions.h:27
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
osg::observer_ptr< osgEarth::MapNode > myMapNode
Definition: EffectMapExtension.h:109
Effect that applies effect mapping to the terrain.