2 // Don't edit this file. This file is generated from xml description..
4 #include "bbcreaMaracasVisuManualPaint.h"
5 #include "bbcreaMaracasVisuPackage.h"
7 #include "ManualPaintPanel.h"
8 #include "ManualPaintModel.h"
9 #include "ManualPaintControler.h"
10 #include "wxManualPaintPanel.h"
12 #include <wx/msgdlg.h>
14 namespace bbcreaMaracasVisu
18 //---------------------------------------------------------------------------------
19 //---------------------------------------------------------------------------------
20 //---------------------------------------------------------------------------------
23 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,ManualPaint)
24 BBTK_BLACK_BOX_IMPLEMENTATION(ManualPaint,bbtk::WxBlackBox);
26 // Don't edit this file. This file is generated from xml description..
28 void ManualPaint::Process()
33 if (bbGetInputTitle()!="")
35 msg = bbGetInputTitle()+": " + bbGetInputIn();
41 ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( msg ) );
44 if (bbGetInputWxVtkBaseView()==NULL)
46 wxMessageDialog(NULL, bbtk::std2wx("(ManualPaint) Input 'WxVtkBaseView' is not set"), bbtk::std2wx(bbGetFullName()) ).ShowModal();
49 if (bbGetInputIn()==NULL)
51 wxMessageDialog(NULL, bbtk::std2wx("(ManualPaint) Input 'vtkImageData' is not set"), bbtk::std2wx(bbGetFullName()) ).ShowModal();
59 ManualPaintModel *mpModel = new ManualPaintModel();
60 mpModel->SetImage( bbGetInputIn() );
62 wxManualPaintPanel *mpPanel = (wxManualPaintPanel*)bbGetOutputWidget();
63 mpPanel->SetManualPaintModel(mpModel);
65 ManualPaintControler *mpControler = new ManualPaintControler();
66 mpControler->SetManualPaintModel(mpModel);
67 mpControler->SetManualPaintPanel(mpPanel);
68 mpControler->SetWxVtkBaseView( bbGetInputWxVtkBaseView() );
69 mpControler->Config();
74 // Don't edit this file. This file is generated from xml description..
76 void ManualPaint::CreateWidget(wxWindow* parent)
78 bbSetOutputWidget( new wxManualPaintPanel(parent) );
82 // Don't edit this file. This file is generated from xml description..
84 void ManualPaint::bbUserSetDefaultValues()
90 // Don't edit this file. This file is generated from xml description..
92 void ManualPaint::bbUserInitializeProcessing()
97 // Don't edit this file. This file is generated from xml description..
99 void ManualPaint::bbUserFinalizeProcessing()
104 } // EO namespace bbcreaMaracasVisu