32 #ifndef CXRENDERLOOP_H
33 #define CXRENDERLOOP_H
35 #include "org_custusx_core_view_Export.h"
46 class ViewCollectionWidget;
56 class org_custusx_core_view_EXPORT
RenderLoop :
public QObject
63 bool isRunning()
const;
64 void setRenderingInterval(
int interval);
65 void setSmartRender(
bool val);
66 void setLogging(
bool on);
74 void requestPreRenderSignal();
79 void renderFinished();
85 void sendRenderIntervalToTimer(
int interval);
86 void emitPreRenderIfRequested();
88 bool pollForSmartRenderingThisCycle();
89 int calculateTimeToNextRender();
90 void emitFPSIfRequired();
91 void dumpStatistics();
94 QDateTime mLastFullRender;
95 QDateTime mLastBeginRender;
100 bool mPreRenderSignalRequested;
101 int mBaseRenderInterval;
106 std::vector<QPointer<ViewCollectionWidget> > mLayoutWidgets;
114 #endif // CXRENDERLOOP_H
CyclicActionLoggerPtr getRenderTimer()
boost::shared_ptr< class CyclicActionLogger > CyclicActionLoggerPtr
boost::shared_ptr< RenderLoop > RenderLoopPtr