From 318e088575f1fe3e043230f829e8175b316ca056 Mon Sep 17 00:00:00 2001 From: Vivien Delmon Date: Tue, 27 Dec 2011 15:30:50 +0100 Subject: [PATCH] Add constness some getters --- vv/vvSlicerManager.cxx | 6 +++--- vv/vvSlicerManager.h | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) 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; } -- 2.47.1