From: Vivien Delmon Date: Tue, 27 Dec 2011 14:30:50 +0000 (+0100) Subject: Add constness some getters X-Git-Tag: v1.3.0~128 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=318e088575f1fe3e043230f829e8175b316ca056;p=clitk.git Add constness some getters --- diff --git a/vv/vvSlicerManager.cxx b/vv/vvSlicerManager.cxx index 9a16309..e739eef 100644 --- a/vv/vvSlicerManager.cxx +++ b/vv/vvSlicerManager.cxx @@ -763,7 +763,7 @@ double vvSlicerManager::GetColorLevel() //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- -double vvSlicerManager::GetOverlayColorWindow() +double vvSlicerManager::GetOverlayColorWindow() const { if (mSlicers.size()) return mSlicers[0]->GetOverlayColorWindow(); @@ -772,7 +772,7 @@ double vvSlicerManager::GetOverlayColorWindow() //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- -double vvSlicerManager::GetOverlayColorLevel() +double vvSlicerManager::GetOverlayColorLevel() const { if (mSlicers.size()) return mSlicers[0]->GetOverlayColorLevel(); @@ -781,7 +781,7 @@ double vvSlicerManager::GetOverlayColorLevel() //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- -bool vvSlicerManager::GetLinkOverlayWindowLevel() +bool vvSlicerManager::GetLinkOverlayWindowLevel() const { if (mSlicers.size()) return mSlicers[0]->GetLinkOverlayWindowLevel(); diff --git a/vv/vvSlicerManager.h b/vv/vvSlicerManager.h index e8a229b..aff339a 100644 --- a/vv/vvSlicerManager.h +++ b/vv/vvSlicerManager.h @@ -139,31 +139,31 @@ class vvSlicerManager : public QObject { double GetColorWindow(); double GetColorLevel(); - double GetOverlayColorWindow(); - double GetOverlayColorLevel(); - bool GetLinkOverlayWindowLevel(); + double GetOverlayColorWindow() const; + double GetOverlayColorLevel() const; + bool GetLinkOverlayWindowLevel() const; int GetColorMap() { return mColorMap; } int GetPreset() { return mPreset; } - int GetOverlayColor() { + int GetOverlayColor() const { return mOverlayColor; } - int GetFusionOpacity() { + int GetFusionOpacity() const { return mFusionOpacity; } - int GetFusionThresholdOpacity() { + int GetFusionThresholdOpacity() const { return mFusionThresOpacity; } - int GetFusionColorMap() { + int GetFusionColorMap() const { return mFusionColorMap; } - double GetFusionWindow() { + double GetFusionWindow() const { return mFusionWindow; } - double GetFusionLevel() { + double GetFusionLevel() const { return mFusionLevel; }