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=d725af03e25b41e03b212c26068be2c04dacd270;hp=56dd8a6e7e0c94800ffe7812ca5c9781fda6a4db;hpb=096822cf3513065cfa25e378679339a5ae4684cf;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 56dd8a6..5a006d5 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ThresholdImageView.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ThresholdImageView.h @@ -14,43 +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); - - void SetZ(int z); - void SetminMax(int min, int max); + void SetBaseColor(double r, double g, double b); + void SetminMaxValue(int min, int max); private: - int _Z; - double _min; - double _max; - bool _actorPresent; - vtkImageData *_image; - vtkImageReslice *_imageReslicer; - vtkLookupTable *_thresholdTable; - vtkImageMapToColors *_thresholdMapper; - vtkImageActor *_thresholdActor; - wxVtkBaseView *_baseView; + double _baseColorR; + double _baseColorG; + double _baseColorB; + double _minValue; + double _maxValue; + + virtual void ConfigLookupTable(); + protected: };