Example #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() )
{
}
Example #2
0
bool mitk::LevelWindow::operator==(const mitk::LevelWindow& levWin) const
{
  if ( m_RangeMin == levWin.GetRangeMin() &&
    m_RangeMax == levWin.GetRangeMax() &&
    m_LowerWindowBound == levWin.GetLowerWindowBound() && m_UpperWindowBound == levWin.GetUpperWindowBound() &&
    m_DefaultLowerBound == levWin.GetDefaultLowerBound() && m_DefaultUpperBound == levWin.GetDefaultUpperBound() && m_Fixed == levWin.IsFixed() ) {
      return true;
  }
  else {
    return false;
  }
}