]> Creatis software - creaMaracasVisu.git/commitdiff
GetViewer
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 3 Dec 2020 16:13:31 +0000 (17:13 +0100)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 3 Dec 2020 16:13:31 +0000 (17:13 +0100)
lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.h

index 251df8868a30597bff1ccc374f58fd95eb634136..0cfd883971b768145f5affdd401b6cb10af3ec23 100644 (file)
@@ -384,6 +384,8 @@ void ColorLayerImageViewPanel::onReadImage(wxCommandEvent& event)
        change  -> Modified();          //important
        change  -> Update();            //important
        SetImage( change->GetOutput() );
+       _colorLayerImageViewManager->onThreshold();
+       RefreshView();
 }
 
 //----------------------------------------------------------------------------
@@ -392,7 +394,7 @@ void ColorLayerImageViewPanel::onThresholdChange(wxCommandEvent& event)
                if (_thresholdGo)
                {
                 _colorLayerImageViewManager->onThresholdChange();
-                RefreshView();
+                        RefreshView();
                //std::cout<< "Valor Min: " << minVal << " & Valor Max: " << maxVal  << std::endl;
           } // _thresholdGo
 }
index abdefc1c075f267a2577492e4efe345fa475cedf..50cfb7ec1622d466e220f4d0041776a8267f92be 100644 (file)
@@ -86,6 +86,7 @@ class ColorLayerImageViewPanel
                        void SetFittingMode(int fitting_mode);
                        int  GetFittingMode();
                        void SetActive(bool active);
+                       void RefreshView();
 
                private:
                        bool                                                    _active;
@@ -116,7 +117,6 @@ class ColorLayerImageViewPanel
                        void onChangeOpacity(wxScrollEvent& event);
                        void onSliceFixDinamic(wxCommandEvent& event);
                        void onSliceImage(wxScrollEvent& event);
-                       void RefreshView();
 };
 
 #endif