Mercator
|
Shader for handling areas. More...
#include <AreaShader.h>
Public Member Functions | |
AreaShader (int layer) | |
Constructor. More... | |
virtual void | shade (Surface &s) const |
Populate a Surface with data. | |
virtual bool | checkIntersect (const Segment &) const |
Check whether this Shader has any effect on the given Segment. More... | |
![]() | |
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... | |
Private Member Functions | |
void | shadeArea (Surface &s, const Area *const ar) const |
helper to shader a single area into the surface | |
Private Attributes | |
int | m_layer |
The layer number. | |
Additional Inherited Members | |
![]() | |
typedef std::map< std::string, float > | Parameters |
STL map of parameter values for a shader constructor. | |
![]() | |
Shader (bool color=false, bool alpha=true) | |
Protected constructor for classes which inherit from this one. More... | |
Shader for handling areas.
Mercator::AreaShader::AreaShader | ( | int | layer | ) |
Constructor.
layer | layer number. |
|
virtual |
Check whether this Shader has any effect on the given Segment.
Implements Mercator::Shader.
References Mercator::Segment::getAreas(), and m_layer.