|
Mercator
|
Surface shader that defines the surface above a given level. More...
#include <ThresholdShader.h>
Public Member Functions | |
| HighShader (float threshold=default_threshold) | |
| Constructor. More... | |
| HighShader (const Parameters ¶ms) | |
| Constructor. More... | |
| const float | threshold () const |
| Accessor for level above which the shader renders. | |
| virtual bool | checkIntersect (const Segment &) const |
| Check whether this Shader has any effect on the given Segment. More... | |
| virtual void | shade (Surface &) const |
| Populate a Surface with data. | |
Public Member Functions inherited from Mercator::Shader | |
| virtual | ~Shader () |
| Destructor does nothing interesting. | |
| bool | getColor () const |
| Accessor for color flag. | |
| bool | getAlpha () const |
| Accessor for alpha flag. | |
| Surface * | newSurface (const Segment &) const |
| Create a new Surface which matches the requirements of this shader. More... | |
Static Public Attributes | |
| static const std::string | key_threshold |
| Key string used when specifying the threshold parameter. | |
| static const float | default_threshold = 1.f |
| Default level above which the shader renders. | |
Private Attributes | |
| float | m_threshold |
| The level above which the shader renders. | |
Additional Inherited Members | |
Public Types inherited from Mercator::Shader | |
| typedef std::map< std::string, float > | Parameters |
| STL map of parameter values for a shader constructor. | |
Protected Member Functions inherited from Mercator::Shader | |
| Shader (bool color=false, bool alpha=true) | |
| Protected constructor for classes which inherit from this one. More... | |
Surface shader that defines the surface above a given level.
|
explicit |
Constructor.
| threshold | level below which the shader renders. |
|
explicit |
Constructor.
| params | a map of parameters for the shader. |
References key_threshold, and m_threshold.
|
virtual |
Check whether this Shader has any effect on the given Segment.
Implements Mercator::Shader.
References Mercator::Segment::getMax(), and m_threshold.
1.8.15