]> Creatis software - creaContours.git/blob - bbtk/src/bbCreaContournDimensions.h
c6c4b2031f2b3c246fe38d00f2da17782ddbf164
[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 //==================================================================
27   BBTK_DECLARE_INPUT(WorkDir,std::string);
28   BBTK_DECLARE_INPUT(In,vtkImageData*);
29   BBTK_DECLARE_INPUT(ContourType,int);
30   BBTK_PROCESS(Process);
31   void Process();
32   BBTK_CREATE_WIDGET(CreateWidget);
33   void CreateWidget(wxWindow*);
34
35   BBTK_DECLARE_OUTPUT(Mask,vtkImageData*);
36   BBTK_DECLARE_OUTPUT(Value,vtkImageData*);
37   BBTK_DECLARE_OUTPUT(X,double**);
38   BBTK_DECLARE_OUTPUT(Y,double**);
39   BBTK_DECLARE_OUTPUT(Z,double**);
40   BBTK_DECLARE_OUTPUT(SizeContour,std::vector <int>);
41
42 private:
43         //wxContourMainFrame* frame;
44         vtkImageData* currentimg;
45         //wxContourEventHandler * eventHandler;
46 };
47
48 BBTK_BEGIN_DESCRIBE_BLACK_BOX(nDimensions, bbtk::WxBlackBox);
49 BBTK_NAME("nDimensions");
50 BBTK_AUTHOR("car-prie@uniandes.edu.co");
51 BBTK_DESCRIPTION("With a given image, the box shows the nDimension application");
52 BBTK_CATEGORY("contours");
53 BBTK_INPUT(nDimensions,WorkDir,"Working data directory where config and data files are located",std::string,"");
54 BBTK_INPUT(nDimensions,In,"Image to be shown",vtkImageData*,"");
55 BBTK_INPUT(nDimensions,ContourType,"Contour type to be exported: ",int,"");
56
57 BBTK_OUTPUT(nDimensions, Mask, "Mask of the contours",vtkImageData*,"");
58 BBTK_OUTPUT(nDimensions, Value, "Value of the contours",vtkImageData*,"");
59 BBTK_OUTPUT(nDimensions, X, "Array of arrays that contains the X coordinates of each contour", double**, "");
60 BBTK_OUTPUT(nDimensions, Y, "Array of arrays that contains the Y coordinates of each contour", double**, "");
61 BBTK_OUTPUT(nDimensions, Z, "Array of arrays that contains the Z coordinates of each contour", double**, "");
62 BBTK_OUTPUT(nDimensions, SizeContour, "Vector contains the coordinates of each contour", std::vector <int>, "");
63
64 BBTK_END_DESCRIBE_BLACK_BOX(nDimensions);
65 }
66 // EO namespace bbCreaContour
67
68 #endif // __bbCreaContournDimensions_h_INCLUDED__
69 #endif // _USE_WXWIDGETS_