Beispiel #1
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();
}
Beispiel #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;
  }
}