Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Toolbox/DicomInstanceParameters.h @ 1677:51bab5188a13
start multiple preset windowings
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 23 Nov 2020 19:24:18 +0100 |
parents | 4e14735e98f8 |
children | 5b8b88e5bfd6 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Toolbox/DicomInstanceParameters.h Mon Nov 23 18:49:42 2020 +0100 +++ b/OrthancStone/Sources/Toolbox/DicomInstanceParameters.h Mon Nov 23 19:24:18 2020 +0100 @@ -55,9 +55,8 @@ bool hasRescale_; double rescaleIntercept_; double rescaleSlope_; - bool hasDefaultWindowing_; - float defaultWindowingCenter_; - float defaultWindowingWidth_; + Vector presetWindowingCenters_; + Vector presetWindowingWidths_; bool hasIndexInSeries_; unsigned int indexInSeries_; std::string doseUnits_; @@ -182,14 +181,11 @@ double GetRescaleSlope() const; - bool HasDefaultWindowing() const - { - return data_.hasDefaultWindowing_; - } + size_t GetPresetWindowingsCount() const; - float GetDefaultWindowingCenter() const; + float GetPresetWindowingCenter(size_t i) const; - float GetDefaultWindowingWidth() const; + float GetPresetWindowingWidth(size_t i) const; Orthanc::PixelFormat GetExpectedPixelFormat() const;