30 #include "../adapters/graphicsviewadapter.h"
46 void redraw(
bool force =
false);
50 virtual void draw() = 0;
61 #endif // DRAWERBASE_H
system_time_point mTimeLastDrawn
Timeposition when last drawn.
virtual void draw()=0
Abstract function : draw the content.
GraphicsViewAdapter * mGraphics
Pointer to the graphics view adapter.
bool requestRedraw(bool force=false)
Check whether the content has to be redrawn.
void redraw(bool force=false)
Function to completely redraw the scene.
virtual void clear()
Clear the whole view.
double mRedrawIntervalInSecs
Update time.
std::chrono::time_point< std::chrono::high_resolution_clock > system_time_point
Abstract base class for implementations rendering graphics.
DrawerBase(GraphicsViewAdapter *graphics, double intervall=1.0/24.0)
Constructor of a drawer.
virtual void clear()
Clear the graphics panel.
Abstract base class for drawing 2d graphics.