38 : mGraphics(graphics),
39 mTimeLastDrawn(std::chrono::high_resolution_clock::now()),
40 mRedrawIntervalInSecs(intervall)
83 auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>
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.
double mRedrawIntervalInSecs
Update time.
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.