5 #ifndef MERCATOR_AREA_H 6 #define MERCATOR_AREA_H 10 #include <wfmath/axisbox.h> 11 #include <wfmath/polygon.h> 35 Area(
int layer,
bool hole);
44 void setShape(
const WFMath::Polygon<2>& p);
46 void setShader(
const Shader * shader)
const;
49 bool contains(WFMath::CoordType x, WFMath::CoordType z)
const;
64 const WFMath::Polygon<2> &
shape()
const 69 const Shader * getShader()
const 94 WFMath::Polygon<2> m_shape;
96 mutable const Shader * m_shader;
101 #endif // of MERCATOR_AREA_H Device which effects a change in the terrain.
Definition: Effector.h:25
bool isHole() const
Accessor for the flag indicating whether this is a hole.
Definition: Area.h:58
WFMath::Polygon< 2 > clipToSegment(const Segment &s) const
Clip the shape of this area to a given segment.
Definition: Area.cpp:258
Area(int layer, bool hole)
Constructor.
Definition: Area.cpp:232
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
Definition: Segment.h:36
Base class for Shader objects which create surface data for use when rendering terrain.
Definition: Shader.h:24
void setLayer(int layer, bool hole)
Set the layer number and flag indicating whether this is a hole.
bool checkIntersects(const Segment &s) const
Definition: Area.cpp:273
int getLayer() const
Accessor for the layer number.
Definition: Area.h:52
Region of terrain surface which is modified.
Definition: Area.h:28
bool contains(WFMath::CoordType x, WFMath::CoordType z) const
Determine if a point is contained by the shape of this area.
Definition: Area.cpp:251
const WFMath::Polygon< 2 > & shape() const
Accessor for the geometric shape.
Definition: Area.h:64
void setShape(const WFMath::Polygon< 2 > &p)
Set the geometric shape of this area.
Definition: Area.cpp:239