]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbcreaMaracasVisuColorLayerImageView.cxx
Improved the image superposition, adding optional base colors, grey level boundaries...
[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
30     clivp->SetImage( bbGetInputIn() );
31
32 //   std::string msg;
33 //    if (bbGetInputTitle()!="")
34 //    {
35 //        msg = bbGetInputTitle()+": " + bbGetInputIn();
36 //    }else{
37 //        msg = bbGetInputIn();
38 //    }
39 //   ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( msg ) );
40
41 }
42 //=====
43 // Don't edit this file. This file is generated from xml description..
44 //=====
45 void ColorLayerImageView::CreateWidget(wxWindow* parent)
46 {
47   ColorLayerImageViewPanel *clivp = new ColorLayerImageViewPanel(parent, 0, 100, 1);
48   bbSetOutputWidget( clivp );
49 }
50 //=====
51 // Don't edit this file. This file is generated from xml description..
52 //=====
53 void ColorLayerImageView::bbUserSetDefaultValues()
54 {
55     bbSetInputIn(NULL);
56     bbSetInputWxVtkBaseView(NULL);
57 }
58 //=====
59 // Don't edit this file. This file is generated from xml description..
60 //=====
61 void ColorLayerImageView::bbUserInitializeProcessing()
62 {
63
64 }
65 //=====
66 // Don't edit this file. This file is generated from xml description..
67 //=====
68 void ColorLayerImageView::bbUserFinalizeProcessing()
69 {
70
71 }
72 }
73 // EO namespace bbcreaMaracasVisu