26 #include "OE_thread.h"
38 bool getNeedRefresh();
39 void setNeedRefresh();
45 void removeDependency(
OE_base *
object);
55 virtual void getBound(
float* xMin,
float* yMin,
float* xMax,
float* yMax) = 0;
58 virtual bool check() = 0;
60 virtual void refresh() = 0;
64 std::list<OE_base*> objects;
static bool ptInBounds(vector_2d pt, float *bounds)
check if a point is in a given bounding box
Definition: OE_base.cpp:51
float bounds[4]
Tight bounding box of the object [minx,miny,maxx,maxy].
Definition: OE_base.h:67
virtual void getBound(float *xMin, float *yMin, float *xMax, float *yMax)=0
calculate the object bounding box
OE_base()
Definition: OE_base.cpp:24
virtual bool check()=0
check if the object is valid.
virtual ~OE_base()
Definition: OE_base.cpp:28
bool needRefresh
flag to know who must be refreeshed
Definition: OE_base.h:70
Definition: OE_utils.h:28
virtual void delDependency(OE_base *object)
the function called by a reference object when he's deleted
Definition: OE_instruction.h:50
void addDependency(OE_base *object)
add and remove dependency from the list
Definition: OE_base.cpp:56