mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Geomech frames support (#9678)
Support for showing frames in geomech data.
This commit is contained in:
@@ -87,10 +87,10 @@ RivGeoMechPartMgr* RivGeoMechPartMgrCache::partMgr( const Key& key )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RivGeoMechPartMgrCache::Key::set( RivCellSetEnum aGeometryType, int aFrameIndex )
|
||||
void RivGeoMechPartMgrCache::Key::set( RivCellSetEnum aGeometryType, int aViewerTimeStep )
|
||||
{
|
||||
m_frameIndex = aFrameIndex;
|
||||
m_geometryType = aGeometryType;
|
||||
m_viewerStepIndex = aViewerTimeStep;
|
||||
m_geometryType = aGeometryType;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -98,9 +98,9 @@ void RivGeoMechPartMgrCache::Key::set( RivCellSetEnum aGeometryType, int aFrameI
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RivGeoMechPartMgrCache::Key::operator<( const Key& other ) const
|
||||
{
|
||||
if ( m_frameIndex != other.m_frameIndex )
|
||||
if ( m_viewerStepIndex != other.m_viewerStepIndex )
|
||||
{
|
||||
return ( m_frameIndex < other.m_frameIndex );
|
||||
return ( m_viewerStepIndex < other.m_viewerStepIndex );
|
||||
}
|
||||
return ( m_geometryType < other.m_geometryType );
|
||||
}
|
||||
@@ -108,8 +108,8 @@ bool RivGeoMechPartMgrCache::Key::operator<( const Key& other ) const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RivGeoMechPartMgrCache::Key::Key( RivCellSetEnum aGeometryType, int aFrameIndex )
|
||||
RivGeoMechPartMgrCache::Key::Key( RivCellSetEnum aGeometryType, int aViewerTimeStep )
|
||||
: m_geometryType( aGeometryType )
|
||||
, m_frameIndex( aFrameIndex )
|
||||
, m_viewerStepIndex( aViewerTimeStep )
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user