2 // Don't edit this file. This file is generated from xml description..
4 #include "bbcreaMaracasVisuColorLayerImageView.h"
5 #include "bbcreaMaracasVisuPackage.h"
7 #include "ColorLayerImageViewPanel.h"
9 namespace bbcreaMaracasVisu
12 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,ColorLayerImageView)
13 BBTK_BLACK_BOX_IMPLEMENTATION(ColorLayerImageView,bbtk::WxBlackBox);
15 // Don't edit this file. This file is generated from xml description..
17 void ColorLayerImageView::Process()
19 ColorLayerImageViewPanel *clivp = (ColorLayerImageViewPanel*)bbGetOutputWidget();
20 clivp->GetColorLayerImageView()->SetwxVtkBaseView( bbGetInputWxVtkBaseView() );
22 std::vector<double> base_color = bbGetInputlstBaseColor();
23 clivp->GetColorLayerImageView()->SetBaseColors( base_color );
25 std::vector<double> grey_level_boundaries = bbGetInputlstGreyLevelBoundaries();
26 clivp->GetColorLayerImageView()->SetGreyLevelBoundaries( grey_level_boundaries );
28 clivp->GetColorLayerImageView()->SetPlainOrGradientColor( bbGetInputPlainOrGradientColor() );
30 clivp->SetImage( bbGetInputIn() );
33 // if (bbGetInputTitle()!="")
35 // msg = bbGetInputTitle()+": " + bbGetInputIn();
37 // msg = bbGetInputIn();
39 // ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( msg ) );
43 // Don't edit this file. This file is generated from xml description..
45 void ColorLayerImageView::CreateWidget(wxWindow* parent)
47 ColorLayerImageViewPanel *clivp = new ColorLayerImageViewPanel(parent, 0, 100, 1);
48 bbSetOutputWidget( clivp );
51 // Don't edit this file. This file is generated from xml description..
53 void ColorLayerImageView::bbUserSetDefaultValues()
56 bbSetInputWxVtkBaseView(NULL);
59 // Don't edit this file. This file is generated from xml description..
61 void ColorLayerImageView::bbUserInitializeProcessing()
66 // Don't edit this file. This file is generated from xml description..
68 void ColorLayerImageView::bbUserFinalizeProcessing()
73 // EO namespace bbcreaMaracasVisu