]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbcreaMaracasVisuRenderingViewer.h
39e76c9071d9537ca1328c860073bb2242c44da5
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuRenderingViewer.h
1 #ifdef _USE_WXWIDGETS_
2 #ifndef __bbcreaMaracasVisuRenderingViewer_h_INCLUDED__
3 #define __bbcreaMaracasVisuRenderingViewer_h_INCLUDED__
4 #include "bbcreaMaracasVisu_EXPORT.h"
5 #include "bbtkWxBlackBox.h"
6
7 #include "vtkImageData.h"
8 //#include "vtkRenderer.h"
9 #include "vtkProp3D.h"
10
11 namespace bbcreaMaracasVisu
12 {
13
14 class bbcreaMaracasVisu_EXPORT RenderingViewer
15  : 
16    public bbtk::WxBlackBox
17 {
18   BBTK_BLACK_BOX_INTERFACE(RenderingViewer,bbtk::WxBlackBox);
19   //BBTK_DECLARE_INPUT(Title,std::string); 
20   BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
21   BBTK_DECLARE_INPUT(In1,vtkImageData*);
22   BBTK_DECLARE_INPUT(In2,vtkImageData*);
23   BBTK_DECLARE_INPUT(In3,vtkImageData*);
24   BBTK_DECLARE_INPUT(In4,vtkImageData*);
25   BBTK_DECLARE_OUTPUT(Out1,vtkImageData*);
26   BBTK_DECLARE_OUTPUT(Out2,vtkImageData*);
27   BBTK_DECLARE_OUTPUT(Out3,vtkImageData*);
28   BBTK_DECLARE_OUTPUT(Out4,vtkImageData*);
29   BBTK_PROCESS(Process);
30   void Process();
31   BBTK_CREATE_WIDGET(CreateWidget);
32   void CreateWidget(wxWindow*);
33
34   private:
35         vtkRenderer* _currentrenderer;
36 };
37
38 BBTK_BEGIN_DESCRIBE_BLACK_BOX(RenderingViewer,bbtk::WxBlackBox);
39 BBTK_NAME("RenderingViewer");
40 BBTK_AUTHOR("Carolina Perez");
41 BBTK_DESCRIPTION("Complex box which gathers VolumeRendering and SurfaceRendering funtionalities");
42 BBTK_CATEGORY("__CategoryBlackBox__");
43 //BBTK_INPUT(RenderingViewer,Title,"Title prepended to the text",std::string,"");
44 BBTK_INPUT(RenderingViewer,Renderer,"Renderer to show image" ,vtkRenderer*, "");
45 BBTK_INPUT(RenderingViewer,In1,"Input image to the Rendering",vtkImageData*,"");
46 BBTK_INPUT(RenderingViewer,In2,"Input image to the Rendering",vtkImageData*,"");
47 BBTK_INPUT(RenderingViewer,In3,"Input image to the Rendering",vtkImageData*,"");
48 BBTK_INPUT(RenderingViewer,In4,"Input image to the Rendering",vtkImageData*,"");
49 BBTK_OUTPUT(RenderingViewer,Out1,"Output resulting image",vtkImageData*,"");
50 BBTK_OUTPUT(RenderingViewer,Out2,"Output resulting image",vtkImageData*,"");
51 BBTK_OUTPUT(RenderingViewer,Out3,"Output resulting image",vtkImageData*,"");
52 BBTK_OUTPUT(RenderingViewer,Out4,"Output resulting image",vtkImageData*,"");
53 BBTK_END_DESCRIBE_BLACK_BOX(RenderingViewer);
54 }
55 // EO namespace bbcreaMaracasVisu
56
57 #endif // __bbcreaMaracasVisuRenderingViewer_h_INCLUDED__
58 #endif // _USE_WXWIDGETS_
59