mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
@@ -130,6 +130,14 @@ bool RimCellFilter::isActive() const
|
||||
return m_isActive();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimCellFilter::triggerFilterChanged() const
|
||||
{
|
||||
filterChanged.send();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Is the cell filter doing active filtering, or is it just showning outline, etc. in the view
|
||||
/// - isActive == true -> filter enabled in explorer
|
||||
|
||||
@@ -70,6 +70,8 @@ public:
|
||||
bool isActive() const;
|
||||
void setActive( bool active );
|
||||
|
||||
void triggerFilterChanged() const;
|
||||
|
||||
virtual void setCase( RimCase* srcCase );
|
||||
|
||||
bool isRangeFilter() const;
|
||||
|
||||
@@ -90,7 +90,7 @@ void RimFaultReactivationDataAccessorStressGeoMech::updateResultAccessor()
|
||||
m_s22Frames = loadFrameLambda( femParts, getResultAddress( "ST", "S22" ), timeStepIndex );
|
||||
|
||||
auto [faultTopPosition, faultBottomPosition] = m_model->faultTopBottom();
|
||||
auto faultNormal = m_model->faultNormal() ^ cvf::Vec3d::Z_AXIS;
|
||||
auto faultNormal = m_model->modelNormal() ^ cvf::Vec3d::Z_AXIS;
|
||||
faultNormal.normalize();
|
||||
|
||||
double distanceFromFault = 1.0;
|
||||
|
||||
@@ -285,7 +285,7 @@ std::pair<std::map<RimFaultReactivation::GridPart, cvf::ref<RigWellPath>>, std::
|
||||
double seabedDepth )
|
||||
{
|
||||
auto [faultTopPosition, faultBottomPosition] = model.faultTopBottom();
|
||||
auto faultNormal = model.faultNormal() ^ cvf::Vec3d::Z_AXIS;
|
||||
auto faultNormal = model.modelNormal() ^ cvf::Vec3d::Z_AXIS;
|
||||
faultNormal.normalize();
|
||||
|
||||
double distanceFromFault = 1.0;
|
||||
|
||||
@@ -638,8 +638,8 @@ void RimFaultReactivationModel::updateTimeSteps()
|
||||
if ( m_selectedTimeSteps().empty() )
|
||||
{
|
||||
std::vector<QDateTime> newVal;
|
||||
if ( !m_availableTimeSteps.empty() ) newVal.push_back( m_availableTimeSteps.front() );
|
||||
if ( m_availableTimeSteps.size() > 1 ) newVal.push_back( m_availableTimeSteps.back() );
|
||||
if ( m_availableTimeSteps.size() >= 1 ) newVal.push_back( m_availableTimeSteps.front() );
|
||||
if ( m_availableTimeSteps.size() >= 2 ) newVal.push_back( m_availableTimeSteps.back() );
|
||||
|
||||
m_selectedTimeSteps.setValue( newVal );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user