2 #ifndef __bbmaracasvisuViewerMPR_h_INCLUDED__
3 #define __bbmaracasvisuViewerMPR_h_INCLUDED__
4 #include "bbtkWxBlackBox.h"
6 #include "wxMaracasMPR.h"
7 #include "vtkImageData.h"
8 #include "vtkRenderer.h"
10 namespace bbmaracasvisu
15 //--------------------------------------------------------------------------
17 class wxWidgetMPR : public wxPanel
20 wxWidgetMPR(ViewerMPR* box,wxWindow* parent, marImageData *marimagedata);
23 //if the MPR had generated the refresh event
24 void OnRefreshView(wxCommandEvent & event);
25 void OnDClickLeft(wxCommandEvent & event);
27 //Get the actual Point
28 std::vector <int> GetPoint();
30 vtkRenderer* GetRenderer();
37 ViewerMPR *mbbViewerMPR;
38 wxMPRWidget2 *wxwidget;
39 std::vector<int> point;
41 DECLARE_EVENT_TABLE( );
45 //------------------------------------------------------------------------
46 //------------------------------------------------------------------------
47 //------------------------------------------------------------------------
51 class /*BBTK_EXPORT*/ ViewerMPR
53 public bbtk::WxBlackBox
55 BBTK_BLACK_BOX_INTERFACE(ViewerMPR,bbtk::WxBlackBox);
56 //==================================================================
57 /// User callback called in the box contructor
58 virtual void bbUserConstructor();
59 /// User callback called in the box copy constructor
60 virtual void bbUserCopyConstructor();
61 /// User callback called in the box destructor
62 virtual void bbUserDestructor();
63 //==================================================================
64 BBTK_DECLARE_INPUT(Title,std::string);
65 BBTK_DECLARE_INPUT(In, vtkImageData *);
66 BBTK_DECLARE_OUTPUT(Renderer,vtkRenderer *);
67 BBTK_DECLARE_OUTPUT(Point,std::vector<int>);
68 BBTK_PROCESS(Process);
70 BBTK_CREATE_WIDGET(CreateWidget);
74 wxWidgetMPR *mwxwidgetmpr;
77 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ViewerMPR,bbtk::WxBlackBox);
78 BBTK_NAME("ViewerMPR");
79 BBTK_AUTHOR("eduardo.davila [at] creatis.insa-lyon.fr");
80 BBTK_DESCRIPTION("Maracas viewer MPR + 3D");
81 BBTK_CATEGORY("viewer");
82 BBTK_INPUT(ViewerMPR,Title,"Viewer MPR + 3D",std::string,"");
83 BBTK_INPUT(ViewerMPR,In,"Input image",vtkImageData*,"");
84 BBTK_OUTPUT(ViewerMPR,Renderer," This object accept actors of vtk type (ex. AddActor). ",vtkRenderer*,"");
85 BBTK_OUTPUT(ViewerMPR,Point," This is the point choose by the user ",std::vector<int>,"");
87 BBTK_END_DESCRIBE_BLACK_BOX(ViewerMPR);
89 // EO namespace bbmaracasvisu
91 #endif // __bbmaracasvisuViewerMPR_h_INCLUDED__
92 #endif // _USE_WXWIDGETS_