comparison 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
comparison
equal deleted inserted replaced
1310:9bea7e15b519 1311:3d26447ddd28
36 cutting plane has been modified since the last call to "Update()". 36 cutting plane has been modified since the last call to "Update()".
37 */ 37 */
38 class VolumeSceneLayerSource : public boost::noncopyable 38 class VolumeSceneLayerSource : public boost::noncopyable
39 { 39 {
40 private: 40 private:
41 Scene2D& scene_; 41 Scene2D& scene_;
42 int layerDepth_; 42 int layerDepth_;
43 boost::shared_ptr<IVolumeSlicer> slicer_; 43 boost::shared_ptr<IVolumeSlicer> slicer_;
44 std::unique_ptr<ILayerStyleConfigurator> configurator_; 44 std::unique_ptr<ILayerStyleConfigurator> configurator_;
45 std::unique_ptr<CoordinateSystem3D> lastPlane_; 45 std::unique_ptr<CoordinateSystem3D> lastPlane_;
46 uint64_t lastRevision_; 46 uint64_t lastRevision_;
47 uint64_t lastConfiguratorRevision_; 47 uint64_t lastConfiguratorRevision_;
48 bool layerInScene_;
48 49
49 void ClearLayer(); 50 void ClearLayer();
50 51
51 public: 52 public:
52 VolumeSceneLayerSource(Scene2D& scene, 53 VolumeSceneLayerSource(Scene2D& scene,
69 return configurator_.get() != NULL; 70 return configurator_.get() != NULL;
70 } 71 }
71 72
72 ILayerStyleConfigurator& GetConfigurator() const; 73 ILayerStyleConfigurator& GetConfigurator() const;
73 74
75 /**
76 Make sure the Scene2D is protected from concurrent accesses before
77 calling this method.
78
79 If the scene that has been supplied to the ctor is part of an IViewport,
80 you can lock the whole viewport data (including scene) by means of the
81 IViewport::Lock method.
82 */
74 void Update(const CoordinateSystem3D& plane); 83 void Update(const CoordinateSystem3D& plane);
75 }; 84 };
76 } 85 }