X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FThresholdImageView%2FColorLayerImageViewPanel.cxx;h=20a723cd68e948279419dddbffd77dd57f5b2860;hb=313783230a81f37f703080f75dde71abb5497c43;hp=d6efc9123ee1ebbf4b0249a3c1d2370295f6592b;hpb=b61b15415d19c665de225637c9136c634a5831c5;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx index d6efc91..20a723c 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx @@ -289,15 +289,16 @@ void ColorLayerImageViewPanel::SetImage(vtkImageData *img) img->SetSpacing(spc); } // spc !_spcBase dim!__dimBase + } // _firsttime_mode - if (_active==true) - { - _colorLayerImageViewManager->onThreshold(); - RefreshView(); - } - +printf("EED ColorLayerImageViewPanel::SetImage\n"); + if (_active==true) + { +printf("EED ColorLayerImageViewPanel::SetImage _active=true \n"); + _colorLayerImageViewManager->onThreshold(); + RefreshView(); + } // _ative - } } @@ -354,6 +355,7 @@ void ColorLayerImageViewPanel::onThresholdChange(wxCommandEvent& event) void ColorLayerImageViewPanel::onThresholdShow(wxCommandEvent& event) { _thresholdGo = _cb_ShowHide->GetValue(); + _active = _thresholdGo; if (_thresholdGo) { _colorLayerImageViewManager->onThreshold(); @@ -411,8 +413,8 @@ void ColorLayerImageViewPanel::onSliceImage(wxScrollEvent& event) //---------------------------------------------------------------------------- void ColorLayerImageViewPanel::onChangeOpacity(wxScrollEvent& event) { - int opacity = _opacity->GetValue(); - _colorLayerImageViewManager->onThresholdChangeOpacity(opacity); + int opacity = _opacity->GetValue(); + _colorLayerImageViewManager->onThresholdChangeOpacity(opacity); RefreshView(); }