6 * \brief Class ThresholdImageView .
10 * \class ThresholdImageView
14 #ifndef __LayerImageBase_h__
15 #define __LayerImageBase_h__
17 #include <vtkImageReslice.h>
18 #include <vtkLookupTable.h>
19 #include <vtkImageMapToColors.h>
20 #include <vtkImageActor.h>
21 #include <vtkImageData.h>
22 #include "wxVtkBaseView.h"
24 #include "InteractorStyleMaracas.h"
26 //----------------------------------------------------------------------------------
27 //----------------------------------------------------------------------------------
28 //----------------------------------------------------------------------------------
31 class ColorLayerImageBasevtkInteractor : public InteractorStyleMaracas {
33 ColorLayerImageBasevtkInteractor(LayerImageBase* layerImageBase);
34 virtual ~ColorLayerImageBasevtkInteractor();
36 virtual bool OnMouseMove();
39 LayerImageBase* _layerImageBase;
46 //----------------------------------------------------------------------------------
47 //----------------------------------------------------------------------------------
48 //----------------------------------------------------------------------------------
56 virtual ~LayerImageBase();
58 void SetImage(vtkImageData* image);
59 void SetwxVtkBaseView(wxVtkBaseView *baseview);
62 void onThresholdChange();
63 void onThresholdInterpolation(bool interpolate);
64 void onThresholdChangeOpacity (int opacity);
65 void onThresholdRemove();
66 wxVtkBaseView *GetwxVtkBaseView();
68 vtkLookupTable *GetvtkLookupTable();
69 vtkImageReslice *GetvtkImageReslice();
76 vtkImageReslice *_imageReslicer;
77 vtkLookupTable *_thresholdTable;
78 vtkImageMapToColors *_thresholdMapper;
79 vtkImageActor *_thresholdActor;
80 wxVtkBaseView *_baseView;
82 virtual void ConfigLookupTable() = 0;
83 bool GetActorPresent();
88 vtkLookupTable* GetThresholdTable();
89 vtkImageData* GetImage();
94 #endif // __LayerImageBase_h__