2 #ifndef __bbCreaContournDimensions_h_INCLUDED__
3 #define __bbCreaContournDimensions_h_INCLUDED__
4 #include "bbtkWxBlackBox.h"
6 #include "wxContourMainFrame.h"
9 #include "vtkImageData.h"
11 #include "wx/artprov.h"
12 #include <wx/filedlg.h>
14 #include <vtkImageData.h>
15 #include <vtkMetaImageReader.h>
17 namespace bbcreaContours
20 class /*BBTK_EXPORT*/ nDimensions
22 public bbtk::WxBlackBox
24 BBTK_BLACK_BOX_INTERFACE(nDimensions,bbtk::WxBlackBox);
26 //==================================================================
27 BBTK_DECLARE_INPUT(WorkDir,std::string);
28 BBTK_DECLARE_INPUT(In,vtkImageData*);
29 BBTK_DECLARE_INPUT(ContourType,int);
30 BBTK_PROCESS(Process);
32 BBTK_CREATE_WIDGET(CreateWidget);
33 void CreateWidget(wxWindow*);
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>);
43 //wxContourMainFrame* frame;
44 vtkImageData* currentimg;
45 //wxContourEventHandler * eventHandler;
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,"");
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 that contains the coordinates of each contour", std::vector <int>, "");
64 BBTK_END_DESCRIBE_BLACK_BOX(nDimensions);
66 // EO namespace bbCreaContour
68 #endif // __bbCreaContournDimensions_h_INCLUDED__
69 #endif // _USE_WXWIDGETS_