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)
4 #include "bbcreaMaracasVisuwxManualTree_MPRWidget_Box.h"
5 #include "bbcreaMaracasVisuPackage.h"
7 #include "widgets/wxManualTree_MPRWidget.h"
9 #include "vtkMetaImageReader.h"
11 namespace bbcreaMaracasVisu
14 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,wxManualTree_MPRWidget_Box)
15 BBTK_BLACK_BOX_IMPLEMENTATION(wxManualTree_MPRWidget_Box,bbtk::WxBlackBox);
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)
19 void wxManualTree_MPRWidget_Box::Process()
23 if (bbGetInputTitle()!="")
25 msg = bbGetInputTitle()+": " + bbGetInputIn();
31 ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( msg ) );
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)
37 void wxManualTree_MPRWidget_Box::CreateWidget(wxWindow* parent)
41 vtkMetaImageReader *reader = vtkMetaImageReader::New();
42 reader->SetFileName("/home/davila/Borrame/eraseme/lea/hola2.mhd");
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();
51 bbSetOutputWidget( window );
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)
57 void wxManualTree_MPRWidget_Box::bbUserSetDefaultValues()
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)
64 void wxManualTree_MPRWidget_Box::bbUserInitializeProcessing()
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)
71 void wxManualTree_MPRWidget_Box::bbUserFinalizeProcessing()
76 // EO namespace bbcreaMaracasVisu