1 #ifndef VTKMPR3DDATAVIEWER_H_
2 #define VTKMPR3DDATAVIEWER_H_
4 #include "wxMPRBaseData.h"
5 #include "vtkProperty.h"
6 #include <vtkImageMapToColors.h>
7 #include "vtkOutlineFilter.h"
8 #include "vtkPolyDataMapper.h"
10 #include <vtkColorTransferFunction.h>
11 #include "vtkImageActor.h"
13 class creaMaracasVisu_EXPORT vtkMPR3DDataViewer {
16 virtual ~vtkMPR3DDataViewer();
17 vtkImageActor* GetImageActor(int id);
18 vtkActor* GetOutlineActor();
19 virtual void Refresh();
20 virtual void Configure();
21 void SetVisiblePosition(int idPosition, bool visible);
22 bool GetVisiblePosition(int idPosition);
23 vtkImageActor* GetvtkActor_saggital();
24 vtkImageActor* GetvtkActor_axial();
25 vtkImageActor* GetvtkActor_coronal();
26 void SetPositionX(int pos);
27 void SetPositionY(int pos);
28 void SetPositionZ(int pos);
29 void SetVtkMPRBaseData(vtkMPRBaseData *vtkmprbasedata);
30 vtkMPRBaseData* GetVtkMPRBaseData();
32 vtkColorTransferFunction *GetvtkColorTransferFunction();
33 std::vector<double > *GetctFunVectorPoint();
34 std::vector<double > *GetctFunVectorRed();
35 std::vector<double > *GetctFunVectorGreen();
36 std::vector<double > *GetctFunVectorBlue();
38 void setColorTransferFunction(vtkColorTransferFunction* colortable);
42 bool _visiblePosition[3];
45 vtkOutlineFilter *_outlineData;
46 vtkPolyDataMapper *_mapOutline;
50 vtkColorTransferFunction *_ctfun;
51 std::vector<double> _ctFunVectorPoint;
52 std::vector<double> _ctFunVectorRed;
53 std::vector<double> _ctFunVectorGreen;
54 std::vector<double> _ctFunVectorBlue;
56 // vtkLookupTable *_bwLut;
57 // vtkLookupTable *_hueLut;
58 // vtkLookupTable *_satLut;
60 vtkImageMapToColors *_saggitalColors;
61 vtkImageActor *_saggital;
62 vtkImageMapToColors *_axialColors;
63 vtkImageActor *_axial;
64 vtkImageMapToColors *_coronalColors;
65 vtkImageActor *_coronal;
66 vtkMPRBaseData *_vtkmprbasedata;
71 #endif /*VTKMPR3DDATAVIEWER_H_*/