]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.h
#3472 TDx
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ThresholdImageView / LayerImageBase.h
index e9eec4326fb1accd52bf854fb4da8b5fe686ee7f..482b6fa725531671a3966a176781136b4ad862df 100644 (file)
@@ -47,7 +47,6 @@
 #include "InteractorStyleMaracas.h"
 #include "vtkImageChangeInformation.h"
 
-
 //----------------------------------------------------------------------------------
 //----------------------------------------------------------------------------------
 //----------------------------------------------------------------------------------
@@ -93,6 +92,7 @@ class LayerImageBase
                void                    SetRangeForColorBar(std::vector<double> &range);
                void                    GetRangeForColorBar(double &minRange, double &maxRange);
                void                    SetColorBarPosition(std::vector<int> &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<double>             _rangeForColorBar;
                std::vector<int>                        _colorBarPosition;