X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FThresholdImageView%2FThresholdImageView.h;fp=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FThresholdImageView%2FThresholdImageView.h;h=56dd8a6e7e0c94800ffe7812ca5c9781fda6a4db;hb=096822cf3513065cfa25e378679339a5ae4684cf;hp=0000000000000000000000000000000000000000;hpb=f6aa96e6973545c213cdecf2c44b9155743f11dc;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 new file mode 100644 index 0000000..56dd8a6 --- /dev/null +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ThresholdImageView.h @@ -0,0 +1,58 @@ + + + +/** + * \file + * \brief Class ThresholdImageView . + */ + +/** + * \class ThresholdImageView + * \brief + */ + +#ifndef __ThresholdImageView_h__ +#define __ThresholdImageView_h__ + +#include +#include +#include +#include +#include +#include "wxVtkBaseView.h" + + + +class ThresholdImageView + { + 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); + + private: + int _Z; + double _min; + double _max; + bool _actorPresent; + vtkImageData *_image; + vtkImageReslice *_imageReslicer; + vtkLookupTable *_thresholdTable; + vtkImageMapToColors *_thresholdMapper; + vtkImageActor *_thresholdActor; + wxVtkBaseView *_baseView; + protected: + }; + +#endif +