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;
64typedef float (*effector_func)(
float height,
float mod);
66float set(
float,
float);
67float max(
float,
float);
68float min(
float,
float);
69float sum(
float,
float);
70float dif(
float,
float);
Device which effects a change in the terrain.
WFMath::AxisBox< 2 > m_box
The bounding box of the geometric shape.
std::unique_ptr< Context > m_context
The application context of this effector.
Effector & operator=(const Effector &)
Assignment.
const WFMath::AxisBox< 2 > & bbox() const
Accessor for the bounding box of the geometric shape.
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...