5 #ifndef MERCATOR_EFFECTOR_H 6 #define MERCATOR_EFFECTOR_H 8 #include <wfmath/axisbox.h> 9 #include <wfmath/polygon.h> 34 void setContext(std::unique_ptr<Context> context);
37 const WFMath::AxisBox<2> &
bbox()
const 44 virtual bool checkIntersects(
const Segment& s)
const = 0;
64 typedef float (*effector_func)(
float height,
float mod);
66 float set(float, float);
67 float max(
float,
float);
68 float min(
float,
float);
69 float sum(
float,
float);
70 float dif(
float,
float);
74 #endif // of MERCATOR_EFFECTOR_H Device which effects a change in the terrain.
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
const WFMath::AxisBox< 2 > & bbox() const
Accessor for the bounding box of the geometric shape.
std::unique_ptr< Context > m_context
The application context of this effector.
WFMath::AxisBox< 2 > m_box
The bounding box of the geometric shape.
Effector & operator=(const Effector &)
Assignment.