mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Preparing for result visualization
Calculated mapping vx to node nad elmnode reults
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RimGeoMechResultSlot.h"
|
||||
#include "RimReservoirView.h"
|
||||
#include "RimGeoMechView.h"
|
||||
#include "RimLegendConfig.h"
|
||||
#include "RimDefines.h"
|
||||
|
||||
@@ -58,6 +58,12 @@ QList<caf::PdmOptionItemInfo> RimGeoMechResultSlot::calculateValueOptions(const
|
||||
{
|
||||
QList<caf::PdmOptionItemInfo> options;
|
||||
|
||||
if (m_reservoirView)
|
||||
{
|
||||
// RimGeoMechCase* gmCase = m_reservoirView->geoMechCase();
|
||||
|
||||
}
|
||||
|
||||
if (&m_resultVariable == fieldNeedingOptions)
|
||||
{
|
||||
options.push_back(caf::PdmOptionItemInfo("Von Mises", QString("VonMises")) );
|
||||
@@ -67,3 +73,11 @@ QList<caf::PdmOptionItemInfo> RimGeoMechResultSlot::calculateValueOptions(const
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimGeoMechResultSlot::setReservoirView(RimGeoMechView* ownerReservoirView)
|
||||
{
|
||||
m_reservoirView = ownerReservoirView;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "cafPdmPointer.h"
|
||||
|
||||
class RimLegendConfig;
|
||||
class RimGeoMechView;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
@@ -37,11 +38,17 @@ public:
|
||||
RimGeoMechResultSlot(void);
|
||||
virtual ~RimGeoMechResultSlot(void);
|
||||
|
||||
void setReservoirView(RimGeoMechView* ownerReservoirView);
|
||||
|
||||
caf::PdmField<RimLegendConfig*> legendConfig;
|
||||
|
||||
virtual QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool * useOptionsOnly);
|
||||
|
||||
private:
|
||||
|
||||
caf::PdmField<QString> m_resultType;
|
||||
caf::PdmField<QString> m_resultVariable;
|
||||
caf::PdmField<QString> m_componentName;
|
||||
|
||||
caf::PdmPointer<RimGeoMechView> m_reservoirView;
|
||||
};
|
||||
|
||||
@@ -219,6 +219,14 @@ void RimGeoMechView::updateLegends()
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimGeoMechCase* RimGeoMechView::geoMechCase()
|
||||
{
|
||||
return m_geomechCase;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -64,6 +64,8 @@ public:
|
||||
};
|
||||
|
||||
void setGeoMechCase(RimGeoMechCase* gmCase);
|
||||
RimGeoMechCase* geoMechCase();
|
||||
|
||||
void loadDataAndUpdate();
|
||||
|
||||
virtual void setCurrentTimeStep(int frameIdx){}
|
||||
|
||||
Reference in New Issue
Block a user