X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FThresholdImageView%2FLayerImageBase.h;h=f297a4b628da1bd08a3bbbe0c61a177f4298e425;hb=f050938d3947f6b785289da6d58f8fec2da57421;hp=d7c6cbc186bfa9580c8e90600c96ba13944de492;hpb=badc6cea49d018dec82191a977fc082299a1da35;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.h index d7c6cbc..f297a4b 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.h @@ -1,16 +1,13 @@ - - - /** - * \file - * \brief Class ThresholdImageView . + * \file + * \brief Class ThresholdImageView . */ /** * \class ThresholdImageView - * \brief + * \brief */ - + #ifndef __LayerImageBase_h__ #define __LayerImageBase_h__ @@ -21,9 +18,37 @@ #include #include "wxVtkBaseView.h" +#include "InteractorStyleMaracas.h" + +//---------------------------------------------------------------------------------- +//---------------------------------------------------------------------------------- +//---------------------------------------------------------------------------------- +class LayerImageBase; + +class ColorLayerImageBasevtkInteractor : public InteractorStyleMaracas { +public: + ColorLayerImageBasevtkInteractor(LayerImageBase* layerImageBase); + virtual ~ColorLayerImageBasevtkInteractor(); + + virtual bool OnMouseMove(); + +private: + LayerImageBase* _layerImageBase; + +protected: + +}; + + +//---------------------------------------------------------------------------------- +//---------------------------------------------------------------------------------- +//---------------------------------------------------------------------------------- + + + class LayerImageBase { - public: + public: LayerImageBase(); virtual ~LayerImageBase(); void SetZ(int z); @@ -36,10 +61,14 @@ class LayerImageBase void onThresholdChangeOpacity (int opacity); void onThresholdRemove(); wxVtkBaseView *GetwxVtkBaseView(); + void Refresh(); + vtkLookupTable *GetvtkLookupTable(); + vtkImageReslice *GetvtkImageReslice(); + virtual int GetZ(); private: - int _Z; - bool _actorPresent; + int _Z; + bool _actorPresent; vtkImageData *_image; vtkImageReslice *_imageReslicer; vtkLookupTable *_thresholdTable; @@ -53,7 +82,6 @@ class LayerImageBase protected: - virtual int GetZ(); vtkLookupTable* GetThresholdTable(); vtkImageData* GetImage(); };