]> Creatis software - creaWT.git/blob - wt/bbtk_wt_PKG/src/bbwtViewerNVWeb.h
1fca1f82d462911f3dee5d630ef8d4712565dde6
[creaWT.git] / wt / bbtk_wt_PKG / src / bbwtViewerNVWeb.h
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4
5 #ifndef __bbwtViewerNVWeb_h_INCLUDED__
6 #define __bbwtViewerNVWeb_h_INCLUDED__
7 #include "bbwt_EXPORT.h"
8 #include "bbtkWtBlackBox.h"
9 #include "iostream"
10
11 namespace bbwt
12 {
13 class Viewer_NV : public Wt::WContainerWidget
14   {
15     public:
16       Viewer_NV(Wt::WContainerWidget* parent,int typeRender);
17       ~Viewer_NV();
18       std::string mImagePath;
19       int mType;
20       void configureWt();
21       
22
23
24   };
25
26
27 class bbwt_EXPORT ViewerNVWeb
28  : 
29    public bbtk::WtBlackBox
30 {
31   BBTK_BLACK_BOX_INTERFACE(ViewerNVWeb,bbtk::WtBlackBox);
32 //===== 
33 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
34 //===== 
35   BBTK_DECLARE_INPUT(ImagePath,std::string);
36   BBTK_DECLARE_INPUT(nTypeView,std::vector<int>);
37   BBTK_DECLARE_OUTPUT(viewer1,std::string);
38   BBTK_DECLARE_OUTPUT(viewer2,std::string);
39   BBTK_DECLARE_OUTPUT(viewer3,std::string);
40   BBTK_DECLARE_OUTPUT(viewer4,std::string);
41
42
43   BBTK_DECLARE_OUTPUT(Viewer1,Wt::WContainerWidget*);
44   BBTK_DECLARE_OUTPUT(Viewer2,Wt::WContainerWidget*);
45   BBTK_DECLARE_OUTPUT(Viewer3,Wt::WContainerWidget*);
46   BBTK_DECLARE_OUTPUT(Viewer4,Wt::WContainerWidget*);
47
48
49   BBTK_PROCESS(Process);
50   void Process();
51   BBTK_CREATE_WIDGET(CreateWidget);
52   void CreateWidget(Wt::WContainerWidget* parent);
53   void loadImage();
54   std::vector<int> nType;
55 /*  Wt::WContainerWidget* wtWindow1;
56   Wt::WContainerWidget* wtWindow2;
57   Wt::WContainerWidget* wtWindow3;
58   Wt::WContainerWidget* wtWindow4;
59   */
60   int cont;
61   Viewer_NV* wtWindow1;
62   Viewer_NV* wtWindow2;
63   Viewer_NV* wtWindow3;
64   Viewer_NV* wtWindow4;
65
66 //===== 
67 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
68 //===== 
69 };
70
71 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ViewerNVWeb,bbtk::WtBlackBox);
72  BBTK_NAME("ViewerNVWeb");
73  BBTK_AUTHOR("johann.gonzalez@creatis.insa-lyon.fr");
74  BBTK_DESCRIPTION("No Description.");
75  BBTK_CATEGORY("empty");
76  BBTK_INPUT(ViewerNVWeb,ImagePath,"Image path",std::string,"");
77  BBTK_INPUT(ViewerNVWeb,nTypeView,"Paramaters for the setting up of the renders",std::vector<int>,"");
78
79  BBTK_OUTPUT(ViewerNVWeb,viewer1,"Reference to viewer 1",std::string,"");
80  BBTK_OUTPUT(ViewerNVWeb,viewer2,"Reference to viewer 2",std::string,"");
81  BBTK_OUTPUT(ViewerNVWeb,viewer3,"Reference to viewer 3",std::string,"");
82  BBTK_OUTPUT(ViewerNVWeb,viewer4,"Reference to viewer 4",std::string,"");
83
84  BBTK_OUTPUT(ViewerNVWeb,Viewer1,"Viewer container wt",Wt::WContainerWidget*,"");
85  BBTK_OUTPUT(ViewerNVWeb,Viewer2,"Viewer container wt",Wt::WContainerWidget*,"");
86  BBTK_OUTPUT(ViewerNVWeb,Viewer3,"Viewer container wt",Wt::WContainerWidget*,"");
87  BBTK_OUTPUT(ViewerNVWeb,Viewer4,"Viewer container wt",Wt::WContainerWidget*,"");
88 BBTK_END_DESCRIBE_BLACK_BOX(ViewerNVWeb);
89 //===== 
90 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
91 //===== 
92 }
93 // EO namespace bbwt
94
95 #endif // __bbwtViewerNVWeb_h_INCLUDED__
96