# HG changeset patch # User Sebastien Jodogne # Date 1541781706 -3600 # Node ID 021480604c921142d4885a704b22890f115cf6e7 # Parent 0cb925325470c83aa6fda8c08aab7bfdb0e2d021 rename diff -r 0cb925325470 -r 021480604c92 Framework/Layers/ReferenceLineFactory.cpp --- a/Framework/Layers/ReferenceLineFactory.cpp Fri Nov 09 17:37:34 2018 +0100 +++ b/Framework/Layers/ReferenceLineFactory.cpp Fri Nov 09 17:41:46 2018 +0100 @@ -25,8 +25,8 @@ namespace OrthancStone { - ReferenceLineFactory::ReferenceLineFactory(LayeredSceneWidget& owner, - LayeredSceneWidget& sibling) : + ReferenceLineFactory::ReferenceLineFactory(SliceViewerWidget& owner, + SliceViewerWidget& sibling) : owner_(owner), sibling_(sibling), hasLayerIndex_(false) @@ -37,7 +37,7 @@ } - void ReferenceLineFactory::NotifySliceChange(const LayeredSceneWidget& source, + void ReferenceLineFactory::NotifySliceChange(const SliceViewerWidget& source, const SliceGeometry& slice) { if (&source == &sibling_) @@ -119,8 +119,8 @@ } - void ReferenceLineFactory::Configure(LayeredSceneWidget& a, - LayeredSceneWidget& b) + void ReferenceLineFactory::Configure(SliceViewerWidget& a, + SliceViewerWidget& b) { { size_t layerIndex; diff -r 0cb925325470 -r 021480604c92 Framework/Layers/ReferenceLineFactory.h --- a/Framework/Layers/ReferenceLineFactory.h Fri Nov 09 17:37:34 2018 +0100 +++ b/Framework/Layers/ReferenceLineFactory.h Fri Nov 09 17:41:46 2018 +0100 @@ -21,28 +21,28 @@ #pragma once -#include "../Widgets/LayeredSceneWidget.h" +#include "../Widgets/SliceViewerWidget.h" namespace OrthancStone { class ReferenceLineFactory : public ILayerRendererFactory, - public LayeredSceneWidget::ISliceObserver + public SliceViewerWidget::ISliceObserver { private: - LayeredSceneWidget& owner_; - LayeredSceneWidget& sibling_; - SliceGeometry slice_; - RenderStyle style_; - bool hasLayerIndex_; - size_t layerIndex_; + SliceViewerWidget& owner_; + SliceViewerWidget& sibling_; + SliceGeometry slice_; + RenderStyle style_; + bool hasLayerIndex_; + size_t layerIndex_; public: - ReferenceLineFactory(LayeredSceneWidget& owner, - LayeredSceneWidget& sibling); + ReferenceLineFactory(SliceViewerWidget& owner, + SliceViewerWidget& sibling); - virtual void NotifySliceChange(const LayeredSceneWidget& source, + virtual void NotifySliceChange(const SliceViewerWidget& source, const SliceGeometry& slice); void SetLayerIndex(size_t layerIndex); @@ -71,7 +71,7 @@ virtual ISliceableVolume& GetSourceVolume() const; - static void Configure(LayeredSceneWidget& a, - LayeredSceneWidget& b); + static void Configure(SliceViewerWidget& a, + SliceViewerWidget& b); }; }