if(bbGetInputIn()!=NULL)
{
- if(_currentimg != bbGetInputIn()){
+// if(_currentimg != bbGetInputIn())
+// {
_currentimg = bbGetInputIn();
//mwxwidget->initializeHistogram(_currentimg);
mwxwidget->setImageData(_currentimg);
//mwxwidget->Refresh();
- }
+// }
// 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 ();
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]);
}
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)
_box->onSliderChange();
}
-/*
- void HandlerTransferFunctionView::onActive(wxCommandEvent& event)
- {
- _box->onActive();
- }
-*/
-
}
// EO namespace bbcreaMaracasVisu