]> Creatis software - creaContours.git/blob - bbtk/src/bbCreaContournDimensions.h
*** empty log message ***
[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(bbtk::BlackBox::Pointer);
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(ContourType,int);
36   BBTK_PROCESS(Process);
37   void Process();
38   BBTK_CREATE_WIDGET(CreateWidget);
39   void CreateWidget(wxWindow*);
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         vtkImageData* currentimg;
51         //wxContourEventHandler * eventHandler;
52
53 };
54
55 BBTK_BEGIN_DESCRIBE_BLACK_BOX(nDimensions,bbtk::WxBlackBox);
56 BBTK_NAME("nDimensions");
57 BBTK_AUTHOR("car-prie@uniandes.edu.co");
58 BBTK_DESCRIPTION("With a given image, the box shows the ndimension application");
59 BBTK_CATEGORY("__CategoryBlackBox__");
60 BBTK_INPUT(nDimensions,WorkDir,"Working data directory where config and data files are located",std::string,"");
61 BBTK_INPUT(nDimensions,In,"Image to be shown",vtkImageData*,"");
62 BBTK_INPUT(nDimensions,ContourType,"Contour type to be exported: ",int,"");
63
64 BBTK_OUTPUT(nDimensions,Mask,"Mask of the contours",vtkImageData*,"");
65 BBTK_OUTPUT(nDimensions,Value,"Value of the contours",vtkImageData*,"");
66 BBTK_OUTPUT(nDimensions,X,"Vector of vectors that contains the X coordinates of each contour",double**,"");
67 BBTK_OUTPUT(nDimensions,Y,"Vector of vectors that contains the Y coordinates of each contour",double**,"");
68 BBTK_OUTPUT(nDimensions,Z,"Vector of vectors that contains the Z coordinates of each contour",double**,"");
69 BBTK_OUTPUT(nDimensions,SizeContour,"Vector of vectors that contains the Z coordinates of each contour",std::vector <int>,"");
70
71
72 BBTK_END_DESCRIBE_BLACK_BOX(nDimensions);
73 }
74 // EO namespace bbCreaContour
75
76 #endif // __bbCreaContournDimensions_h_INCLUDED__
77 #endif // _USE_WXWIDGETS_
78