]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbcreaMaracasVisuColorLayerImageView.cxx
Feature #1606 Add a new entry to ColorLayerImageView to select the fitting mode betwe...
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuColorLayerImageView.cxx
1 //=====
2 // Don't edit this file. This file is generated from xml description..
3 //=====
4 #include "bbcreaMaracasVisuColorLayerImageView.h"
5 #include "bbcreaMaracasVisuPackage.h"
6
7 #include "ColorLayerImageViewPanel.h"
8
9 namespace bbcreaMaracasVisu
10 {
11
12 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,ColorLayerImageView)
13 BBTK_BLACK_BOX_IMPLEMENTATION(ColorLayerImageView,bbtk::WxBlackBox);
14 //=====
15 // Don't edit this file. This file is generated from xml description..
16 //=====
17 void ColorLayerImageView::Process()
18 {
19     ColorLayerImageViewPanel *clivp = (ColorLayerImageViewPanel*)bbGetOutputWidget();
20     clivp->GetColorLayerImageView()->SetwxVtkBaseView( bbGetInputWxVtkBaseView() );
21
22     std::vector<double> base_color = bbGetInputlstBaseColor();
23     clivp->GetColorLayerImageView()->SetBaseColors( base_color );
24
25     std::vector<double> grey_level_boundaries = bbGetInputlstGreyLevelBoundaries();
26     clivp->GetColorLayerImageView()->SetGreyLevelBoundaries( grey_level_boundaries );
27  
28     clivp->GetColorLayerImageView()->SetPlainOrGradientColor( bbGetInputPlainOrGradientColor() );
29     clivp->SetFittingMode( bbGetInputFittingMode() );
30
31     clivp->SetImage( bbGetInputIn() );
32
33 //   std::string msg;
34 //    if (bbGetInputTitle()!="")
35 //    {
36 //        msg = bbGetInputTitle()+": " + bbGetInputIn();
37 //    }else{
38 //        msg = bbGetInputIn();
39 //    }
40 //   ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( msg ) );
41
42 }
43 //=====
44 // Don't edit this file. This file is generated from xml description..
45 //=====
46 void ColorLayerImageView::CreateWidget(wxWindow* parent)
47 {
48   ColorLayerImageViewPanel *clivp = new ColorLayerImageViewPanel(parent, 0, 100, 1);
49   bbSetOutputWidget( clivp );
50 }
51 //=====
52 // Don't edit this file. This file is generated from xml description..
53 //=====
54 void ColorLayerImageView::bbUserSetDefaultValues()
55 {
56     bbSetInputIn(NULL);
57     bbSetInputWxVtkBaseView(NULL);
58 }
59 //=====
60 // Don't edit this file. This file is generated from xml description..
61 //=====
62 void ColorLayerImageView::bbUserInitializeProcessing()
63 {
64
65 }
66 //=====
67 // Don't edit this file. This file is generated from xml description..
68 //=====
69 void ColorLayerImageView::bbUserFinalizeProcessing()
70 {
71
72 }
73 }
74 // EO namespace bbcreaMaracasVisu