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 (bbGetInputWxVtkBaseView1()==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 if (bbGetInputWxVtkBaseView1()!=NULL)
67 ManualPaintControler *mpControler = new ManualPaintControler();
68 mpControler->SetManualPaintModel(mpModel);
69 mpControler->SetManualPaintPanel(mpPanel);
70 mpControler->SetWxVtk2DBaseView( (wxVtk2DBaseView*)bbGetInputWxVtkBaseView1() );
71 mpControler->Config();
74 if (bbGetInputWxVtkBaseView2()!=NULL)
76 ManualPaintControler *mpControler = new ManualPaintControler();
77 mpControler->SetManualPaintModel(mpModel);
78 mpControler->SetManualPaintPanel(mpPanel);
79 mpControler->SetWxVtk2DBaseView( (wxVtk2DBaseView*)bbGetInputWxVtkBaseView2() );
80 mpControler->Config();
83 if (bbGetInputWxVtkBaseView3()!=NULL)
85 ManualPaintControler *mpControler = new ManualPaintControler();
86 mpControler->SetManualPaintModel(mpModel);
87 mpControler->SetManualPaintPanel(mpPanel);
88 mpControler->SetWxVtk2DBaseView( (wxVtk2DBaseView*)bbGetInputWxVtkBaseView3() );
89 mpControler->Config();
92 if (bbGetInputWxVtkBaseView4()!=NULL)
94 ManualPaintControler *mpControler = new ManualPaintControler();
95 mpControler->SetManualPaintModel(mpModel);
96 mpControler->SetManualPaintPanel(mpPanel);
97 mpControler->SetWxVtk2DBaseView( (wxVtk2DBaseView*)bbGetInputWxVtkBaseView4() );
98 mpControler->Config();
105 // Don't edit this file. This file is generated from xml description..
107 void ManualPaint::CreateWidget(wxWindow* parent)
109 bbSetOutputWidget( new wxManualPaintPanel(parent) );
113 // Don't edit this file. This file is generated from xml description..
115 void ManualPaint::bbUserSetDefaultValues()
121 // Don't edit this file. This file is generated from xml description..
123 void ManualPaint::bbUserInitializeProcessing()
128 // Don't edit this file. This file is generated from xml description..
130 void ManualPaint::bbUserFinalizeProcessing()
135 } // EO namespace bbcreaMaracasVisu