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=0af0e62db2a69f471f452bd4dd0c3c82d82c00d2;hpb=e2509516e281249369e6792239847216068556c4;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 0af0e62..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; @@ -48,8 +80,9 @@ class LayerImageBase wxVtkBaseView *_baseView; virtual void ConfigLookupTable() = 0; - int GetZ(); bool GetActorPresent(); + int CleanZ(int z); + protected: vtkLookupTable* GetThresholdTable();