VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EffectMapOptions.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 #ifndef OSGEARTH_DRIVER_EFFECTMAP_OPTIONS
10 #define OSGEARTH_DRIVER_EFFECTMAP_OPTIONS 1
11 
12 #include <osgEarth/Common>
13 #include <osgEarth/URI>
14 #include <osgEarth/ImageLayer>
15 #include <osgEarth/Session>
16 #include <osgEarthSplat/RoadSurfaceLayer>
17 
18 namespace osgEarth
19 {
20  namespace EffectMap
21  {
22  using namespace osgEarth;
23 
27  class EffectMapOptions : public DriverConfigOptions // NO EXPORT; header only
28  {
29  public:
31  {
37  CUSTOM_MAP
38  };
39 
40  public:
41  //CTOR
43  //DTOR
44  virtual ~EffectMapOptions();
45 
46  protected:
49 
50  private:
52  EffectMapOptions &operator=(const EffectMapOptions&);
53 
54  public:
55  // get the effect map layer option for it's child image layer
56  //ImageLayer::Options& imageLayerOption();
57  //const optional<ImageLayer::Options>& imageLayerOption() const;
58 
60  //osgEarth::Splat::RoadSurfaceLayer::Options& roadSurfaceLayerOption();
61  //const optional<osgEarth::Splat::RoadSurfaceLayer::Options>& roadSurfaceLayerOption() const;
62 
63  bool useRoadSurfaceLayer();
64 
66  EffectType& effectType();
67  const EffectType& effectType() const;
68 
70  float& fadeMaxRange();
71  const float& fadeMaxRange() const;
72 
74  float& fadeAttenuationDistance();
75  const float& fadeAttenuationDistance() const;
76 
78  float& specMapShininess();
79  const float& specMapShininess() const;
80 
82  bool& enabled();
83  const bool& enabled() const;
84 
86  Config getConfig() const;
87  protected:
89  void mergeConfig(const Config& conf);
90 
91  private:
93  void fromConfig(const Config& conf);
94 
95  private:
96  OE_OPTION_LAYER(osgEarth::ImageLayer, myImageLayer);
97  OE_OPTION_LAYER(osgEarth::Splat::RoadSurfaceLayer, myRoadSurfaceLayer);
98  //optional<osgEarth::ImageLayer::Options> myImageLayerOption;
99  //optional<osgEarth::Splat::RoadSurfaceLayer::Options> myRoadSurfaceLayerOption;
105  bool myEnabled;
106  };
107 
108  }
109 } // namespace osgEarth::EffectMap
110 
111 #endif // OSGEARTH_DRIVER_EFFECTMAP_OPTIONS
112 
float myFadeMaxRange
Definition: EffectMapOptions.h:102
float mySpecMapShininess
Definition: EffectMapOptions.h:104
float myFadeAttenuationDistance
Definition: EffectMapOptions.h:103
bool myUseRoadSurfaceLayer
Definition: EffectMapOptions.h:101
EffectType myEffectType
Definition: EffectMapOptions.h:100
EffectType
Definition: EffectMapOptions.h:30
Options governing effect mapping of the terrain.
Definition: EffectMapOptions.h:27
Definition: EffectMapOptions.h:32
bool myEnabled
Definition: EffectMapOptions.h:105

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)