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);
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);
38 BBTK_CREATE_WIDGET(CreateWidget);
39 void CreateWidget(wxWindow*);
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>);
49 //wxContourMainFrame* frame;
50 vtkImageData* currentimg;
51 //wxContourEventHandler * eventHandler;
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,"");
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>,"");
72 BBTK_END_DESCRIBE_BLACK_BOX(nDimensions);
74 // EO namespace bbCreaContour
76 #endif // __bbCreaContournDimensions_h_INCLUDED__
77 #endif // _USE_WXWIDGETS_