]> 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           wxVtkBaseView *GetwxVtkBaseView();
40           void SetBaseColor(double r, double g, double b);
41           
42           void SetZ(int z);
43           void SetminMaxValue(int min, int max);
44           
45   private:
46           int                                   _Z;
47           double                                _baseColorR;
48           double                                _baseColorG;
49           double                                _baseColorB;
50           double                                _minValue;
51           double                                _maxValue;
52           bool                                  _actorPresent;
53           vtkImageData                  *_image;
54           vtkImageReslice               *_imageReslicer;
55           vtkLookupTable                *_thresholdTable;
56           vtkImageMapToColors   *_thresholdMapper;
57           vtkImageActor                 *_thresholdActor;
58           wxVtkBaseView                 *_baseView;
59   protected:
60  };
61
62 #endif
63