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();
84 void sendRenderIntervalToTimer(
int interval);
85 void emitPreRenderIfRequested();
87 bool pollForSmartRenderingThisCycle();
88 int calculateTimeToNextRender();
89 void emitFPSIfRequired();
90 void dumpStatistics();
93 QDateTime mLastFullRender;
94 QDateTime mLastBeginRender;
99 bool mPreRenderSignalRequested;
100 int mBaseRenderInterval;
105 std::vector<QPointer<ViewCollectionWidget> > mLayoutWidgets;
113 #endif // CXRENDERLOOP_H
CyclicActionLoggerPtr getRenderTimer()
boost::shared_ptr< class CyclicActionLogger > CyclicActionLoggerPtr
boost::shared_ptr< RenderLoop > RenderLoopPtr