From c20a6b26e1ed141fbcdb7d72592ce7f0537698c7 Mon Sep 17 00:00:00 2001 From: srit Date: Fri, 15 Apr 2011 08:30:21 +0000 Subject: [PATCH] Enable interactive display in tool binarize --- vv/vvToolBinarize.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vv/vvToolBinarize.cxx b/vv/vvToolBinarize.cxx index 325714a..f7cd0ce 100644 --- a/vv/vvToolBinarize.cxx +++ b/vv/vvToolBinarize.cxx @@ -55,7 +55,6 @@ vvToolBinarize::vvToolBinarize(vvMainWindowBase * parent, Qt::WindowFlags f) vvToolBase(parent), Ui::vvToolBinarize() { - DD("Const binarize"); // GUI Initialization Ui_vvToolBinarize::setupUi(mToolWidget); mInteractiveDisplayIsEnabled = mCheckBoxInteractiveDisplay->isChecked(); @@ -73,7 +72,7 @@ vvToolBinarize::vvToolBinarize(vvMainWindowBase * parent, Qt::WindowFlags f) mBGSlider->SetText("Background value"); // Main filter - mFilter = new clitk::BinarizeImageGenericFilter; + mFilter = clitk::BinarizeImageGenericFilter::New(); // Set how many inputs are needed for this tool AddInputSelector("Select one image", mFilter); @@ -228,6 +227,8 @@ void vvToolBinarize::InputIsSelected(vvSlicerManager * m) connect(mCurrentSlicerManager,SIGNAL(UpdateTSlice(int,int)),this,SLOT(UpdateSlice(int, int))); // connect(mCurrentSlicerManager, SIGNAL(LeftButtonReleaseSignal(int)), SLOT(LeftButtonReleaseEvent(int))); + + InteractiveDisplayToggled(mInteractiveDisplayIsEnabled); } //------------------------------------------------------------------------------ -- 2.47.1