]> 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                 ~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
40   private:
41                 int                                     _Z;
42                 bool                            _actorPresent;
43                 vtkImageData            *_image;
44                 vtkImageReslice         *_imageReslicer;
45                 vtkLookupTable          *_thresholdTable;
46                 vtkImageMapToColors     *_thresholdMapper;
47                 vtkImageActor           *_thresholdActor;
48                 wxVtkBaseView           *_baseView;
49
50                 virtual void ConfigLookupTable() = 0;
51                 bool GetActorPresent();
52                 int CleanZ(int z);
53
54
55   protected:
56                 virtual int GetZ();
57                 vtkLookupTable* GetThresholdTable();
58                 vtkImageData* GetImage();
59  };
60
61
62
63 #endif  // __LayerImageBase_h__
64