]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbmaracasvisuContourVOI.h
4f55e46e71c3cab1c1a7a5ab7b6c01cea7f906ac
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuContourVOI.h
1
2
3 #ifdef _USE_WXWIDGETS_
4 #ifndef __bbmaracasvisuContourVOI_h_INCLUDED__
5 #define __bbmaracasvisuContourVOI_h_INCLUDED__
6 #include "bbtkWxBlackBox.h"
7
8
9 #include <vtkImageData.h>
10
11 #include "Contour/ContourVOIWidget.h"
12
13 namespace bbmaracasvisu
14 {
15
16
17   //--------------------------------------------------------------------------
18   class ContourVOI;
19   class wxWidgetVOI : public wxPanel
20   {
21         public:
22                 wxWidgetVOI(wxWindow* parent, wxVtkBaseView *wxvtkbaseview, vtkImageData        *imagedata);
23                 ~wxWidgetVOI();
24             
25                 //if the MPR had generated the refresh event
26                 void OnRefreshView(wxCommandEvent & event);
27                 void OnDClickLeft(wxCommandEvent & event); 
28
29                 //refreshView
30                 void Refresh();
31
32                 ContourVOIWidget* GetContourVOIWidget();
33
34         private:
35
36 //              ContourVOI                      *mbbViewerMPR;
37                 ContourVOIWidget        *mcontourvoiwidget;
38
39         DECLARE_EVENT_TABLE( );     
40   };
41   
42   //------------------------------------------------------------------------
43   //------------------------------------------------------------------------
44   //------------------------------------------------------------------------
45
46
47
48
49
50
51 class /*BBTK_EXPORT*/ ContourVOI
52  : 
53    public bbtk::WxBlackBox
54 {
55   BBTK_BLACK_BOX_INTERFACE(ContourVOI,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_INPUT(wxVtkBaseView, wxVtkBaseView*);
67         BBTK_DECLARE_OUTPUT(Index,std::string);
68         BBTK_DECLARE_OUTPUT(Size,std::string);
69   BBTK_PROCESS(Process);
70   void Process();
71   BBTK_CREATE_WIDGET(CreateWidget);
72   void CreateWidget();
73
74 };
75
76 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ContourVOI,bbtk::WxBlackBox);
77 BBTK_NAME("ContourVOI");
78 BBTK_AUTHOR("Eduardo.Davila [at] creatis.insa-lyon.fr");
79 BBTK_DESCRIPTION("define VOI widget");
80 //BBTK_CATEGORY("__CategoryBlackBox__");
81     BBTK_INPUT(ContourVOI,Title,"Title prepended to the text",std::string,"");
82         BBTK_INPUT(ContourVOI,In,"Input Image", vtkImageData *,"" );
83         BBTK_INPUT(ContourVOI,wxVtkBaseView,"maracas visu wxVtkBaseView",wxVtkBaseView*,"");
84         BBTK_OUTPUT(ContourVOI,Index, "Index"   ,       std::string,"");
85         BBTK_OUTPUT(ContourVOI,Size, "Size"     ,       std::string,"");
86 BBTK_END_DESCRIBE_BLACK_BOX(ContourVOI);
87 }
88 // EO namespace bbmaracasvisu
89
90 #endif // __bbmaracasvisuContourVOI_h_INCLUDED__
91 #endif // _USE_WXWIDGETS_
92