]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.h
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ThresholdImageView / LayerImageBase.h
1
2
3
4 /**
5  *  \file
6  *  \brief Class ThresholdImageView .
7  */
8
9 /**
10  * \class ThresholdImageView
11  * \brief
12  */
13
14 #ifndef __LayerImageBase_h__
15 #define __LayerImageBase_h__
16
17 #include <vtkImageReslice.h>
18 #include <vtkLookupTable.h>
19 #include <vtkImageMapToColors.h>
20 #include <vtkImageActor.h>
21 #include <vtkImageData.h>
22 #include "wxVtkBaseView.h"
23
24 class LayerImageBase
25   {
26   public:
27                 LayerImageBase();
28                 virtual ~LayerImageBase();
29                 void SetZ(int z);
30                 void SetImage(vtkImageData* image);
31                 void SetwxVtkBaseView(wxVtkBaseView *baseview);
32
33                 void onThreshold();
34                 void onThresholdChange();
35                 void onThresholdInterpolation(bool interpolate);
36                 void onThresholdChangeOpacity (int opacity);
37                 void onThresholdRemove();
38                 wxVtkBaseView *GetwxVtkBaseView();
39         void Refresh();
40
41   private:
42                 int                                     _Z;
43                 bool                            _actorPresent;
44                 vtkImageData            *_image;
45                 vtkImageReslice         *_imageReslicer;
46                 vtkLookupTable          *_thresholdTable;
47                 vtkImageMapToColors     *_thresholdMapper;
48                 vtkImageActor           *_thresholdActor;
49                 wxVtkBaseView           *_baseView;
50
51                 virtual void ConfigLookupTable() = 0;
52                 bool GetActorPresent();
53                 int CleanZ(int z);
54
55
56   protected:
57                 virtual int GetZ();
58                 vtkLookupTable* GetThresholdTable();
59                 vtkImageData* GetImage();
60  };
61
62
63
64 #endif  // __LayerImageBase_h__
65