]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbcreaMaracasVisuColorLayerImageView.cxx
#2520 creaMaracasVisu - Bug New Normal - Color Layer with double images
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuColorLayerImageView.cxx
index 95b040965b3044139c746f51ae8c25dd34b1967e..160795d57f2fccc04eb444a651a4a69defa78f1b 100644 (file)
@@ -41,10 +41,11 @@ BBTK_BLACK_BOX_IMPLEMENTATION(ColorLayerImageView,bbtk::WxBlackBox);
 //=====
 void ColorLayerImageView::Process()
 {
-printf("ColorLayerImageView::Process start\n");
-
     ColorLayerImageViewPanel *clivp = (ColorLayerImageViewPanel*)bbGetOutputWidget();
 
+    clivp->SetActive( bbGetInputActive() );
+
     clivp->GetColorLayerImageViewManager()->SetwxVtkBaseView( 0 , bbGetInputWxVtkBaseView() );
     clivp->GetColorLayerImageViewManager()->SetwxVtkBaseView( 1 , bbGetInputWxVtkBaseView1() );
     clivp->GetColorLayerImageViewManager()->SetwxVtkBaseView( 2 , bbGetInputWxVtkBaseView2() );
@@ -60,6 +61,8 @@ printf("ColorLayerImageView::Process start\n");
 
     clivp->SetImage( bbGetInputIn() );
 
+
+
 //   std::string msg;
 //    if (bbGetInputTitle()!="")
 //    {
@@ -69,8 +72,6 @@ printf("ColorLayerImageView::Process start\n");
 //    }
 //   ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( msg ) );
 
-printf("ColorLayerImageView::Process end\n");
-
 }
 //=====
 // Don't edit this file. This file is generated from xml description..
@@ -86,6 +87,7 @@ void ColorLayerImageView::CreateWidget(wxWindow* parent)
 void ColorLayerImageView::bbUserSetDefaultValues()
 {
     bbSetInputIn(NULL);
+    bbSetInputActive(true);
     bbSetInputWxVtkBaseView(NULL);
     bbSetInputWxVtkBaseView1(NULL);
     bbSetInputWxVtkBaseView2(NULL);