X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FThresholdImageView%2FLayerImageBase.h;h=6de2f5d4a85e1e069e518e261a9d7885b353f7a1;hb=439cc05f12e61d0ba090ec0c2ba8701d382238d7;hp=47a69e97506f79b2f4a73b7c280225bbef565363;hpb=4ecb6789d069c8dcd40724f03d8225c25629cd52;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 47a69e9..6de2f5d 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.h @@ -63,7 +63,7 @@ public: virtual bool OnRightButtonUp(); private: - bool _state; + bool _state; bool _stateKey; LayerImageBase* _layerImageBase; @@ -87,6 +87,8 @@ class LayerImageBase void SetY(int y); void SetZ(int z); void SetImage(vtkImageData* image); + void SetRangeForColorBar(std::vector &range); + void GetRangeForColorBar(double &minRange, double &maxRange); void SetwxVtkBaseView(wxVtkBaseView *baseview); void onThreshold(); @@ -102,28 +104,32 @@ class LayerImageBase virtual int GetY(); virtual int GetZ(); bool GetActorPresent(); + void GetImageScalarRange(); + private: int _X; int _Y; int _Z; - bool _actorPresent; + bool _actorPresent; vtkImageData *_image; - vtkImageReslice *_imageReslicer; + vtkImageReslice *_imageReslicer; vtkLookupTable *_thresholdTable; - vtkImageMapToColors *_thresholdMapper; + vtkImageMapToColors *_thresholdMapper; vtkImageActor *_thresholdActor; wxVtkBaseView *_baseView; vtkScalarBarActor *_scalarbarActor; virtual void ConfigLookupTable() = 0; - void CleanXYZ(double &x, double &y, double &z); + void CleanXYZ(double &x, double &y, double &z); protected: vtkLookupTable *GetThresholdTable(); vtkImageData *GetImage(); + double _range[2]; + std::vector _rangeForColorBar; };