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 ManualPaintPanel *mpPanel = (ManualPaintPanel*)bbGetOutputWidget();
61 ManualPaintModel *mpModel = new ManualPaintModel();
62 mpModel->SetImage( bbGetInputIn() );
65 ManualPaintControler *mpControler = new ManualPaintControler();
66 mpControler->SetManualPaintModel(mpModel);
67 mpControler->SetManualPaintPanel(mpPanel);
68 mpControler->SetWxVtkBaseView( bbGetInputWxVtkBaseView() );
69 mpControler->Config();
76 _imp=new vtkInteractorManualPaint();
77 _imp->SetImage( bbGetInputIn() );
78 vtkInteractorStyleBaseView *isbv = (vtkInteractorStyleBaseView*)(bbGetInputWxVtkBaseView()->GetInteractorStyleBaseView());
79 isbv->AddInteractorStyleMaracas(_imp);
85 // Don't edit this file. This file is generated from xml description..
87 void ManualPaint::CreateWidget(wxWindow* parent)
89 bbSetOutputWidget( new wxManualPaintPanel(parent) );
93 // Don't edit this file. This file is generated from xml description..
95 void ManualPaint::bbUserSetDefaultValues()
101 // Don't edit this file. This file is generated from xml description..
103 void ManualPaint::bbUserInitializeProcessing()
108 // Don't edit this file. This file is generated from xml description..
110 void ManualPaint::bbUserFinalizeProcessing()
115 } // EO namespace bbcreaMaracasVisu