VR-Forces 4.10 Class Documentation
 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) 2020 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  {
36  CUSTOM_MAP
37  };
38 
39  public:
40  //CTOR
42  //DTOR
43  virtual ~EffectMapOptions();
44 
45  protected:
48 
49  private:
51  EffectMapOptions &operator=(const EffectMapOptions&);
52 
53  public:
54  // get the effect map layer option for it's child image layer
55  //ImageLayer::Options& imageLayerOption();
56  //const optional<ImageLayer::Options>& imageLayerOption() const;
57 
59  //osgEarth::Splat::RoadSurfaceLayer::Options& roadSurfaceLayerOption();
60  //const optional<osgEarth::Splat::RoadSurfaceLayer::Options>& roadSurfaceLayerOption() const;
61 
62  bool useRoadSurfaceLayer();
63 
65  EffectType& effectType();
66  const EffectType& effectType() const;
67 
69  float& fadeMaxRange();
70  const float& fadeMaxRange() const;
71 
73  float& fadeAttenuationDistance();
74  const float& fadeAttenuationDistance() const;
75 
77  float& specMapShininess();
78  const float& specMapShininess() const;
79 
81  Config getConfig() const;
82  protected:
84  void mergeConfig(const Config& conf);
85 
86  private:
88  void fromConfig(const Config& conf);
89 
90  private:
91  OE_OPTION_LAYER(osgEarth::ImageLayer, myImageLayer);
92  OE_OPTION_LAYER(osgEarth::Splat::RoadSurfaceLayer, myRoadSurfaceLayer);
93  //optional<osgEarth::ImageLayer::Options> myImageLayerOption;
94  //optional<osgEarth::Splat::RoadSurfaceLayer::Options> myRoadSurfaceLayerOption;
100  };
101 
102  }
103 } // namespace osgEarth::EffectMap
104 
105 #endif // OSGEARTH_DRIVER_EFFECTMAP_OPTIONS
106 
float myFadeMaxRange
Definition: EffectMapOptions.h:97
float mySpecMapShininess
Definition: EffectMapOptions.h:99
float myFadeAttenuationDistance
Definition: EffectMapOptions.h:98
bool myUseRoadSurfaceLayer
Definition: EffectMapOptions.h:96
EffectType myEffectType
Definition: EffectMapOptions.h:95
EffectType
Definition: EffectMapOptions.h:30
Options governing effect mapping of the terrain.
Definition: EffectMapOptions.h:27
Definition: EffectMapOptions.h:32

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)