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=29c8940233ff29b8b1f23d592c12017025d4e21f;hpb=54bb3fba5f59ca71cb82d87043e21354dd85e7aa;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 29c8940..f297a4b 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.h @@ -1,6 +1,3 @@ - - - /** * \file * \brief Class ThresholdImageView . @@ -21,6 +18,34 @@ #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: @@ -36,11 +61,14 @@ class LayerImageBase void onThresholdChangeOpacity (int opacity); void onThresholdRemove(); wxVtkBaseView *GetwxVtkBaseView(); - void Refresh(); + void Refresh(); + vtkLookupTable *GetvtkLookupTable(); + vtkImageReslice *GetvtkImageReslice(); + virtual int GetZ(); private: - int _Z; - bool _actorPresent; + int _Z; + bool _actorPresent; vtkImageData *_image; vtkImageReslice *_imageReslicer; vtkLookupTable *_thresholdTable; @@ -54,7 +82,6 @@ class LayerImageBase protected: - virtual int GetZ(); vtkLookupTable* GetThresholdTable(); vtkImageData* GetImage(); };