X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FThresholdImageView%2FLayerImageBase.h;h=482b6fa725531671a3966a176781136b4ad862df;hb=659bcd2c2a608cfb8c5854ffe84e9248871df9a1;hp=e9eec4326fb1accd52bf854fb4da8b5fe686ee7f;hpb=dea0efc567d8332b2e7eb936e3ba4ac1c11b2542;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 e9eec43..482b6fa 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.h @@ -47,7 +47,6 @@ #include "InteractorStyleMaracas.h" #include "vtkImageChangeInformation.h" - //---------------------------------------------------------------------------------- //---------------------------------------------------------------------------------- //---------------------------------------------------------------------------------- @@ -93,6 +92,7 @@ class LayerImageBase void SetRangeForColorBar(std::vector &range); void GetRangeForColorBar(double &minRange, double &maxRange); void SetColorBarPosition(std::vector &colorbarposition); + void UpdateColorBarPosition(); void SetwxVtkBaseView(wxVtkBaseView *baseview); void onThreshold(); @@ -102,7 +102,8 @@ class LayerImageBase void onThresholdRemove(); wxVtkBaseView *GetwxVtkBaseView(); void Refresh(); - vtkLookupTable *GetvtkLookupTable(); + vtkLookupTable *GetThresholdTable(); + vtkImageReslice *GetvtkImageReslice(); virtual int GetX(); virtual int GetY(); @@ -119,6 +120,7 @@ class LayerImageBase void GetDimensionBase(int *dim); void GetSpcOriginalLayer(double *spc); void GetSpcBase(double *spc); + vtkScalarsToColors* GetLookupTable(); private: int _X; @@ -144,7 +146,6 @@ class LayerImageBase void CleanXYZ(double &x, double &y, double &z); protected: - vtkLookupTable *GetThresholdTable(); double _range[2]; std::vector _rangeForColorBar; std::vector _colorBarPosition;