From: Eduardo DAVILA Date: Thu, 3 Dec 2020 16:13:31 +0000 (+0100) Subject: GetViewer X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=d7f23f390feb4a5c8ece40e64b175e840d4bce8c;p=creaMaracasVisu.git GetViewer --- diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx index 251df88..0cfd883 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx @@ -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 } diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.h index abdefc1..50cfb7e 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.h @@ -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