Mercator
|
Device which effects a change in the terrain. More...
#include <Effector.h>
Classes | |
class | Context |
Public Member Functions | |
Context * | context () const |
void | setContext (Context *) |
const WFMath::AxisBox< 2 > & | bbox () const |
Accessor for the bounding box of the geometric shape. | |
virtual bool | checkIntersects (const Segment &s) const =0 |
virtual int | addToSegment (Segment &) const =0 |
virtual void | updateToSegment (Segment &) const =0 |
virtual void | removeFromSegment (Segment &) const =0 |
Protected Member Functions | |
Effector () | |
Constructor. | |
Effector (const Effector &) | |
Copy constructor. | |
Effector & | operator= (const Effector &) |
Assignment. | |
Protected Attributes | |
WFMath::AxisBox< 2 > | m_box |
The bounding box of the geometric shape. | |
Context * | m_context |
The application context of this effector. | |
Device which effects a change in the terrain.
Classes which inherit from this interface change the terrain in some way within the region given by the box member. The exact shape of the area affected and the nature of the change depends on the subclass.