X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FThresholdImageView%2FThresholdImageView.h;h=5a006d5300dfa24a1d73a91c02634dd336a6b1d8;hb=910aad6b5adef5024f896cc5a0daa79f1cda0661;hp=5ca77b56deb4ed2b1950dbf10786fd431b46e625;hpb=42ef0b76d65a1b4cdde710db14ada2eed990a63b;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ThresholdImageView.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ThresholdImageView.h index 5ca77b5..5a006d5 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ThresholdImageView.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ThresholdImageView.h @@ -14,48 +14,26 @@ #ifndef __ThresholdImageView_h__ #define __ThresholdImageView_h__ -#include -#include -#include -#include -#include -#include "wxVtkBaseView.h" +#include "LayerImageBase.h" - -class ThresholdImageView +class ThresholdImageView : public LayerImageBase { public: ThresholdImageView( ); ~ThresholdImageView(); - void onThreshold(); - void onThresholdChange(); - void onThresholdInterpolation(bool interpolate); - void onThresholdChangeOpacity (int opacity); - void onThresholdRemove(); - - void SetImage(vtkImageData* image); - void SetwxVtkBaseView(wxVtkBaseView *baseview); - wxVtkBaseView *GetwxVtkBaseView(); void SetBaseColor(double r, double g, double b); - - void SetZ(int z); void SetminMaxValue(int min, int max); private: - int _Z; double _baseColorR; double _baseColorG; double _baseColorB; double _minValue; double _maxValue; - bool _actorPresent; - vtkImageData *_image; - vtkImageReslice *_imageReslicer; - vtkLookupTable *_thresholdTable; - vtkImageMapToColors *_thresholdMapper; - vtkImageActor *_thresholdActor; - wxVtkBaseView *_baseView; + + virtual void ConfigLookupTable(); + protected: };