mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#266) Added interface for all/activeCellsBoundingBox and displayModelOffset
This commit is contained in:
@@ -18,14 +18,19 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RimGeoMechCase.h"
|
||||
#include "RimGeoMechView.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaPreferences.h"
|
||||
|
||||
#include "RifOdbReader.h"
|
||||
#include "RigGeoMechCaseData.h"
|
||||
|
||||
#include "RigFemPartCollection.h"
|
||||
#include "RigFemPartResultsCollection.h"
|
||||
#include "RimProject.h"
|
||||
#include "RigGeoMechCaseData.h"
|
||||
|
||||
#include "RimGeoMechView.h"
|
||||
#include "RimMainPlotCollection.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimWellLogPlotCollection.h"
|
||||
|
||||
#include <QFile>
|
||||
@@ -179,3 +184,26 @@ QString RimGeoMechCase::timeStepName(int frameIdx)
|
||||
|
||||
return QString::fromStdString(stepNames[frameIdx]);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::BoundingBox RimGeoMechCase::activeCellsBoundingBox() const
|
||||
{
|
||||
return allCellsBoundingBox();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::BoundingBox RimGeoMechCase::allCellsBoundingBox() const
|
||||
{
|
||||
if (m_geoMechCaseData.notNull() && m_geoMechCaseData->femParts())
|
||||
{
|
||||
return m_geoMechCaseData->femParts()->boundingBox();
|
||||
}
|
||||
else
|
||||
{
|
||||
return cvf::BoundingBox();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user