5 #ifndef MERCATOR_EFFECTOR_H 6 #define MERCATOR_EFFECTOR_H 8 #include <wfmath/axisbox.h> 9 #include <wfmath/polygon.h> 34 const std::string & id() {
return m_id; }
36 void setId(
const std::string &);
46 const WFMath::AxisBox<2> &
bbox()
const 53 virtual bool checkIntersects(
const Segment& s)
const = 0;
55 virtual int addToSegment(
Segment &)
const = 0;
56 virtual void updateToSegment(
Segment &)
const = 0;
57 virtual void removeFromSegment(
Segment &)
const = 0;
77 typedef float (*effector_func)(
float height,
float mod);
79 float set(float, float);
80 float max(
float,
float);
81 float min(
float,
float);
82 float sum(
float,
float);
83 float dif(
float,
float);
87 #endif // of MERCATOR_EFFECTOR_H Device which effects a change in the terrain.
Definition: Effector.h:25
Definition: Effector.h:28
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
Definition: Segment.h:36
const WFMath::AxisBox< 2 > & bbox() const
Accessor for the bounding box of the geometric shape.
Definition: Effector.h:46
WFMath::AxisBox< 2 > m_box
The bounding box of the geometric shape.
Definition: Effector.h:70
Context * m_context
The application context of this effector.
Definition: Effector.h:73
Effector()
Constructor.
Definition: Effector.cpp:28
Effector & operator=(const Effector &)
Assignment.
Definition: Effector.cpp:38