]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbmaracasvisuContourCrown.h
13044fe69203ed9ada3c0c610318e5e08ea876db
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuContourCrown.h
1 #ifdef _USE_WXWIDGETS_
2 #ifndef __bbcreaMaracasVisuContourCrown_h_INCLUDED__
3 #define __bbcreaMaracasVisuContourCrown_h_INCLUDED__
4 #include "bbtkWxBlackBox.h"
5
6 #include <vtkImageData.h>
7
8 #include "Contour/ContourCrownWidget.h"
9
10 namespace bbcreaMaracasVisu
11 {
12
13 class /*BBTK_EXPORT*/ ContourCrown
14  : 
15    public bbtk::WxBlackBox
16 {
17   BBTK_BLACK_BOX_INTERFACE(ContourCrown,bbtk::WxBlackBox);
18     BBTK_DECLARE_INPUT(In, vtkImageData*);
19     BBTK_DECLARE_INPUT(wxVtkBaseView, wxVtkBaseView*);
20 //JSTG 26-02-08 -------------------------------------------------------
21     BBTK_DECLARE_INPUT(ControlPointsInX,std::vector<double>*);
22         BBTK_DECLARE_INPUT(ControlPointsInY,std::vector<double>*);
23         BBTK_DECLARE_INPUT(ControlPointsInZ,std::vector<double>*);
24 //---------------------------------------------------------------------
25         BBTK_DECLARE_OUTPUT(LstValue,std::vector<double>*);
26         BBTK_DECLARE_OUTPUT(LstValuePosX,std::vector<double>*);
27         BBTK_DECLARE_OUTPUT(LstValuePosY,std::vector<double>*);
28         BBTK_DECLARE_OUTPUT(LstValuePosZ,std::vector<double>*);
29         BBTK_DECLARE_OUTPUT(LstContourX,std::vector<double>*);
30         BBTK_DECLARE_OUTPUT(LstContourY,std::vector<double>*);
31         BBTK_DECLARE_OUTPUT(LstContourZ,std::vector<double>*);
32         BBTK_DECLARE_OUTPUT(LstContourCrlX,std::vector<double>*);
33         BBTK_DECLARE_OUTPUT(LstContourCrlY,std::vector<double>*);
34         BBTK_DECLARE_OUTPUT(LstContourCrlZ,std::vector<double>*);
35         BBTK_DECLARE_OUTPUT(ImageValueResult,vtkImageData*);
36         BBTK_DECLARE_OUTPUT(ImageMaskResult,vtkImageData*);
37   BBTK_PROCESS(Process);
38   void Process();
39   BBTK_CREATE_WIDGET(CreateWidget);
40   void CreateWidget(wxWindow*);
41
42 private:
43         bool                                    firsttime;
44         wxMaracasCoutourTool    *mwxwidget;
45         std::vector<double>             LstValue;
46         std::vector<double>             LstValuePosX;
47         std::vector<double>             LstValuePosY;
48         std::vector<double>             LstValuePosZ;
49         std::vector<double>             LstContourX;
50         std::vector<double>             LstContourY;
51         std::vector<double>             LstContourZ;
52         std::vector<double>             LstContourCrlX;
53         std::vector<double>             LstContourCrlY;
54         std::vector<double>             LstContourCrlZ;
55 };
56
57 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ContourCrown,bbtk::WxBlackBox);
58 BBTK_NAME("ContourCrown");
59 BBTK_AUTHOR("eduardo.davila [at] creatis.insa-lyon.fr");
60 BBTK_DESCRIPTION("Contour crown tool");
61     BBTK_CATEGORY("specific_appli");
62         BBTK_INPUT(ContourCrown,In,"Input Image", vtkImageData *,"" );
63         BBTK_INPUT(ContourCrown,wxVtkBaseView,"maracas visu wxVtkBaseView",wxVtkBaseView*,"");
64 //JSTG 26-02-08 ---------------------------------------------------------------------------------------------------------
65         BBTK_INPUT(ContourCrown,ControlPointsInX,"Control Points X Coords ",std::vector<double>*,"");
66         BBTK_INPUT(ContourCrown,ControlPointsInY,"Control Points Y Coords ",std::vector<double>*,"");
67         BBTK_INPUT(ContourCrown,ControlPointsInZ,"Control Points Z Coords ",std::vector<double>*,"");
68 //-----------------------------------------------------------------------------------------------------------------------
69         BBTK_OUTPUT(ContourCrown,LstValue          , "Pixel values"                                                             ,       std::vector<double>*,"");
70         BBTK_OUTPUT(ContourCrown,LstValuePosX  , "Positions X of the values"                                    ,       std::vector<double>*,"");
71         BBTK_OUTPUT(ContourCrown,LstValuePosY  , "Positions Y of the values"                                    ,       std::vector<double>*,"");
72         BBTK_OUTPUT(ContourCrown,LstValuePosZ  , "Positions Z of the values"                                    ,       std::vector<double>*,"");
73         BBTK_OUTPUT(ContourCrown,LstContourX   , "Positions X of the contours"                          ,       std::vector<double>*,"");
74         BBTK_OUTPUT(ContourCrown,LstContourY   , "Positions Y of the contours"                          ,       std::vector<double>*,"");
75         BBTK_OUTPUT(ContourCrown,LstContourZ   , "Positions Z of the contours"                          ,       std::vector<double>*,"");
76         BBTK_OUTPUT(ContourCrown,LstContourCrlX, "Positions X of the contour control points"    ,       std::vector<double>*,"");
77         BBTK_OUTPUT(ContourCrown,LstContourCrlY, "Positions Y of the contour control points"    ,       std::vector<double>*,"");
78         BBTK_OUTPUT(ContourCrown,LstContourCrlZ, "Positions Z of the contour control points"    ,       std::vector<double>*,"");
79         BBTK_OUTPUT(ContourCrown,ImageValueResult, "vtkImagedata with the values"       ,       vtkImageData *,"" );
80         BBTK_OUTPUT(ContourCrown,ImageMaskResult, "vtkImagedata with the mask"  ,       vtkImageData *,"" );
81 BBTK_END_DESCRIBE_BLACK_BOX(ContourCrown);
82 }
83 // EO namespace bbcreaMaracasVisu
84
85 #endif // __bbcreaMaracasVisuContourCrown_h_INCLUDED__
86 #endif // _USE_WXWIDGETS_
87