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