5 #ifndef MERCATOR_FILL_THRESHOLD_SHADER_H
6 #define MERCATOR_FILL_THRESHOLD_SHADER_H
8 #include <Mercator/Shader.h>
111 #endif // MERCATOR_FILL_THRESHOLD_SHADER_H
static const float default_lowThreshold
Default level above which the shader renders.
Definition: ThresholdShader.h:84
const Segment & getSegment() const
Accessor for the terrain height segment this buffer is associated with.
Definition: Buffer.h:55
float getMin() const
Accessor for the minimum height value in this Segment.
Definition: Segment.h:181
virtual bool checkIntersect(const Segment &) const
Check whether this Shader has any effect on the given Segment.
Definition: ThresholdShader.cpp:89
const int getSize() const
Accessor for array size of this segment.
Definition: Segment.h:81
virtual bool checkIntersect(const Segment &) const
Check whether this Shader has any effect on the given Segment.
Definition: ThresholdShader.cpp:35
Surface shader that defines the surface below a given level.
Definition: ThresholdShader.h:42
unsigned int getChannels() const
Accessor for the number of data values per height point.
Definition: Buffer.h:65
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
Definition: Segment.h:36
const float lowThreshold() const
Accessor for the level above which the shader renders.
Definition: ThresholdShader.h:101
Data store for terrain surface data.
Definition: Surface.h:22
static const std::string key_highThreshold
Key string used when specifying the high threshold parameter.
Definition: ThresholdShader.h:81
static const float default_threshold
Default level above which the shader renders.
Definition: ThresholdShader.h:22
Surface shader that defines the surface above a given level.
Definition: ThresholdShader.h:13
float m_threshold
The level above which the shader renders.
Definition: ThresholdShader.h:16
const float threshold() const
Accessor for level above which the shader renders.
Definition: ThresholdShader.h:35
float m_threshold
The level below which the shader renders.
Definition: ThresholdShader.h:45
virtual void shade(Surface &) const
Populate a Surface with data.
Definition: ThresholdShader.cpp:98
static const float default_threshold
Default level below which the shader renders.
Definition: ThresholdShader.h:51
static const float default_highThreshold
Default level below which the shader renders.
Definition: ThresholdShader.h:86
const float threshold() const
Accessor for level below which the shader renders.
Definition: ThresholdShader.h:64
static const std::string key_threshold
Key string used when specifying the threshold parameter.
Definition: ThresholdShader.h:19
LowShader(float threshold=default_threshold)
Constructor.
Definition: ThresholdShader.cpp:72
DataType * getData()
Accessor for a pointer to buffer containing data values.
Definition: Buffer.h:70
static const std::string key_lowThreshold
Key string used when specifying the low threshold parameter.
Definition: ThresholdShader.h:79
Surface shader that defines the surface between two levels.
Definition: ThresholdShader.h:71
float m_highThreshold
The level below which the shader renders.
Definition: ThresholdShader.h:76
HighShader(float threshold=default_threshold)
Constructor.
Definition: ThresholdShader.cpp:18
Base class for Shader objects which create surface data for use when rendering terrain.
Definition: Shader.h:29
float m_lowThreshold
The level above which the shader renders.
Definition: ThresholdShader.h:74
virtual void shade(Surface &) const
Populate a Surface with data.
Definition: ThresholdShader.cpp:161
virtual void shade(Surface &) const
Populate a Surface with data.
Definition: ThresholdShader.cpp:44
virtual bool checkIntersect(const Segment &) const
Check whether this Shader has any effect on the given Segment.
Definition: ThresholdShader.cpp:151
const float highThreshold() const
Accessor for the level below which the shader renders.
Definition: ThresholdShader.h:103
BandShader(float low_threshold=default_lowThreshold, float high_threshold=default_highThreshold)
Constructor.
Definition: ThresholdShader.cpp:128
std::map< std::string, float > Parameters
STL map of parameter values for a shader constructor.
Definition: Shader.h:63
static const std::string key_threshold
Key string used when specifying the threshold parameter.
Definition: ThresholdShader.h:48
const float * getPoints() const
Accessor for buffer containing height points.
Definition: Segment.h:145
float getMax() const
Accessor for the maximum height value in this Segment.
Definition: Segment.h:179