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);
38 void setShape(
const WFMath::Polygon<2>& p);
41 bool contains(WFMath::CoordType x, WFMath::CoordType z)
const;
56 const WFMath::Polygon<2> &
shape()
const 81 WFMath::Polygon<2> m_shape;
86 #endif // of MERCATOR_AREA_H Device which effects a change in the terrain.
bool isHole() const
Accessor for the flag indicating whether this is a hole.
WFMath::Polygon< 2 > clipToSegment(const Segment &s) const
Clip the shape of this area to a given segment.
Area(int layer, bool hole)
Constructor.
bool checkIntersects(const Segment &s) const override
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
int getLayer() const
Accessor for the layer number.
Region of terrain surface which is modified.
bool contains(WFMath::CoordType x, WFMath::CoordType z) const
Determine if a point is contained by the shape of this area.
const WFMath::Polygon< 2 > & shape() const
Accessor for the geometric shape.
void setShape(const WFMath::Polygon< 2 > &p)
Set the geometric shape of this area.