Mercurial > hg > orthanc-stone
diff Framework/Widgets/TestWorldSceneWidget.h @ 46:766d31dc5716 wasm
removing threads for wasm
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 19 Apr 2017 14:33:06 +0200 |
parents | 7207a407bcd8 |
children | 25befef48c35 |
line wrap: on
line diff
--- a/Framework/Widgets/TestWorldSceneWidget.h Wed Apr 19 10:28:08 2017 +0200 +++ b/Framework/Widgets/TestWorldSceneWidget.h Wed Apr 19 14:33:06 2017 +0200 @@ -45,23 +45,27 @@ class Interactor; std::auto_ptr<Interactor> interactor_; + bool animate_; + unsigned int count_; protected: - virtual SliceGeometry GetSlice() - { - return SliceGeometry(); - } - virtual bool RenderScene(CairoContext& context, const ViewportGeometry& view); public: - TestWorldSceneWidget(); + TestWorldSceneWidget(bool animate); virtual void GetSceneExtent(double& x1, double& y1, double& x2, double& y2); + + virtual bool HasUpdateContent() const + { + return animate_; + } + + virtual void UpdateContent(); }; } }