]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbcreaMaracasVisuSTL.cxx
Fix categ
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuSTL.cxx
1 #include "bbcreaMaracasVisuSTL.h"
2 #include "bbcreaMaracasVisuPackage.h"
3
4 #include "wxSTLWidget_03.h"
5
6 namespace bbcreaMaracasVisu
7 {
8
9 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu, STL)
10 BBTK_BLACK_BOX_IMPLEMENTATION(STL, bbtk::WxBlackBox);
11 void STL::Process()
12 {
13         vtkImageData* img = bbGetInputIn();
14         if(img != NULL){
15                 ((wxSTLWidget_03*)bbGetOutputWidget())->setImage(img);
16         //      mar->_experiment->initExperiment(img);
17         } 
18   
19 }
20
21 void STL::CreateWidget(wxWindow* parent)
22 {
23    //mar = new marInterface();
24    wxWindow* stl = new wxSTLWidget_03(parent);//, mar);
25    bbSetOutputWidget( stl ); 
26    //Process(); 
27 }
28
29         //-----------------------------------------------------------------     
30         void STL::bbUserSetDefaultValues()
31         {
32                 bbSetInputIn(NULL);     
33         }
34
35         //-----------------------------------------------------------------     
36         void STL::bbUserInitializeProcessing()
37         {
38         }
39
40         //-----------------------------------------------------------------     
41         void STL::bbUserFinalizeProcessing()
42         {
43         }
44
45         //-----------------------------------------------------------------     
46 }
47 // EO namespace bbcreaMaracasVisu
48
49