comparison 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
comparison
equal deleted inserted replaced
1210:644baa70373d 1211:d10d2acb8a02
1 #pragma once 1 #pragma once
2 2
3 #include <boost/noncopyable.hpp> 3 #include "Scene2D.h"
4
4 #include <EmbeddedResources.h> 5 #include <EmbeddedResources.h>
5 #include <Core/Enumerations.h>
6 6
7 namespace OrthancStone 7 namespace OrthancStone
8 { 8 {
9 class ICompositor : public boost::noncopyable 9 class ICompositor : public boost::noncopyable
10 { 10 {
15 15
16 virtual unsigned int GetCanvasWidth() const = 0; 16 virtual unsigned int GetCanvasWidth() const = 0;
17 17
18 virtual unsigned int GetCanvasHeight() const = 0; 18 virtual unsigned int GetCanvasHeight() const = 0;
19 19
20 virtual void Refresh() = 0; 20 /**
21 * WARNING: "Refresh()" must always be called with the same
22 * scene. If the scene changes, a call to "ResetScene()" must be
23 * done to reset the tracking of the revisions of the layers.
24 **/
25 virtual void Refresh(const Scene2D& scene) = 0;
26
27 virtual void ResetScene() = 0;
21 28
22 #if ORTHANC_ENABLE_LOCALE == 1 29 #if ORTHANC_ENABLE_LOCALE == 1
23 virtual void SetFont(size_t index, 30 virtual void SetFont(size_t index,
24 Orthanc::EmbeddedResources::FileResourceId resource, 31 Orthanc::EmbeddedResources::FileResourceId resource,
25 unsigned int fontSize, 32 unsigned int fontSize,