]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbcreaMaracasVisuColorLayerImageView.cxx
#2855 creaMaracasVisu Bug New Normal - ColorLayer box spacing size not identified
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuColorLayerImageView.cxx
index d5860d92d6af3fd12b7d7cb48a46fa25941df569..ba35577a98bf650128b1f5f16168b1a038cbf4f4 100644 (file)
@@ -74,6 +74,8 @@ void ColorLayerImageView::Process()
 
     clivp->SetImage( bbGetInputIn() );
 
+    bbSetOutputNewImage( clivp->GetColorLayerImageViewManager()->GetImageChangeInformation(0) );
+
 
 
 //   std::string msg;
@@ -91,7 +93,7 @@ void ColorLayerImageView::Process()
 //=====
 void ColorLayerImageView::CreateWidget(wxWindow* parent)
 {
-  ColorLayerImageViewPanel *clivp = new ColorLayerImageViewPanel(parent, 0, 100, 1);
+  ColorLayerImageViewPanel *clivp = new ColorLayerImageViewPanel(parent, 0, 100, bbGetInputTypeControlsInterface() );
   bbSetOutputWidget( clivp );
 }
 //=====
@@ -102,6 +104,8 @@ void ColorLayerImageView::bbUserSetDefaultValues()
     firsttime=true;
     bbSetInputIn(NULL);
     bbSetInputActive(true);
+    bbSetInputPlainOrGradientColor(false);
+    bbSetInputTypeControlsInterface(1);
     bbSetInputWxVtkBaseView(NULL);
     bbSetInputWxVtkBaseView1(NULL);
     bbSetInputWxVtkBaseView2(NULL);