11 #ifndef CXRENDERLOOP_H
12 #define CXRENDERLOOP_H
14 #include "org_custusx_core_view_Export.h"
24 class ViewCollectionWidget;
34 class org_custusx_core_view_EXPORT
RenderLoop :
public QObject
41 bool isRunning()
const;
42 void setRenderingInterval(
int interval);
43 void setSmartRender(
bool val);
44 void setLogging(
bool on);
57 void renderFinished();
63 void sendRenderIntervalToTimer(
int interval);
64 void emitPreRenderIfRequested();
66 bool pollForSmartRenderingThisCycle();
67 int calculateTimeToNextRender();
68 void emitFPSIfRequired();
69 void dumpStatistics();
72 QDateTime mLastFullRender;
73 QDateTime mLastBeginRender;
79 int mBaseRenderInterval;
84 std::vector<QPointer<ViewCollectionWidget> > mLayoutWidgets;
92 #endif // CXRENDERLOOP_H