1 /*# ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
9 # This software is governed by the CeCILL-B license under French law and
10 # abiding by the rules of distribution of free software. You can use,
11 # modify and/ or redistribute the software under the terms of the CeCILL-B
12 # license as circulated by CEA, CNRS and INRIA at the following URL
13 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 # or in the file LICENSE.txt.
16 # As a counterpart to the access to the source code and rights to copy,
17 # modify and redistribute granted by the license, users are provided only
18 # with a limited warranty and the software's author, the holder of the
19 # economic rights, and the successive licensors have only limited
22 # The fact that you are presently reading this means that you have had
23 # knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
26 #ifdef _USE_WXWIDGETS_
27 #ifndef __bbcreaMaracasVisuRenderingViewer_h_INCLUDED__
28 #define __bbcreaMaracasVisuRenderingViewer_h_INCLUDED__
29 #include "bbcreaMaracasVisu_EXPORT.h"
30 #include "bbtkWxBlackBox.h"
32 #include "vtkImageData.h"
33 #include "vtkProp3D.h"
34 #include "vtkRenderer.h"
35 #include "wxVtkBaseView.h"
37 namespace bbcreaMaracasVisu
40 class bbcreaMaracasVisu_EXPORT RenderingViewer
42 public bbtk::WxBlackBox
44 BBTK_BLACK_BOX_INTERFACE(RenderingViewer,bbtk::WxBlackBox);
45 //BBTK_DECLARE_INPUT(Title,std::string);
46 BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
47 BBTK_DECLARE_INPUT(wxVtkBaseView,wxVtkBaseView*);
48 BBTK_DECLARE_INPUT(In1,vtkImageData*);
49 BBTK_DECLARE_INPUT(In2,vtkImageData*);
50 BBTK_DECLARE_INPUT(In3,vtkImageData*);
51 BBTK_DECLARE_INPUT(In4,vtkImageData*);
52 BBTK_DECLARE_OUTPUT(Out1,vtkImageData*);
53 BBTK_DECLARE_OUTPUT(Out2,vtkImageData*);
54 BBTK_DECLARE_OUTPUT(Out3,vtkImageData*);
55 BBTK_DECLARE_OUTPUT(Out4,vtkImageData*);
56 BBTK_DECLARE_OUTPUT(ImageFiles, std::vector<std::string>);
57 BBTK_PROCESS(Process);
59 BBTK_CREATE_WIDGET(CreateWidget);
60 void CreateWidget(wxWindow*);
63 vtkRenderer* _currentrenderer;
66 BBTK_BEGIN_DESCRIBE_BLACK_BOX(RenderingViewer,bbtk::WxBlackBox);
67 BBTK_NAME("RenderingViewer");
68 BBTK_AUTHOR("Carolina Perez");
69 BBTK_DESCRIPTION("Complex box which gathers VolumeRendering and SurfaceRendering funtionalities");
70 BBTK_CATEGORY("actor");
71 //BBTK_INPUT(RenderingViewer,Title,"Title prepended to the text",std::string,"");
72 BBTK_INPUT(RenderingViewer,Renderer,"Renderer to show volume rendering image" ,vtkRenderer*, "");
73 BBTK_INPUT(RenderingViewer,wxVtkBaseView,"wxVtkBaseView",wxVtkBaseView*,"");
74 //BBTK_INPUT(RenderingViewer,RendererSA,"Renderer to show surface rendering image" ,vtkRenderer*, "");
75 //BBTK_INPUT(RenderingViewer,RendererSB,"Renderer to show surface rendering image" ,vtkRenderer*, "");
76 //BBTK_INPUT(RenderingViewer,RendererSC,"Renderer to show surface rendering image" ,vtkRenderer*, "");
77 BBTK_INPUT(RenderingViewer,In1,"Input image to the Rendering",vtkImageData*,"");
78 BBTK_INPUT(RenderingViewer,In2,"Input image to the Rendering",vtkImageData*,"");
79 BBTK_INPUT(RenderingViewer,In3,"Input image to the Rendering",vtkImageData*,"");
80 BBTK_INPUT(RenderingViewer,In4,"Input image to the Rendering",vtkImageData*,"");
81 BBTK_OUTPUT(RenderingViewer,Out1,"Output resulting image",vtkImageData*,"");
82 BBTK_OUTPUT(RenderingViewer,Out2,"Output resulting image",vtkImageData*,"");
83 BBTK_OUTPUT(RenderingViewer,Out3,"Output resulting image",vtkImageData*,"");
84 BBTK_OUTPUT(RenderingViewer,Out4,"Output resulting image",vtkImageData*,"");
85 BBTK_OUTPUT(RenderingViewer,ImageFiles,"File Name", std::vector<std::string>,"");
86 BBTK_END_DESCRIBE_BLACK_BOX(RenderingViewer);
88 // EO namespace bbcreaMaracasVisu
90 #endif // __bbcreaMaracasVisuRenderingViewer_h_INCLUDED__
91 #endif // _USE_WXWIDGETS_