5 #ifndef MERCATOR_FILL_THRESHOLD_SHADER_H
6 #define MERCATOR_FILL_THRESHOLD_SHADER_H
80 float m_highThreshold;
Surface shader that defines the surface between two levels.
static const float default_highThreshold
Default level below which the shader renders.
float lowThreshold() const
Accessor for the level above which the shader renders.
BandShader(float low_threshold=default_lowThreshold, float high_threshold=default_highThreshold)
Constructor.
static const std::string key_highThreshold
Key string used when specifying the high threshold parameter.
float highThreshold() const
Accessor for the level below which the shader renders.
bool checkIntersect(const Segment &) const override
Check whether this Shader has any effect on the given Segment.
static const float default_lowThreshold
Default level above which the shader renders.
void shade(Surface &) const override
Populate a Surface with data.
static const std::string key_lowThreshold
Key string used when specifying the low threshold parameter.
Surface shader that defines the surface above a given level.
HighShader(float threshold=default_threshold)
Constructor.
void shade(Surface &) const override
Populate a Surface with data.
static const float default_threshold
Default level above which the shader renders.
float threshold() const
Accessor for level above which the shader renders.
static const std::string key_threshold
Key string used when specifying the threshold parameter.
bool checkIntersect(const Segment &) const override
Check whether this Shader has any effect on the given Segment.
Surface shader that defines the surface below a given level.
static const std::string key_threshold
Key string used when specifying the threshold parameter.
static const float default_threshold
Default level below which the shader renders.
bool checkIntersect(const Segment &) const override
Check whether this Shader has any effect on the given Segment.
LowShader(float threshold=default_threshold)
Constructor.
void shade(Surface &) const override
Populate a Surface with data.
float threshold() const
Accessor for level below which the shader renders.
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
Base class for Shader objects which create surface data for use when rendering terrain.
std::map< std::string, float > Parameters
STL map of parameter values for a shader constructor.
Data store for terrain surface data.