]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuTransferFunctionView.cxx
#2855 creaMaracasVisu Bug New Normal - ColorLayer box spacing size not identified
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuTransferFunctionView.cxx
index 7d6765e4344345f820d58e3d4c81b4c9c8b5c576..ca7fa29fa7413104d3910684d0a77424bf1fe457 100644 (file)
@@ -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 "<<greylevel[i]<<" "<< value[i]<<std::endl;
+//             std::cout<<"TransferFunctionView::Process()transfer function "<<greylevel[i]<<" "<< value[i]<<std::endl;
        }
        _ctfun->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 <<"<<nc<<" "<<red[i]<<" "<<green[i]<<" "<<blue[i]<<std::endl;
+//             std::cout<<"EED TransferFunctionView::Process()transfer color function <<"<<nc<<" "<<red[i]<<" "<<green[i]<<" "<<blue[i]<<std::endl;
                }
                i=greylevelcolors.size()-1;
                _ctfun->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