]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ThresholdImageView.h
no message
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ThresholdImageView / ThresholdImageView.h
1
2
3
4 /**
5  *  \file 
6  *  \brief Class ThresholdImageView . 
7  */
8
9 /**
10  * \class ThresholdImageView
11  * \brief 
12  */
13  
14 #ifndef __ThresholdImageView_h__
15 #define __ThresholdImageView_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
25
26 class  ThresholdImageView 
27   {
28   public: 
29           ThresholdImageView( );
30           ~ThresholdImageView();
31           void onThreshold();
32           void onThresholdChange();
33           void onThresholdInterpolation(bool interpolate);
34           void onThresholdChangeOpacity (int opacity);
35           void onThresholdRemove();
36           
37           void SetImage(vtkImageData* image);
38           void SetwxVtkBaseView(wxVtkBaseView *baseview);
39           
40           void SetZ(int z);
41           void SetminMax(int min, int max);
42           
43   private:
44           int                                   _Z;
45           double                                _min;
46           double                                _max;
47           bool                                  _actorPresent;
48           vtkImageData                  *_image;
49           vtkImageReslice               *_imageReslicer;
50           vtkLookupTable                *_thresholdTable;
51           vtkImageMapToColors   *_thresholdMapper;
52           vtkImageActor                 *_thresholdActor;
53           wxVtkBaseView                 *_baseView;
54   protected:
55  };
56
57 #endif
58