]> Creatis software - creaWT.git/blob - wt/bbtk_wt_PKG/src/bbwtViewerNVWeb.h
#2691 creaWT Feature New Normal - Implementation temp files
[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   std::vector<int> nType;
54   bool firstTime;
55
56 /*  Wt::WContainerWidget* wtWindow1;
57   Wt::WContainerWidget* wtWindow2;
58   Wt::WContainerWidget* wtWindow3;
59   Wt::WContainerWidget* wtWindow4;
60   */
61   int cont;
62   Viewer_NV* wtWindow1;
63   Viewer_NV* wtWindow2;
64   Viewer_NV* wtWindow3;
65   Viewer_NV* wtWindow4;
66
67 //===== 
68 // 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)
69 //===== 
70 };
71
72 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ViewerNVWeb,bbtk::WtBlackBox);
73  BBTK_NAME("ViewerNVWeb");
74  BBTK_AUTHOR("johann.gonzalez@creatis.insa-lyon.fr");
75  BBTK_DESCRIPTION("No Description.");
76  BBTK_CATEGORY("empty");
77  BBTK_INPUT(ViewerNVWeb,ImagePath,"Image path",std::string,"");
78  BBTK_INPUT(ViewerNVWeb,nTypeView,"Paramaters for the setting up of the renders",std::vector<int>,"");
79
80  BBTK_OUTPUT(ViewerNVWeb,viewer1,"Reference to viewer 1",std::string,"");
81  BBTK_OUTPUT(ViewerNVWeb,viewer2,"Reference to viewer 2",std::string,"");
82  BBTK_OUTPUT(ViewerNVWeb,viewer3,"Reference to viewer 3",std::string,"");
83  BBTK_OUTPUT(ViewerNVWeb,viewer4,"Reference to viewer 4",std::string,"");
84
85  BBTK_OUTPUT(ViewerNVWeb,Viewer1,"Viewer container wt",Wt::WContainerWidget*,"");
86  BBTK_OUTPUT(ViewerNVWeb,Viewer2,"Viewer container wt",Wt::WContainerWidget*,"");
87  BBTK_OUTPUT(ViewerNVWeb,Viewer3,"Viewer container wt",Wt::WContainerWidget*,"");
88  BBTK_OUTPUT(ViewerNVWeb,Viewer4,"Viewer container wt",Wt::WContainerWidget*,"");
89 BBTK_END_DESCRIBE_BLACK_BOX(ViewerNVWeb);
90 //===== 
91 // 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)
92 //===== 
93 }
94 // EO namespace bbwt
95
96 #endif // __bbwtViewerNVWeb_h_INCLUDED__
97