#include <ThresholdShader.h>
Public Member Functions | |
HighShader (float threshold=default_threshold) | |
Constructor. | |
HighShader (const Parameters ¶ms) | |
Constructor. | |
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. | |
virtual void | shade (Surface &) const |
Populate a Surface with data. | |
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. |
Mercator::HighShader::HighShader | ( | float | threshold = default_threshold |
) | [explicit] |
Constructor.
threshold | level below which the shader renders. |
Mercator::HighShader::HighShader | ( | const Parameters & | params | ) | [explicit] |
Constructor.
params | a map of parameters for the shader. |
References key_threshold, and m_threshold.
bool Mercator::HighShader::checkIntersect | ( | const Segment & | ) | const [virtual] |
Check whether this Shader has any effect on the given Segment.
Implements Mercator::Shader.
References Mercator::Segment::getMax(), and m_threshold.