Mercurial > hg > orthanc-stone
comparison Framework/Scene2D/Scene2D.h @ 632:500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
when calling it ==> BumpRevision has been added to base class
- Added some docs
= Added GetMinDepth + GetMaxDepth to Scene2D (to alleviate the need for app-
specific "Z depth registry" : clients may simply add a new layer on top or at
the bottom of the existing layer set.
- Added the line tracker measurement tools, commands and trackers. Generic base
classes + Line measure
- started work on the line measure handles
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Thu, 09 May 2019 10:41:31 +0200 |
parents | d9c0a66304cb |
children | 462a5074f914 |
comparison
equal
deleted
inserted
replaced
618:0925b27e8750 | 632:500c3f70b6c2 |
---|---|
21 | 21 |
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "ISceneLayer.h" | 24 #include "ISceneLayer.h" |
25 #include "../Toolbox/AffineTransform2D.h" | 25 #include "../Toolbox/AffineTransform2D.h" |
26 | |
27 #include <map> | 26 #include <map> |
28 | 27 |
29 namespace OrthancStone | 28 namespace OrthancStone |
30 { | 29 { |
31 class Scene2D : public boost::noncopyable | 30 class Scene2D : public boost::noncopyable |
69 } | 68 } |
70 | 69 |
71 void SetLayer(int depth, | 70 void SetLayer(int depth, |
72 ISceneLayer* layer); // Takes ownership | 71 ISceneLayer* layer); // Takes ownership |
73 | 72 |
73 /** | |
74 Removes the layer at specified depth and deletes the underlying object | |
75 */ | |
74 void DeleteLayer(int depth); | 76 void DeleteLayer(int depth); |
75 | 77 |
76 bool HasLayer(int depth) const; | 78 bool HasLayer(int depth) const; |
77 | 79 |
78 ISceneLayer& GetLayer(int depth) const; | 80 ISceneLayer& GetLayer(int depth) const; |
79 | 81 |
82 /** | |
83 Returns the minimum depth among all layers or 0 if there are no layers | |
84 */ | |
85 int GetMinDepth() const; | |
86 | |
87 /** | |
88 Returns the minimum depth among all layers or 0 if there are no layers | |
89 */ | |
90 int GetMaxDepth() const; | |
91 | |
92 /** | |
93 Removes the layer at specified depth and transfers the object | |
94 ownership to the caller | |
95 */ | |
80 ISceneLayer* ReleaseLayer(int depth); | 96 ISceneLayer* ReleaseLayer(int depth); |
81 | 97 |
82 void Apply(IVisitor& visitor) const; | 98 void Apply(IVisitor& visitor) const; |
83 | 99 |
84 const AffineTransform2D& GetSceneToCanvasTransform() const | 100 const AffineTransform2D& GetSceneToCanvasTransform() const |