2 #ifndef __bbcreaMaracasVisuContourCrown_h_INCLUDED__
3 #define __bbcreaMaracasVisuContourCrown_h_INCLUDED__
4 #include "bbtkWxBlackBox.h"
6 #include <vtkImageData.h>
8 #include "Contour/ContourCrownWidget.h"
10 namespace bbcreaMaracasVisu
13 class /*BBTK_EXPORT*/ ContourCrown
15 public bbtk::WxBlackBox
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);
39 BBTK_CREATE_WIDGET(CreateWidget);
40 void CreateWidget(wxWindow*);
43 wxMaracasCoutourTool *mwxwidget;
44 std::vector<double> LstValue;
45 std::vector<double> LstValuePosX;
46 std::vector<double> LstValuePosY;
47 std::vector<double> LstValuePosZ;
48 std::vector<double> LstContourX;
49 std::vector<double> LstContourY;
50 std::vector<double> LstContourZ;
51 std::vector<double> LstContourCrlX;
52 std::vector<double> LstContourCrlY;
53 std::vector<double> LstContourCrlZ;
56 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ContourCrown,bbtk::WxBlackBox);
57 BBTK_NAME("ContourCrown");
58 BBTK_AUTHOR("eduardo.davila [at] creatis.insa-lyon.fr");
59 BBTK_DESCRIPTION("Contour crown tool");
60 BBTK_CATEGORY("specific_appli");
61 BBTK_INPUT(ContourCrown,In,"Input Image", vtkImageData *,"" );
62 BBTK_INPUT(ContourCrown,wxVtkBaseView,"maracas visu wxVtkBaseView",wxVtkBaseView*,"");
63 //JSTG 26-02-08 ---------------------------------------------------------------------------------------------------------
64 BBTK_INPUT(ContourCrown,ControlPointsInX,"Control Points X Coords ",std::vector<double>*,"");
65 BBTK_INPUT(ContourCrown,ControlPointsInY,"Control Points Y Coords ",std::vector<double>*,"");
66 BBTK_INPUT(ContourCrown,ControlPointsInZ,"Control Points Z Coords ",std::vector<double>*,"");
67 //-----------------------------------------------------------------------------------------------------------------------
68 BBTK_OUTPUT(ContourCrown,LstValue , "Pixel values" , std::vector<double>*,"");
69 BBTK_OUTPUT(ContourCrown,LstValuePosX , "Positions X of the values" , std::vector<double>*,"");
70 BBTK_OUTPUT(ContourCrown,LstValuePosY , "Positions Y of the values" , std::vector<double>*,"");
71 BBTK_OUTPUT(ContourCrown,LstValuePosZ , "Positions Z of the values" , std::vector<double>*,"");
72 BBTK_OUTPUT(ContourCrown,LstContourX , "Positions X of the contours" , std::vector<double>*,"");
73 BBTK_OUTPUT(ContourCrown,LstContourY , "Positions Y of the contours" , std::vector<double>*,"");
74 BBTK_OUTPUT(ContourCrown,LstContourZ , "Positions Z of the contours" , std::vector<double>*,"");
75 BBTK_OUTPUT(ContourCrown,LstContourCrlX, "Positions X of the contour control points" , std::vector<double>*,"");
76 BBTK_OUTPUT(ContourCrown,LstContourCrlY, "Positions Y of the contour control points" , std::vector<double>*,"");
77 BBTK_OUTPUT(ContourCrown,LstContourCrlZ, "Positions Z of the contour control points" , std::vector<double>*,"");
78 BBTK_OUTPUT(ContourCrown,ImageValueResult, "vtkImagedata with the values" , vtkImageData *,"" );
79 BBTK_OUTPUT(ContourCrown,ImageMaskResult, "vtkImagedata with the mask" , vtkImageData *,"" );
80 BBTK_END_DESCRIBE_BLACK_BOX(ContourCrown);
82 // EO namespace bbcreaMaracasVisu
84 #endif // __bbcreaMaracasVisuContourCrown_h_INCLUDED__
85 #endif // _USE_WXWIDGETS_