//===== // 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) //===== #include "bbcreaMaracasVisuwxManualTree_MPRWidget_Box.h" #include "bbcreaMaracasVisuPackage.h" #include "widgets/wxManualTree_MPRWidget.h" #include "vtkMetaImageReader.h" namespace bbcreaMaracasVisu { BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,wxManualTree_MPRWidget_Box) BBTK_BLACK_BOX_IMPLEMENTATION(wxManualTree_MPRWidget_Box,bbtk::WxBlackBox); //===== // 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) //===== void wxManualTree_MPRWidget_Box::Process() { /* std::string msg; if (bbGetInputTitle()!="") { msg = bbGetInputTitle()+": " + bbGetInputIn(); } else { msg = bbGetInputIn(); } ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( msg ) ); */ } //===== // 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) //===== void wxManualTree_MPRWidget_Box::CreateWidget(wxWindow* parent) { vtkMetaImageReader *reader = vtkMetaImageReader::New(); reader->SetFileName("/home/davila/Borrame/eraseme/lea/hola2.mhd"); reader->Update(); // marImageData *marimagedata = new marImageData( bbGetInputIn() ); marImageData *marimagedata = new marImageData( reader->GetOutput() ); wxManualTree_MPRWidget *window = new wxManualTree_MPRWidget( parent,marimagedata ); window->ConfigureVTK(); bbSetOutputWidget( window ); } //===== // 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) //===== void wxManualTree_MPRWidget_Box::bbUserSetDefaultValues() { } //===== // 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) //===== void wxManualTree_MPRWidget_Box::bbUserInitializeProcessing() { } //===== // 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) //===== void wxManualTree_MPRWidget_Box::bbUserFinalizeProcessing() { } } // EO namespace bbcreaMaracasVisu