X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FThresholdImageView%2FLayerImageBase.h;h=5beffe7be8723c47013cc97fa9f9df165f63929d;hb=d725af03e25b41e03b212c26068be2c04dacd270;hp=a96a2b3b19f491a6f499862fbcdca48159a27440;hpb=d8edef346f2d6c64f6ed3bea7225aeb3a8b3970c;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 a96a2b3..5beffe7 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.h @@ -2,15 +2,15 @@ /** - * \file - * \brief Class ThresholdImageView . + * \file + * \brief Class ThresholdImageView . */ /** * \class ThresholdImageView - * \brief + * \brief */ - + #ifndef __LayerImageBase_h__ #define __LayerImageBase_h__ @@ -21,11 +21,39 @@ #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(); - ~LayerImageBase(); + virtual ~LayerImageBase(); void SetZ(int z); void SetImage(vtkImageData* image); void SetwxVtkBaseView(wxVtkBaseView *baseview); @@ -36,6 +64,10 @@ class LayerImageBase void onThresholdChangeOpacity (int opacity); void onThresholdRemove(); wxVtkBaseView *GetwxVtkBaseView(); + void Refresh(); + vtkLookupTable *GetvtkLookupTable(); + vtkImageReslice *GetvtkImageReslice(); + virtual int GetZ(); private: int _Z; @@ -53,7 +85,6 @@ class LayerImageBase protected: - virtual int GetZ(); vtkLookupTable* GetThresholdTable(); vtkImageData* GetImage(); };