diff Framework/Scene2D/PolylineSceneLayer.cpp @ 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 434ceeb0bcab
children 61ba4b504e9a
line wrap: on
line diff
--- a/Framework/Scene2D/PolylineSceneLayer.cpp	Thu May 02 18:58:46 2019 +0200
+++ b/Framework/Scene2D/PolylineSceneLayer.cpp	Thu May 09 10:41:31 2019 +0200
@@ -42,6 +42,7 @@
     else
     {
       thickness_ = thickness;
+      BumpRevision();
     }
   }
 
@@ -52,6 +53,7 @@
     chains_ = from.chains_;
     closed_ = from.closed_;
     thickness_ = from.thickness_;
+    BumpRevision();
   }
 
   
@@ -69,10 +71,18 @@
     {
       chains_.push_back(chain);
       closed_.push_back(isClosed);
+      BumpRevision();
     }
   }
 
 
+  void PolylineSceneLayer::ClearAllChains()
+  {
+    chains_.clear();
+    closed_.clear();
+    BumpRevision();
+  }
+
   const PolylineSceneLayer::Chain& PolylineSceneLayer::GetChain(size_t i) const
   {
     if (i < chains_.size())