Exemple #1
0
mitk::LevelWindow::LevelWindow(const mitk::LevelWindow& levWin)
    : m_LowerWindowBound( levWin.GetLowerWindowBound() )
    , m_UpperWindowBound( levWin.GetUpperWindowBound() )
    , m_RangeMin( levWin.GetRangeMin() )
    , m_RangeMax( levWin.GetRangeMax() )
    , m_DefaultLowerBound( levWin.GetDefaultLowerBound() )
    , m_DefaultUpperBound( levWin.GetDefaultUpperBound() )
    , m_IsFloatingImage(levWin.IsFloatingValues())
    , m_Fixed( levWin.GetFixed() )
{
}
Exemple #2
0
bool mitk::LevelWindow::operator==(const mitk::LevelWindow& levWin) const
{
    return
        mitk::Equal(this->m_RangeMin, levWin.m_RangeMin, mitk::sqrteps)
        && mitk::Equal(this->m_RangeMax, levWin.m_RangeMax, mitk::sqrteps)
        && mitk::Equal(this->m_DefaultLowerBound, levWin.m_DefaultLowerBound, mitk::sqrteps)
        && mitk::Equal(this->m_DefaultUpperBound, levWin.m_DefaultUpperBound, mitk::sqrteps)
        && mitk::Equal(this->m_LowerWindowBound, levWin.m_LowerWindowBound, mitk::sqrteps)
        && mitk::Equal(this->m_UpperWindowBound, levWin.m_UpperWindowBound, mitk::sqrteps)
        && m_Fixed == levWin.IsFixed()
        && m_IsFloatingImage == levWin.IsFloatingValues();
}