1 #ifndef __bbcreaMaracasVisuVolumeRendering_h_INCLUDED__
2 #define __bbcreaMaracasVisuVolumeRendering_h_INCLUDED__
3 #include "bbcreaMaracasVisu_EXPORT.h"
4 #include "bbtkWxBlackBox.h"
8 #include <vtkImageData.h>
9 #include <vtkRenderer.h>
12 namespace bbcreaMaracasVisu
15 class bbcreaMaracasVisu_EXPORT VolumeRendering
17 public bbtk::WxBlackBox
19 BBTK_BLACK_BOX_INTERFACE(VolumeRendering,bbtk::WxBlackBox);
21 BBTK_DECLARE_INPUT(In0,vtkImageData*);
22 BBTK_DECLARE_INPUT(In1,vtkImageData*);
23 BBTK_DECLARE_INPUT(In2,vtkImageData*);
24 BBTK_DECLARE_INPUT(In3,vtkImageData*);
25 BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
27 BBTK_DECLARE_OUTPUT(Out0,vtkImageData*);
28 BBTK_DECLARE_OUTPUT(Out1,vtkImageData*);
29 BBTK_DECLARE_OUTPUT(Out2,vtkImageData*);
30 BBTK_DECLARE_OUTPUT(Out3,vtkImageData*);
33 /*BBTK_DECLARE_INPUT(GreyLevel, std::vector<double> );
34 BBTK_DECLARE_INPUT(Value, std::vector<double> );
35 BBTK_DECLARE_INPUT(GreyLevelColors, std::vector<double>);
36 BBTK_DECLARE_INPUT(Red, std::vector<double>);
37 BBTK_DECLARE_INPUT(Green, std::vector<double>);
38 BBTK_DECLARE_INPUT(Blue, std::vector<double>);*/
39 //BBTK_DECLARE_OUTPUT(Out,vtkProp3D*);
40 BBTK_PROCESS(Process);
42 BBTK_CREATE_WIDGET(CreateWidget);
43 void CreateWidget(wxWindow*);
46 vtkRenderer* _currentrenderer;
50 BBTK_BEGIN_DESCRIBE_BLACK_BOX(VolumeRendering,bbtk::WxBlackBox);
51 BBTK_NAME("VolumeRendering");
52 BBTK_AUTHOR("car-prie@uniandes.edu.co");
53 BBTK_DESCRIPTION("Volume Rendering of a given image");
54 BBTK_CATEGORY("actor");
56 BBTK_INPUT(VolumeRendering,In0,"Image to create the volume rendering",vtkImageData*,"");
57 BBTK_INPUT(VolumeRendering,In1,"Image to create the volume rendering",vtkImageData*,"");
58 BBTK_INPUT(VolumeRendering,In2,"Image to create the volume rendering",vtkImageData*,"");
59 BBTK_INPUT(VolumeRendering,In3,"Image to create the volume rendering",vtkImageData*,"");
60 BBTK_INPUT(VolumeRendering,Renderer,"Renderer",vtkRenderer*,"");
61 BBTK_OUTPUT(VolumeRendering,Out0,"Output resulting image",vtkImageData*,"");
62 BBTK_OUTPUT(VolumeRendering,Out1,"Output resulting image",vtkImageData*,"");
63 BBTK_OUTPUT(VolumeRendering,Out2,"Output resulting image",vtkImageData*,"");
64 BBTK_OUTPUT(VolumeRendering,Out3,"Output resulting image",vtkImageData*,"");
67 //BBTK_OUTPUT(VolumeRendering,Out,"Prop3D resulting from the volume rendering",vtkProp3D*,"");
69 /*BBTK_INPUT(VolumeRendering,GreyLevel,"Greylevel related to the transparency",std::vector<double>,"");
70 BBTK_INPUT(VolumeRendering,Value,"Value of the transparency in the transfer function",std::vector<double>,"");
71 BBTK_INPUT(VolumeRendering,GreyLevelColors,"Grey level of the color in the transfer function",std::vector<double>,"");
72 BBTK_INPUT(VolumeRendering,Red,"Red value according to the GreyLevelColors",std::vector<double>,"");
73 BBTK_INPUT(VolumeRendering,Green,"Green value according to the GreyLevelColors",std::vector<double>,"");
74 BBTK_INPUT(VolumeRendering,Blue,"Blue value according to the GreyLevelColors",std::vector<double>,"");*/
75 BBTK_END_DESCRIBE_BLACK_BOX(VolumeRendering);
77 // EO namespace bbcreaMaracasVisu
79 #endif // __bbcreaMaracasVisuVolumeRendering_h_INCLUDED__