mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 23:16:00 -06:00
Renamed class RimWell to RimEclipseWell
This commit is contained in:
parent
b8d425a010
commit
7f516172cf
@ -61,7 +61,7 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RivWellHeadPartMgr::RivWellHeadPartMgr(RimEclipseView* reservoirView, RimWell* well)
|
||||
RivWellHeadPartMgr::RivWellHeadPartMgr(RimEclipseView* reservoirView, RimEclipseWell* well)
|
||||
{
|
||||
m_rimReservoirView = reservoirView;
|
||||
m_rimWell = well;
|
||||
@ -87,7 +87,7 @@ void RivWellHeadPartMgr::buildWellHeadParts(size_t frameIndex)
|
||||
|
||||
RigCaseData* rigReservoir = m_rimReservoirView->eclipseCase()->reservoirData();
|
||||
|
||||
RimWell* well = m_rimWell;
|
||||
RimEclipseWell* well = m_rimWell;
|
||||
|
||||
RigSingleWellResultsData* wellResults = well->wellResults();
|
||||
|
||||
|
@ -32,13 +32,13 @@ namespace cvf
|
||||
class Font;
|
||||
}
|
||||
|
||||
class RimWell;
|
||||
class RimEclipseWell;
|
||||
class RimEclipseView;
|
||||
|
||||
class RivWellHeadPartMgr : public cvf::Object
|
||||
{
|
||||
public:
|
||||
RivWellHeadPartMgr(RimEclipseView* reservoirView, RimWell* well);
|
||||
RivWellHeadPartMgr(RimEclipseView* reservoirView, RimEclipseWell* well);
|
||||
~RivWellHeadPartMgr();
|
||||
|
||||
void setScaleTransform(cvf::Transform * scaleTransform) { m_scaleTransform = scaleTransform;}
|
||||
@ -52,7 +52,7 @@ private:
|
||||
|
||||
private:
|
||||
caf::PdmPointer<RimEclipseView> m_rimReservoirView;
|
||||
caf::PdmPointer<RimWell> m_rimWell;
|
||||
caf::PdmPointer<RimEclipseWell> m_rimWell;
|
||||
|
||||
cvf::ref<cvf::Transform> m_scaleTransform;
|
||||
cvf::Collection< cvf::Part > m_wellHeadParts;
|
||||
|
@ -53,7 +53,7 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RivWellPipesPartMgr::RivWellPipesPartMgr(RimEclipseView* reservoirView, RimWell* well)
|
||||
RivWellPipesPartMgr::RivWellPipesPartMgr(RimEclipseView* reservoirView, RimEclipseWell* well)
|
||||
{
|
||||
m_rimReservoirView = reservoirView;
|
||||
m_rimWell = well;
|
||||
|
@ -38,12 +38,12 @@ namespace cvf
|
||||
|
||||
class RivPipeGeometryGenerator;
|
||||
class RimEclipseView;
|
||||
class RimWell;
|
||||
class RimEclipseWell;
|
||||
|
||||
class RivWellPipesPartMgr : public cvf::Object
|
||||
{
|
||||
public:
|
||||
RivWellPipesPartMgr(RimEclipseView* reservoirView, RimWell* well);
|
||||
RivWellPipesPartMgr(RimEclipseView* reservoirView, RimEclipseWell* well);
|
||||
~RivWellPipesPartMgr();
|
||||
|
||||
void setScaleTransform(cvf::Transform * scaleTransform) { m_scaleTransform = scaleTransform; scheduleGeometryRegen();}
|
||||
@ -56,7 +56,7 @@ public:
|
||||
|
||||
private:
|
||||
caf::PdmPointer<RimEclipseView> m_rimReservoirView;
|
||||
caf::PdmPointer<RimWell> m_rimWell;
|
||||
caf::PdmPointer<RimEclipseWell> m_rimWell;
|
||||
|
||||
cvf::ref<cvf::Transform> m_scaleTransform;
|
||||
bool m_needsTransformUpdate;
|
||||
|
@ -1065,12 +1065,12 @@ void RimEclipseView::syncronizeWellsWithResults()
|
||||
cvf::Collection<RigSingleWellResultsData> wellResults = m_reservoir->reservoirData()->wellResults();
|
||||
|
||||
|
||||
std::vector<caf::PdmPointer<RimWell> > newWells;
|
||||
std::vector<caf::PdmPointer<RimEclipseWell> > newWells;
|
||||
|
||||
// Clear the possible well results data present
|
||||
for (size_t wIdx = 0; wIdx < this->wellCollection()->wells().size(); ++wIdx)
|
||||
{
|
||||
RimWell* well = this->wellCollection()->wells()[wIdx];
|
||||
RimEclipseWell* well = this->wellCollection()->wells()[wIdx];
|
||||
well->setWellResults(NULL);
|
||||
}
|
||||
|
||||
@ -1078,11 +1078,11 @@ void RimEclipseView::syncronizeWellsWithResults()
|
||||
|
||||
for (size_t wIdx = 0; wIdx < wellResults.size(); ++wIdx)
|
||||
{
|
||||
RimWell* well = this->wellCollection()->findWell(wellResults[wIdx]->m_wellName);
|
||||
RimEclipseWell* well = this->wellCollection()->findWell(wellResults[wIdx]->m_wellName);
|
||||
|
||||
if (!well)
|
||||
{
|
||||
well = new RimWell;
|
||||
well = new RimEclipseWell;
|
||||
well->name = wellResults[wIdx]->m_wellName;
|
||||
|
||||
}
|
||||
@ -1095,7 +1095,7 @@ void RimEclipseView::syncronizeWellsWithResults()
|
||||
|
||||
for (size_t wIdx = 0; wIdx < this->wellCollection()->wells().size(); ++wIdx)
|
||||
{
|
||||
RimWell* well = this->wellCollection()->wells()[wIdx];
|
||||
RimEclipseWell* well = this->wellCollection()->wells()[wIdx];
|
||||
RigSingleWellResultsData* wellRes = well->wellResults();
|
||||
if (wellRes == NULL)
|
||||
{
|
||||
@ -1140,7 +1140,7 @@ void RimEclipseView::calculateVisibleWellCellsIncFence(cvf::UByteArray* visibleC
|
||||
// Loop over the wells and find their contribution
|
||||
for (size_t wIdx = 0; wIdx < this->wellCollection()->wells().size(); ++wIdx)
|
||||
{
|
||||
RimWell* well = this->wellCollection()->wells()[wIdx];
|
||||
RimEclipseWell* well = this->wellCollection()->wells()[wIdx];
|
||||
if (this->wellCollection()->wellCellsToRangeFilterMode() == RimWellCollection::RANGE_ADD_ALL || (well->showWell() && well->showWellCells()) )
|
||||
{
|
||||
RigSingleWellResultsData* wres = well->wellResults();
|
||||
|
@ -26,12 +26,12 @@
|
||||
|
||||
#include "cvfMath.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimWell, "Well");
|
||||
CAF_PDM_SOURCE_INIT(RimEclipseWell, "Well");
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimWell::RimWell()
|
||||
RimEclipseWell::RimEclipseWell()
|
||||
{
|
||||
CAF_PDM_InitObject("Well", ":/Well.png", "", "");
|
||||
|
||||
@ -59,14 +59,14 @@ RimWell::RimWell()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimWell::~RimWell()
|
||||
RimEclipseWell::~RimEclipseWell()
|
||||
{
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
caf::PdmFieldHandle* RimWell::userDescriptionField()
|
||||
caf::PdmFieldHandle* RimEclipseWell::userDescriptionField()
|
||||
{
|
||||
return &name;
|
||||
}
|
||||
@ -74,7 +74,7 @@ caf::PdmFieldHandle* RimWell::userDescriptionField()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWell::setReservoirView(RimEclipseView* ownerReservoirView)
|
||||
void RimEclipseWell::setReservoirView(RimEclipseView* ownerReservoirView)
|
||||
{
|
||||
m_reservoirView = ownerReservoirView;
|
||||
}
|
||||
@ -82,7 +82,7 @@ void RimWell::setReservoirView(RimEclipseView* ownerReservoirView)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWell::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
|
||||
void RimEclipseWell::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
|
||||
{
|
||||
if (&showWellLabel == changedField)
|
||||
{
|
||||
@ -138,7 +138,7 @@ void RimWell::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QV
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
caf::PdmFieldHandle* RimWell::objectToggleField()
|
||||
caf::PdmFieldHandle* RimEclipseWell::objectToggleField()
|
||||
{
|
||||
return &showWell;
|
||||
}
|
||||
@ -146,7 +146,7 @@ caf::PdmFieldHandle* RimWell::objectToggleField()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimWell::calculateWellPipeVisibility(size_t frameIndex)
|
||||
bool RimEclipseWell::calculateWellPipeVisibility(size_t frameIndex)
|
||||
{
|
||||
if (m_reservoirView == NULL) return false;
|
||||
if (this->wellResults() == NULL) return false;
|
||||
@ -237,7 +237,7 @@ bool RimWell::calculateWellPipeVisibility(size_t frameIndex)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWell::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering)
|
||||
void RimEclipseWell::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering)
|
||||
{
|
||||
caf::PdmUiGroup* pipeGroup = uiOrdering.addNewGroup("Appearance");
|
||||
pipeGroup->add(&showWellPipes);
|
||||
@ -253,7 +253,7 @@ void RimWell::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrder
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimWell::isWellPipeVisible(size_t frameIndex)
|
||||
bool RimEclipseWell::isWellPipeVisible(size_t frameIndex)
|
||||
{
|
||||
CVF_ASSERT(m_wellIndex != cvf::UNDEFINED_SIZE_T);
|
||||
|
||||
|
@ -37,13 +37,13 @@ class RimEclipseView;
|
||||
///
|
||||
///
|
||||
//==================================================================================================
|
||||
class RimWell : public caf::PdmObject
|
||||
class RimEclipseWell : public caf::PdmObject
|
||||
{
|
||||
CAF_PDM_HEADER_INIT;
|
||||
public:
|
||||
|
||||
RimWell();
|
||||
virtual ~RimWell();
|
||||
RimEclipseWell();
|
||||
virtual ~RimEclipseWell();
|
||||
|
||||
void setReservoirView(RimEclipseView* ownerReservoirView);
|
||||
void setWellIndex(size_t val) { m_wellIndex = val; }
|
||||
|
@ -124,7 +124,7 @@ RimWellCollection::~RimWellCollection()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimWell* RimWellCollection::findWell(QString name)
|
||||
RimEclipseWell* RimWellCollection::findWell(QString name)
|
||||
{
|
||||
for (size_t i = 0; i < this->wells().size(); ++i)
|
||||
{
|
||||
@ -148,7 +148,7 @@ bool RimWellCollection::hasVisibleWellCells()
|
||||
bool hasCells = false;
|
||||
for (size_t i = 0 ; !hasCells && i < this->wells().size(); ++i)
|
||||
{
|
||||
RimWell* well = this->wells()[i];
|
||||
RimEclipseWell* well = this->wells()[i];
|
||||
if ( well && well->wellResults() && ((well->showWell() && well->showWellCells()) || this->wellCellsToRangeFilterMode() == RANGE_ADD_ALL) )
|
||||
{
|
||||
for (size_t tIdx = 0; !hasCells && tIdx < well->wellResults()->m_wellCellsTimeSteps.size(); ++tIdx )
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <QString>
|
||||
|
||||
class RimEclipseView;
|
||||
class RimWell;
|
||||
class RimEclipseWell;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
@ -101,9 +101,9 @@ public:
|
||||
|
||||
caf::PdmField<bool> isAutoDetectingBranches;
|
||||
|
||||
caf::PdmPointersField<RimWell*> wells;
|
||||
caf::PdmPointersField<RimEclipseWell*> wells;
|
||||
|
||||
RimWell* findWell(QString name);
|
||||
RimEclipseWell* findWell(QString name);
|
||||
bool hasVisibleWellCells();
|
||||
bool hasVisibleWellPipes();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user