]> Creatis software - creaContours.git/blob - bbtk/src/bbCreaContournDimensions.h
e224b9d91e29028330ca9d6e80fb39a1dc451970
[creaContours.git] / bbtk / src / bbCreaContournDimensions.h
1 #ifdef _USE_WXWIDGETS_
2 #ifndef __bbCreaContournDimensions_h_INCLUDED__
3 #define __bbCreaContournDimensions_h_INCLUDED__
4 #include "bbtkWxBlackBox.h"
5
6 #include "wxContourMainFrame.h"
7
8 #include <map>
9 #include "vtkImageData.h"
10
11 #include "wx/artprov.h"
12 #include <wx/filedlg.h>
13
14 #include <vtkImageData.h>
15 #include <vtkMetaImageReader.h>
16
17 namespace bbcreaContours
18 {
19
20 class /*BBTK_EXPORT*/ nDimensions
21  : 
22    public bbtk::WxBlackBox
23 {
24   BBTK_BLACK_BOX_INTERFACE(nDimensions,bbtk::WxBlackBox);
25 //==================================================================
26 /// User callback called in the box contructor
27 virtual void bbUserConstructor();
28 /// User callback called in the box copy constructor
29 virtual void bbUserCopyConstructor();
30 /// User callback called in the box destructor
31 virtual void bbUserDestructor();
32 //==================================================================
33   BBTK_DECLARE_INPUT(WorkDir,std::string);
34   BBTK_DECLARE_INPUT(In,vtkImageData*);
35   BBTK_DECLARE_INPUT(Get,int);
36   BBTK_PROCESS(Process);
37   void Process();
38   BBTK_CREATE_WIDGET(CreateWidget);
39   void CreateWidget();
40
41   BBTK_DECLARE_OUTPUT(Mask,vtkImageData*);
42   BBTK_DECLARE_OUTPUT(Value,vtkImageData*);
43   BBTK_DECLARE_OUTPUT(X,double**);
44   BBTK_DECLARE_OUTPUT(Y,double**);
45   BBTK_DECLARE_OUTPUT(Z,double**);
46   BBTK_DECLARE_OUTPUT(SizeContour,std::vector <int>);
47
48 private:
49         wxContourMainFrame* frame;
50         //wxContourEventHandler * eventHandler;
51
52 };
53
54 BBTK_BEGIN_DESCRIBE_BLACK_BOX(nDimensions,bbtk::WxBlackBox);
55 BBTK_NAME("nDimensions");
56 BBTK_AUTHOR("car-prie@uniandes.edu.co");
57 BBTK_DESCRIPTION("With a given image, the box shows the ndimension application");
58 BBTK_CATEGORY("__CategoryBlackBox__");
59 BBTK_INPUT(nDimensions,WorkDir,"Working data directory where config and data files are located",std::string,"");
60 BBTK_INPUT(nDimensions,In,"Image to be shown",vtkImageData*,"");
61 BBTK_INPUT(nDimensions,Get,"Set to 1 when data ready to be exported",int,"");
62
63 BBTK_OUTPUT(nDimensions,Mask,"Mask of the contours",vtkImageData*,"");
64 BBTK_OUTPUT(nDimensions,Value,"Value of the contours",vtkImageData*,"");
65 BBTK_OUTPUT(nDimensions,X,"Vector of vectors that contains the X coordinates of each contour",double**,"");
66 BBTK_OUTPUT(nDimensions,Y,"Vector of vectors that contains the Y coordinates of each contour",double**,"");
67 BBTK_OUTPUT(nDimensions,Z,"Vector of vectors that contains the Z coordinates of each contour",double**,"");
68 BBTK_OUTPUT(nDimensions,SizeContour,"Vector of vectors that contains the Z coordinates of each contour",std::vector <int>,"");
69
70
71 BBTK_END_DESCRIBE_BLACK_BOX(nDimensions);
72 }
73 // EO namespace bbCreaContour
74
75 #endif // __bbCreaContournDimensions_h_INCLUDED__
76 #endif // _USE_WXWIDGETS_
77