mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
50 lines
1.7 KiB
C++
50 lines
1.7 KiB
C++
|
#include "RicMswItem.h"
|
||
|
|
||
|
//--------------------------------------------------------------------------------------------------
|
||
|
///
|
||
|
//--------------------------------------------------------------------------------------------------
|
||
|
RicMswItem::RicMswItem( const QString& label )
|
||
|
: m_label( label )
|
||
|
{
|
||
|
}
|
||
|
|
||
|
//--------------------------------------------------------------------------------------------------
|
||
|
///
|
||
|
//--------------------------------------------------------------------------------------------------
|
||
|
QString RicMswItem::label() const
|
||
|
{
|
||
|
return m_label;
|
||
|
}
|
||
|
|
||
|
//--------------------------------------------------------------------------------------------------
|
||
|
///
|
||
|
//--------------------------------------------------------------------------------------------------
|
||
|
void RicMswItem::setLabel( const QString& label )
|
||
|
{
|
||
|
m_label = label;
|
||
|
}
|
||
|
|
||
|
//--------------------------------------------------------------------------------------------------
|
||
|
///
|
||
|
//--------------------------------------------------------------------------------------------------
|
||
|
double RicMswItem::deltaMD() const
|
||
|
{
|
||
|
return endMD() - startMD();
|
||
|
}
|
||
|
|
||
|
//--------------------------------------------------------------------------------------------------
|
||
|
///
|
||
|
//--------------------------------------------------------------------------------------------------
|
||
|
double RicMswItem::deltaTVD() const
|
||
|
{
|
||
|
return endTVD() - startTVD();
|
||
|
}
|
||
|
|
||
|
//--------------------------------------------------------------------------------------------------
|
||
|
///
|
||
|
//--------------------------------------------------------------------------------------------------
|
||
|
bool RicMswItem::operator<( const RicMswItem& rhs ) const
|
||
|
{
|
||
|
return startMD() < rhs.startMD();
|
||
|
}
|