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 #ifndef __bbcreaMaracasVisuVolumeRendering_h_INCLUDED__
27 #define __bbcreaMaracasVisuVolumeRendering_h_INCLUDED__
28 #include "bbcreaMaracasVisu_EXPORT.h"
29 #include "bbtkWxBlackBox.h"
33 #include <vtkImageData.h>
34 #include <vtkRenderer.h>
37 namespace bbcreaMaracasVisu
40 class bbcreaMaracasVisu_EXPORT VolumeRendering
42 public bbtk::WxBlackBox
44 BBTK_BLACK_BOX_INTERFACE(VolumeRendering,bbtk::WxBlackBox);
46 BBTK_DECLARE_INPUT(In0,vtkImageData*);
47 BBTK_DECLARE_INPUT(In1,vtkImageData*);
48 BBTK_DECLARE_INPUT(In2,vtkImageData*);
49 BBTK_DECLARE_INPUT(In3,vtkImageData*);
50 BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
52 BBTK_DECLARE_OUTPUT(Out0,vtkImageData*);
53 BBTK_DECLARE_OUTPUT(Out1,vtkImageData*);
54 BBTK_DECLARE_OUTPUT(Out2,vtkImageData*);
55 BBTK_DECLARE_OUTPUT(Out3,vtkImageData*);
58 /*BBTK_DECLARE_INPUT(GreyLevel, std::vector<double> );
59 BBTK_DECLARE_INPUT(Value, std::vector<double> );
60 BBTK_DECLARE_INPUT(GreyLevelColors, std::vector<double>);
61 BBTK_DECLARE_INPUT(Red, std::vector<double>);
62 BBTK_DECLARE_INPUT(Green, std::vector<double>);
63 BBTK_DECLARE_INPUT(Blue, std::vector<double>);*/
64 //BBTK_DECLARE_OUTPUT(Out,vtkProp3D*);
65 BBTK_PROCESS(Process);
67 BBTK_CREATE_WIDGET(CreateWidget);
68 void CreateWidget(wxWindow*);
71 vtkRenderer* _currentrenderer;
75 BBTK_BEGIN_DESCRIBE_BLACK_BOX(VolumeRendering,bbtk::WxBlackBox);
76 BBTK_NAME("VolumeRendering");
77 BBTK_AUTHOR("car-prie@uniandes.edu.co");
78 BBTK_DESCRIPTION("Volume Rendering of a given image");
79 BBTK_CATEGORY("actor");
81 BBTK_INPUT(VolumeRendering,In0,"Image to create the volume rendering",vtkImageData*,"");
82 BBTK_INPUT(VolumeRendering,In1,"Image to create the volume rendering",vtkImageData*,"");
83 BBTK_INPUT(VolumeRendering,In2,"Image to create the volume rendering",vtkImageData*,"");
84 BBTK_INPUT(VolumeRendering,In3,"Image to create the volume rendering",vtkImageData*,"");
85 BBTK_INPUT(VolumeRendering,Renderer,"Renderer",vtkRenderer*,"");
86 BBTK_OUTPUT(VolumeRendering,Out0,"Output resulting image",vtkImageData*,"");
87 BBTK_OUTPUT(VolumeRendering,Out1,"Output resulting image",vtkImageData*,"");
88 BBTK_OUTPUT(VolumeRendering,Out2,"Output resulting image",vtkImageData*,"");
89 BBTK_OUTPUT(VolumeRendering,Out3,"Output resulting image",vtkImageData*,"");
92 //BBTK_OUTPUT(VolumeRendering,Out,"Prop3D resulting from the volume rendering",vtkProp3D*,"");
94 /*BBTK_INPUT(VolumeRendering,GreyLevel,"Greylevel related to the transparency",std::vector<double>,"");
95 BBTK_INPUT(VolumeRendering,Value,"Value of the transparency in the transfer function",std::vector<double>,"");
96 BBTK_INPUT(VolumeRendering,GreyLevelColors,"Grey level of the color in the transfer function",std::vector<double>,"");
97 BBTK_INPUT(VolumeRendering,Red,"Red value according to the GreyLevelColors",std::vector<double>,"");
98 BBTK_INPUT(VolumeRendering,Green,"Green value according to the GreyLevelColors",std::vector<double>,"");
99 BBTK_INPUT(VolumeRendering,Blue,"Blue value according to the GreyLevelColors",std::vector<double>,"");*/
100 BBTK_END_DESCRIBE_BLACK_BOX(VolumeRendering);
102 // EO namespace bbcreaMaracasVisu
104 #endif // __bbcreaMaracasVisuVolumeRendering_h_INCLUDED__