5 #ifndef MERCATOR_FILL_THRESHOLD_SHADER_H 6 #define MERCATOR_FILL_THRESHOLD_SHADER_H 80 float m_highThreshold;
96 explicit BandShader(
float low_threshold = default_lowThreshold,
97 float high_threshold = default_highThreshold);
117 #endif // MERCATOR_FILL_THRESHOLD_SHADER_H HighShader(float threshold=default_threshold)
Constructor.
Definition: ThresholdShader.cpp:18
static const std::string key_lowThreshold
Key string used when specifying the low threshold parameter.
Definition: ThresholdShader.h:83
Surface shader that defines the surface between two levels.
Definition: ThresholdShader.h:75
Data store for terrain surface data.
Definition: Surface.h:23
float threshold() const
Accessor for level below which the shader renders.
Definition: ThresholdShader.h:67
float threshold() const
Accessor for level above which the shader renders.
Definition: ThresholdShader.h:36
Surface shader that defines the surface below a given level.
Definition: ThresholdShader.h:44
std::map< std::string, float > Parameters
STL map of parameter values for a shader constructor.
Definition: Shader.h:58
float lowThreshold() const
Accessor for the level above which the shader renders.
Definition: ThresholdShader.h:106
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
Definition: Segment.h:36
static const float default_lowThreshold
Default level above which the shader renders.
Definition: ThresholdShader.h:88
static const float default_threshold
Default level below which the shader renders.
Definition: ThresholdShader.h:53
Base class for Shader objects which create surface data for use when rendering terrain.
Definition: Shader.h:24
static const float default_threshold
Default level above which the shader renders.
Definition: ThresholdShader.h:22
static const std::string key_highThreshold
Key string used when specifying the high threshold parameter.
Definition: ThresholdShader.h:85
Surface shader that defines the surface above a given level.
Definition: ThresholdShader.h:13
float highThreshold() const
Accessor for the level below which the shader renders.
Definition: ThresholdShader.h:108
void shade(Surface &) const override
Populate a Surface with data.
Definition: ThresholdShader.cpp:44
static const float default_highThreshold
Default level below which the shader renders.
Definition: ThresholdShader.h:90
static const std::string key_threshold
Key string used when specifying the threshold parameter.
Definition: ThresholdShader.h:50
static const std::string key_threshold
Key string used when specifying the threshold parameter.
Definition: ThresholdShader.h:19
bool checkIntersect(const Segment &) const override
Check whether this Shader has any effect on the given Segment.
Definition: ThresholdShader.cpp:35