Mercurial > hg > orthanc-stone
diff 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 |
line wrap: on
line diff
--- a/Framework/Scene2D/Scene2D.h Thu May 02 18:58:46 2019 +0200 +++ b/Framework/Scene2D/Scene2D.h Thu May 09 10:41:31 2019 +0200 @@ -23,7 +23,6 @@ #include "ISceneLayer.h" #include "../Toolbox/AffineTransform2D.h" - #include <map> namespace OrthancStone @@ -71,12 +70,29 @@ void SetLayer(int depth, ISceneLayer* layer); // Takes ownership + /** + Removes the layer at specified depth and deletes the underlying object + */ void DeleteLayer(int depth); bool HasLayer(int depth) const; ISceneLayer& GetLayer(int depth) const; + /** + Returns the minimum depth among all layers or 0 if there are no layers + */ + int GetMinDepth() const; + + /** + Returns the minimum depth among all layers or 0 if there are no layers + */ + int GetMaxDepth() const; + + /** + Removes the layer at specified depth and transfers the object + ownership to the caller + */ ISceneLayer* ReleaseLayer(int depth); void Apply(IVisitor& visitor) const;