X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuTransferFunctionView.cxx;h=ca7fa29fa7413104d3910684d0a77424bf1fe457;hb=d1de4d9e4121e4602daf11142cbc4b03c386d98a;hp=7d6765e4344345f820d58e3d4c81b4c9c8b5c576;hpb=0780b53e8b105636030b2c9fcbbc423d8ed48c30;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuTransferFunctionView.cxx b/bbtk/src/bbmaracasvisuTransferFunctionView.cxx index 7d6765e..ca7fa29 100644 --- a/bbtk/src/bbmaracasvisuTransferFunctionView.cxx +++ b/bbtk/src/bbmaracasvisuTransferFunctionView.cxx @@ -37,12 +37,13 @@ void TransferFunctionView::Process() if(bbGetInputIn()!=NULL) { - if(_currentimg != bbGetInputIn()){ +// if(_currentimg != bbGetInputIn()) +// { _currentimg = bbGetInputIn(); //mwxwidget->initializeHistogram(_currentimg); mwxwidget->setImageData(_currentimg); //mwxwidget->Refresh(); - } +// } // onColorChange(); /* @@ -75,7 +76,7 @@ void TransferFunctionView::onColorChange() unsigned int i; for(i = 0; i < greylevel.size();i++){ _tfun->AddPoint(greylevel[i], value[i]); - std::cout<<"TransferFunctionView::Process()transfer function "<RemoveAllPoints(); _ctfun->SetScaleToLinear (); @@ -99,7 +100,7 @@ void TransferFunctionView::onColorChange() nc = ((greylevelcolors[i]-min)/dif)*w + c-w/2; // _ctfun->AddRGBPoint(greylevelcolors[i], red[i],green[i], blue[i]); _ctfun->AddRGBPoint( nc , red[i],green[i], blue[i]); - std::cout<<"EED TransferFunctionView::Process()transfer color function <<"<AddRGBPoint( greylevelcolors[i] , red[i],green[i], blue[i]); @@ -116,29 +117,13 @@ void TransferFunctionView::onColorChange() } void TransferFunctionView::onSliderChange() - { - - //EED +{ onColorChange(); - bbSignalOutputModification(); - -printf("EED TransferFunctionView::onSliderChange --------------------- \n"); - // bbSetOutputWindowLevel(mwxwidget->GetWindowLevel()); // bbSetOutputColorLevel(mwxwidget->GetColorLevel()); - } -/* -//----------------------------------------------------- -void TransferFunctionView::onActive() -{ - bbSignalOutputModification(); - - printf("EED TransferFunctionView::onActive popopopopopopopop \n"); -} -*/ //----------------------------------------------------- void TransferFunctionView::CreateWidget(wxWindow* parent) @@ -199,13 +184,6 @@ void TransferFunctionView::bbUserSetDefaultValues() _box->onSliderChange(); } -/* - void HandlerTransferFunctionView::onActive(wxCommandEvent& event) - { - _box->onActive(); - } -*/ - } // EO namespace bbcreaMaracasVisu