3 * \brief Class ThresholdImageView .
7 * \class ThresholdImageView
11 #ifndef __LayerImageBase_h__
12 #define __LayerImageBase_h__
14 #include <vtkImageReslice.h>
15 #include <vtkLookupTable.h>
16 #include <vtkImageMapToColors.h>
17 #include <vtkImageActor.h>
18 #include <vtkImageData.h>
19 #include "wxVtkBaseView.h"
21 #include "InteractorStyleMaracas.h"
23 //----------------------------------------------------------------------------------
24 //----------------------------------------------------------------------------------
25 //----------------------------------------------------------------------------------
28 class ColorLayerImageBasevtkInteractor : public InteractorStyleMaracas {
30 ColorLayerImageBasevtkInteractor(LayerImageBase* layerImageBase);
31 virtual ~ColorLayerImageBasevtkInteractor();
33 virtual bool OnMouseMove();
36 LayerImageBase* _layerImageBase;
43 //----------------------------------------------------------------------------------
44 //----------------------------------------------------------------------------------
45 //----------------------------------------------------------------------------------
53 virtual ~LayerImageBase();
55 void SetImage(vtkImageData* image);
56 void SetwxVtkBaseView(wxVtkBaseView *baseview);
59 void onThresholdChange();
60 void onThresholdInterpolation(bool interpolate);
61 void onThresholdChangeOpacity (int opacity);
62 void onThresholdRemove();
63 wxVtkBaseView *GetwxVtkBaseView();
65 vtkLookupTable *GetvtkLookupTable();
66 vtkImageReslice *GetvtkImageReslice();
73 vtkImageReslice *_imageReslicer;
74 vtkLookupTable *_thresholdTable;
75 vtkImageMapToColors *_thresholdMapper;
76 vtkImageActor *_thresholdActor;
77 wxVtkBaseView *_baseView;
79 virtual void ConfigLookupTable() = 0;
80 bool GetActorPresent();
85 vtkLookupTable* GetThresholdTable();
86 vtkImageData* GetImage();
91 #endif // __LayerImageBase_h__