Mercurial > hg > orthanc-stone
comparison Framework/Scene2D/FloatTextureSceneLayer.cpp @ 773:b8dfd966b5f4
FloatTextureSceneLayer::SetInverted()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 24 May 2019 13:44:34 +0200 |
parents | 5430bcffba57 |
children | 0387485f048b |
comparison
equal
deleted
inserted
replaced
771:ed783cbc92d7 | 773:b8dfd966b5f4 |
---|---|
84 ::OrthancStone::ComputeWindowing(targetCenter, targetWidth, | 84 ::OrthancStone::ComputeWindowing(targetCenter, targetWidth, |
85 windowing_, customCenter_, customWidth_); | 85 windowing_, customCenter_, customWidth_); |
86 } | 86 } |
87 | 87 |
88 | 88 |
89 void FloatTextureSceneLayer::SetInverted(bool inverted) | |
90 { | |
91 inverted_ = inverted; | |
92 IncrementRevision(); | |
93 } | |
94 | |
95 | |
89 void FloatTextureSceneLayer::FitRange() | 96 void FloatTextureSceneLayer::FitRange() |
90 { | 97 { |
91 float minValue, maxValue; | 98 float minValue, maxValue; |
92 Orthanc::ImageProcessing::GetMinMaxFloatValue(minValue, maxValue, GetTexture()); | 99 Orthanc::ImageProcessing::GetMinMaxFloatValue(minValue, maxValue, GetTexture()); |
93 | 100 |
114 | 121 |
115 cloned->CopyParameters(*this); | 122 cloned->CopyParameters(*this); |
116 cloned->windowing_ = windowing_; | 123 cloned->windowing_ = windowing_; |
117 cloned->customCenter_ = customCenter_; | 124 cloned->customCenter_ = customCenter_; |
118 cloned->customWidth_ = customWidth_; | 125 cloned->customWidth_ = customWidth_; |
126 cloned->inverted_ = inverted_; | |
119 | 127 |
120 return cloned.release(); | 128 return cloned.release(); |
121 } | 129 } |
122 } | 130 } |