diff Framework/Volumes/VolumeSceneLayerSource.h @ 1311:3d26447ddd28 broker

warning fixes + doc + indentation + header files in cmake for VC++ sln browsing
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 09 Mar 2020 14:55:22 +0100
parents 8a0a62189f46
children 00c8322bbe69
line wrap: on
line diff
--- a/Framework/Volumes/VolumeSceneLayerSource.h	Mon Mar 09 14:53:22 2020 +0100
+++ b/Framework/Volumes/VolumeSceneLayerSource.h	Mon Mar 09 14:55:22 2020 +0100
@@ -38,13 +38,14 @@
   class VolumeSceneLayerSource : public boost::noncopyable
   {
   private:
-    Scene2D&                                scene_;
-    int                                     layerDepth_;
-    boost::shared_ptr<IVolumeSlicer>        slicer_;
+    Scene2D&                                  scene_;
+    int                                       layerDepth_;
+    boost::shared_ptr<IVolumeSlicer>          slicer_;
     std::unique_ptr<ILayerStyleConfigurator>  configurator_;
     std::unique_ptr<CoordinateSystem3D>       lastPlane_;
-    uint64_t                                lastRevision_;
-    uint64_t                                lastConfiguratorRevision_;
+    uint64_t                                  lastRevision_;
+    uint64_t                                  lastConfiguratorRevision_;
+    bool                                      layerInScene_;
 
     void ClearLayer();
 
@@ -71,6 +72,14 @@
 
     ILayerStyleConfigurator& GetConfigurator() const;
 
+    /**
+    Make sure the Scene2D is protected from concurrent accesses before 
+    calling this method.
+
+    If the scene that has been supplied to the ctor is part of an IViewport, 
+    you can lock the whole viewport data (including scene) by means of the 
+    IViewport::Lock method.
+    */ 
     void Update(const CoordinateSystem3D& plane);  
   };
 }