Mercator::FillShader Class Reference

Shader that fills the surface. More...

#include <FillShader.h>

Inheritance diagram for Mercator::FillShader:

Mercator::Shader

List of all members.

Public Member Functions

 FillShader ()
 Constructor.
 FillShader (const Parameters &params)
 Constructor.
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.


Detailed Description

Shader that fills the surface.

This shader is typically only used for the lowest possible layer, which is usually bed rock.


Constructor & Destructor Documentation

Mercator::FillShader::FillShader ( const Parameters params  )  [explicit]

Constructor.

Parameters:
params a map of parameters for the shader.


Member Function Documentation

bool Mercator::FillShader::checkIntersect ( const Segment  )  const [virtual]

Check whether this Shader has any effect on the given Segment.

Returns:
true if the given Segment height range is within the range that this Shader uses. e.g. A high altitude snow shader will have no effect on low level terrain.

Implements Mercator::Shader.


The documentation for this class was generated from the following files:

Generated for Mercator by  doxygen 1.5.6