//===== // Don't edit this file. This file is generated from xml description.. //===== #include "bbcreaMaracasVisuManualPaint.h" #include "bbcreaMaracasVisuPackage.h" #include "ManualPaintPanel.h" #include "ManualPaintModel.h" #include "ManualPaintControler.h" #include "wxManualPaintPanel.h" #include namespace bbcreaMaracasVisu { //--------------------------------------------------------------------------------- //--------------------------------------------------------------------------------- //--------------------------------------------------------------------------------- BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,ManualPaint) BBTK_BLACK_BOX_IMPLEMENTATION(ManualPaint,bbtk::WxBlackBox); //===== // Don't edit this file. This file is generated from xml description.. //===== void ManualPaint::Process() { /* std::string msg; if (bbGetInputTitle()!="") { msg = bbGetInputTitle()+": " + bbGetInputIn(); } else { msg = bbGetInputIn(); } ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( msg ) ); */ if (bbGetInputWxVtkBaseView1()==NULL) { wxMessageDialog(NULL, bbtk::std2wx("(ManualPaint) Input 'WxVtkBaseView' is not set"), bbtk::std2wx(bbGetFullName()) ).ShowModal(); } if (bbGetInputIn()==NULL) { wxMessageDialog(NULL, bbtk::std2wx("(ManualPaint) Input 'vtkImageData' is not set"), bbtk::std2wx(bbGetFullName()) ).ShowModal(); } if (firsttime==true) { firsttime=false; ManualPaintModel *mpModel = new ManualPaintModel(); mpModel->SetImage( bbGetInputIn() ); wxManualPaintPanel *mpPanel = (wxManualPaintPanel*)bbGetOutputWidget(); mpPanel->SetManualPaintModel(mpModel); if (bbGetInputWxVtkBaseView1()!=NULL) { ManualPaintControler *mpControler = new ManualPaintControler(); mpControler->SetManualPaintModel(mpModel); mpControler->SetManualPaintPanel(mpPanel); mpControler->SetWxVtkBaseView( bbGetInputWxVtkBaseView1() ); mpControler->Config(); } if (bbGetInputWxVtkBaseView2()!=NULL) { ManualPaintControler *mpControler = new ManualPaintControler(); mpControler->SetManualPaintModel(mpModel); mpControler->SetManualPaintPanel(mpPanel); mpControler->SetWxVtkBaseView( bbGetInputWxVtkBaseView2() ); mpControler->Config(); } if (bbGetInputWxVtkBaseView3()!=NULL) { ManualPaintControler *mpControler = new ManualPaintControler(); mpControler->SetManualPaintModel(mpModel); mpControler->SetManualPaintPanel(mpPanel); mpControler->SetWxVtkBaseView( bbGetInputWxVtkBaseView3() ); mpControler->Config(); } if (bbGetInputWxVtkBaseView4()!=NULL) { ManualPaintControler *mpControler = new ManualPaintControler(); mpControler->SetManualPaintModel(mpModel); mpControler->SetManualPaintPanel(mpPanel); mpControler->SetWxVtkBaseView( bbGetInputWxVtkBaseView4() ); mpControler->Config(); } } } //===== // Don't edit this file. This file is generated from xml description.. //===== void ManualPaint::CreateWidget(wxWindow* parent) { bbSetOutputWidget( new wxManualPaintPanel(parent) ); } //===== // Don't edit this file. This file is generated from xml description.. //===== void ManualPaint::bbUserSetDefaultValues() { firsttime=true; bbSetInputIn(NULL); } //===== // Don't edit this file. This file is generated from xml description.. //===== void ManualPaint::bbUserInitializeProcessing() { } //===== // Don't edit this file. This file is generated from xml description.. //===== void ManualPaint::bbUserFinalizeProcessing() { } } // EO namespace bbcreaMaracasVisu