]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbcreaMaracasVisuwxManualTree_MPRWidget_Box.cxx
#3093 creaMaracasVisu Feature New Normal - Contour Information in pixels and image...
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuwxManualTree_MPRWidget_Box.cxx
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4 #include "bbcreaMaracasVisuwxManualTree_MPRWidget_Box.h"
5 #include "bbcreaMaracasVisuPackage.h"
6
7 #include "widgets/wxManualTree_MPRWidget.h"
8
9 #include "vtkMetaImageReader.h"
10
11 namespace bbcreaMaracasVisu
12 {
13
14 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,wxManualTree_MPRWidget_Box)
15 BBTK_BLACK_BOX_IMPLEMENTATION(wxManualTree_MPRWidget_Box,bbtk::WxBlackBox);
16 //===== 
17 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
18 //===== 
19 void wxManualTree_MPRWidget_Box::Process()
20 {
21 /*
22    std::string msg;
23     if (bbGetInputTitle()!="")
24       {
25         msg = bbGetInputTitle()+": " + bbGetInputIn();
26       }
27     else
28       {
29         msg = bbGetInputIn();
30       }
31    ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( msg ) ); 
32 */
33 }
34 //===== 
35 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
36 //===== 
37 void wxManualTree_MPRWidget_Box::CreateWidget(wxWindow* parent)
38 {
39
40
41         vtkMetaImageReader *reader = vtkMetaImageReader::New();
42         reader->SetFileName("/home/davila/Borrame/eraseme/lea/hola2.mhd");
43         reader->Update();
44
45
46 //      marImageData                    *marimagedata           = new marImageData( bbGetInputIn() );
47         marImageData                    *marimagedata           = new marImageData( reader->GetOutput() );
48         wxManualTree_MPRWidget  *window                         = new wxManualTree_MPRWidget( parent,marimagedata );
49         window->ConfigureVTK();
50
51         bbSetOutputWidget( window );
52   
53 }
54 //===== 
55 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
56 //===== 
57 void wxManualTree_MPRWidget_Box::bbUserSetDefaultValues()
58 {
59
60 }
61 //===== 
62 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
63 //===== 
64 void wxManualTree_MPRWidget_Box::bbUserInitializeProcessing()
65 {
66
67 }
68 //===== 
69 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
70 //===== 
71 void wxManualTree_MPRWidget_Box::bbUserFinalizeProcessing()
72 {
73
74 }
75 }
76 // EO namespace bbcreaMaracasVisu
77
78