Mercurial > hg > orthanc-stone
diff Framework/Scene2D/ICompositor.h @ 1211:d10d2acb8a02 broker
compositors do not keep a reference to the scene anymore
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 04 Dec 2019 16:47:21 +0100 |
parents | 32b403a47b19 |
children | 9efa66d8d3f8 |
line wrap: on
line diff
--- a/Framework/Scene2D/ICompositor.h Wed Dec 04 16:13:10 2019 +0100 +++ b/Framework/Scene2D/ICompositor.h Wed Dec 04 16:47:21 2019 +0100 @@ -1,8 +1,8 @@ #pragma once -#include <boost/noncopyable.hpp> +#include "Scene2D.h" + #include <EmbeddedResources.h> -#include <Core/Enumerations.h> namespace OrthancStone { @@ -17,7 +17,14 @@ virtual unsigned int GetCanvasHeight() const = 0; - virtual void Refresh() = 0; + /** + * WARNING: "Refresh()" must always be called with the same + * scene. If the scene changes, a call to "ResetScene()" must be + * done to reset the tracking of the revisions of the layers. + **/ + virtual void Refresh(const Scene2D& scene) = 0; + + virtual void ResetScene() = 0; #if ORTHANC_ENABLE_LOCALE == 1 virtual void SetFont(size_t index,