]> Creatis software - creaWT.git/blob - wt/bbtk_wt_PKG/src/bbwtViewerNVWeb.h
2eed0f48f252ac36c6b9317b709319ba51a77531
[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   BBTK_PROCESS(Process);
42   void Process();
43   BBTK_CREATE_WIDGET(CreateWidget);
44   void CreateWidget(Wt::WContainerWidget* parent);
45   void loadImage();
46   std::vector<int> nType;
47 /*  Wt::WContainerWidget* wtWindow1;
48   Wt::WContainerWidget* wtWindow2;
49   Wt::WContainerWidget* wtWindow3;
50   Wt::WContainerWidget* wtWindow4;
51   */
52   int cont;
53   Viewer_NV* wtWindow1;
54   Viewer_NV* wtWindow2;
55   Viewer_NV* wtWindow3;
56   Viewer_NV* wtWindow4;
57
58 //===== 
59 // 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)
60 //===== 
61 };
62
63 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ViewerNVWeb,bbtk::WtBlackBox);
64 BBTK_NAME("ViewerNVWeb");
65 BBTK_AUTHOR("johann.gonzalez@creatis.insa-lyon.fr");
66 BBTK_DESCRIPTION("No Description.");
67 BBTK_CATEGORY("empty");
68 BBTK_INPUT(ViewerNVWeb,ImagePath,"Image path",std::string,"");
69 BBTK_INPUT(ViewerNVWeb,nTypeView,"Paramaters for the setting up of the renders",std::vector<int>,"");
70
71 BBTK_OUTPUT(ViewerNVWeb,viewer1,"Reference to viewer 1",std::string,"");
72 BBTK_OUTPUT(ViewerNVWeb,viewer2,"Reference to viewer 2",std::string,"");
73 BBTK_OUTPUT(ViewerNVWeb,viewer3,"Reference to viewer 3",std::string,"");
74 BBTK_OUTPUT(ViewerNVWeb,viewer4,"Reference to viewer 4",std::string,"");
75
76 BBTK_END_DESCRIBE_BLACK_BOX(ViewerNVWeb);
77 //===== 
78 // 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)
79 //===== 
80 }
81 // EO namespace bbwt
82
83 #endif // __bbwtViewerNVWeb_h_INCLUDED__
84