]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbcreaMaracasVisuVolumeRendering.h
*** empty log message ***
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuVolumeRendering.h
1 #ifndef __bbcreaMaracasVisuVolumeRendering_h_INCLUDED__
2 #define __bbcreaMaracasVisuVolumeRendering_h_INCLUDED__
3 #include "bbcreaMaracasVisu_EXPORT.h"
4 #include "bbtkWxBlackBox.h"
5 #include "iostream"
6
7
8 #include <vtkImageData.h>
9 #include <vtkRenderer.h>
10
11
12 namespace bbcreaMaracasVisu
13 {
14
15 class bbcreaMaracasVisu_EXPORT VolumeRendering
16  : 
17    public bbtk::WxBlackBox
18 {
19   BBTK_BLACK_BOX_INTERFACE(VolumeRendering,bbtk::WxBlackBox);
20
21   
22   
23   BBTK_DECLARE_INPUT(In0,vtkImageData*);
24   BBTK_DECLARE_INPUT(In1,vtkImageData*);
25   BBTK_DECLARE_INPUT(In2,vtkImageData*);
26   BBTK_DECLARE_INPUT(In3,vtkImageData*);
27   BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
28
29   BBTK_DECLARE_OUTPUT(Out0,vtkImageData*);
30   BBTK_DECLARE_OUTPUT(Out1,vtkImageData*);
31   BBTK_DECLARE_OUTPUT(Out2,vtkImageData*);
32   BBTK_DECLARE_OUTPUT(Out3,vtkImageData*);
33   
34   
35   /*BBTK_DECLARE_INPUT(GreyLevel, std::vector<double> );
36         BBTK_DECLARE_INPUT(Value, std::vector<double> );
37         BBTK_DECLARE_INPUT(GreyLevelColors, std::vector<double>);
38         BBTK_DECLARE_INPUT(Red, std::vector<double>);
39         BBTK_DECLARE_INPUT(Green, std::vector<double>);
40         BBTK_DECLARE_INPUT(Blue, std::vector<double>);*/
41         //BBTK_DECLARE_OUTPUT(Out,vtkProp3D*);  
42   BBTK_PROCESS(Process);
43   void Process();
44   BBTK_CREATE_WIDGET(CreateWidget);
45   void CreateWidget(wxWindow*);
46
47 private:
48         vtkRenderer* _currentrenderer;
49         
50 };
51
52 BBTK_BEGIN_DESCRIBE_BLACK_BOX(VolumeRendering,bbtk::WxBlackBox);
53 BBTK_NAME("VolumeRendering");
54 BBTK_AUTHOR("car-prie@uniandes.edu.co");
55 BBTK_DESCRIPTION("Volume Rendering of a given image");
56 BBTK_CATEGORY("__CATEGORY__");
57
58 BBTK_INPUT(VolumeRendering,In0,"Image to create the volume rendering",vtkImageData*,"");
59 BBTK_INPUT(VolumeRendering,In1,"Image to create the volume rendering",vtkImageData*,"");
60 BBTK_INPUT(VolumeRendering,In2,"Image to create the volume rendering",vtkImageData*,"");
61 BBTK_INPUT(VolumeRendering,In3,"Image to create the volume rendering",vtkImageData*,"");
62 BBTK_INPUT(VolumeRendering,Renderer,"Image to create the volume rendering",vtkRenderer*,"");
63 BBTK_OUTPUT(VolumeRendering,Out0,"Output resulting image",vtkImageData*,"");
64 BBTK_OUTPUT(VolumeRendering,Out1,"Output resulting image",vtkImageData*,"");
65 BBTK_OUTPUT(VolumeRendering,Out2,"Output resulting image",vtkImageData*,"");
66 BBTK_OUTPUT(VolumeRendering,Out3,"Output resulting image",vtkImageData*,"");
67
68
69 //BBTK_OUTPUT(VolumeRendering,Out,"Prop3D resulting from the volume rendering",vtkProp3D*,"");
70
71 /*BBTK_INPUT(VolumeRendering,GreyLevel,"Greylevel related to the transparency",std::vector<double>,"");
72   BBTK_INPUT(VolumeRendering,Value,"Value of the transparency in the transfer function",std::vector<double>,"");
73   BBTK_INPUT(VolumeRendering,GreyLevelColors,"Grey level of the color in the transfer function",std::vector<double>,"");
74   BBTK_INPUT(VolumeRendering,Red,"Red value according to the GreyLevelColors",std::vector<double>,"");
75   BBTK_INPUT(VolumeRendering,Green,"Green value according to the GreyLevelColors",std::vector<double>,"");
76   BBTK_INPUT(VolumeRendering,Blue,"Blue value according to the GreyLevelColors",std::vector<double>,"");*/
77 BBTK_END_DESCRIBE_BLACK_BOX(VolumeRendering);
78 }
79 // EO namespace bbcreaMaracasVisu
80
81 #endif // __bbcreaMaracasVisuVolumeRendering_h_INCLUDED__
82