MCPcopy Create free account
hub / github.com/MITK/MITK / SetDefaultBoundaries

Method SetDefaultBoundaries

Modules/Core/src/DataManagement/mitkLevelWindow.cpp:172–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172void mitk::LevelWindow::SetDefaultBoundaries(mitk::ScalarType low, mitk::ScalarType up)
173{
174 if (IsFixed())
175 return;
176 m_DefaultLowerBound = low;
177 m_DefaultUpperBound = up;
178 // Check if default window is ok
179 {
180 if (m_DefaultLowerBound > m_DefaultUpperBound)
181 std::swap(m_DefaultLowerBound, m_DefaultUpperBound);
182
183 if (m_DefaultLowerBound == m_DefaultUpperBound)
184 m_DefaultLowerBound--;
185 }
186 EnsureConsistency();
187}
188
189void mitk::LevelWindow::SetToMaxWindowSize()
190{

Callers 1

mitkLevelWindowTestFunction · 0.80

Calls 1

swapFunction · 0.50

Tested by 1

mitkLevelWindowTestFunction · 0.64