mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-03 04:00:57 -06:00
#1996 Renaming. Remove unused includes and rename local variables
This commit is contained in:
parent
d748803159
commit
7d908394db
@ -129,7 +129,7 @@ protected:
|
||||
virtual void setupActionLook(QAction* actionToSetup) override;
|
||||
|
||||
std::vector<RimWellPath*> selectedWellPaths();
|
||||
std::vector<RimSimWellInView*> selectedSimWells();
|
||||
std::vector<RimSimWellInView*> selectedSimWells();
|
||||
|
||||
bool noWellPathsSelectedDirectly();
|
||||
|
||||
|
@ -50,13 +50,13 @@ void RicNewSimWellIntersectionFeature::onActionTriggered(bool isChecked)
|
||||
caf::SelectionManager::instance()->objectsByType(&collection);
|
||||
CVF_ASSERT(collection.size() == 1);
|
||||
|
||||
RimSimWellInView* eclWell = collection[0];
|
||||
RimSimWellInView* simWell = collection[0];
|
||||
|
||||
RimEclipseView* eclView = NULL;
|
||||
eclWell->firstAncestorOrThisOfType(eclView);
|
||||
simWell->firstAncestorOrThisOfType(eclView);
|
||||
CVF_ASSERT(eclView);
|
||||
|
||||
RicNewSimWellIntersectionCmd* cmd = new RicNewSimWellIntersectionCmd(eclView->crossSectionCollection, eclWell);
|
||||
RicNewSimWellIntersectionCmd* cmd = new RicNewSimWellIntersectionCmd(eclView->crossSectionCollection, simWell);
|
||||
caf::CmdExecCommandManager::instance()->processExecuteCommand(cmd);
|
||||
}
|
||||
|
||||
|
@ -20,9 +20,6 @@
|
||||
|
||||
#include "cafCmdFeature.h"
|
||||
|
||||
class RimSimWellInView;
|
||||
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
//==================================================================================================
|
||||
|
@ -62,14 +62,14 @@ void RicShowWellAllocationPlotFeature::onActionTriggered(bool isChecked)
|
||||
|
||||
if (collection.size() > 0)
|
||||
{
|
||||
RimSimWellInView* eclWell = collection[0];
|
||||
RimSimWellInView* simWell = collection[0];
|
||||
|
||||
if (RiaApplication::instance()->project())
|
||||
{
|
||||
RimFlowPlotCollection* flowPlotColl = RiaApplication::instance()->project()->mainPlotCollection->flowPlotCollection();
|
||||
if (flowPlotColl)
|
||||
{
|
||||
flowPlotColl->defaultWellAllocPlot()->setFromSimulationWell(eclWell);
|
||||
flowPlotColl->defaultWellAllocPlot()->setFromSimulationWell(simWell);
|
||||
flowPlotColl->defaultWellAllocPlot()->updateConnectedEditors();
|
||||
|
||||
// Make sure the summary plot window is created and visible
|
||||
|
@ -20,9 +20,6 @@
|
||||
|
||||
#include "cafCmdFeature.h"
|
||||
|
||||
class RimSimWellInView;
|
||||
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
//==================================================================================================
|
||||
|
@ -126,9 +126,9 @@ void RicDeleteItemExec::redo()
|
||||
}
|
||||
|
||||
// SimWell Fractures
|
||||
RimSimWellInView* eclipseWell;
|
||||
parentObj->firstAncestorOrThisOfType(eclipseWell);
|
||||
if (view && eclipseWell)
|
||||
RimSimWellInView* simWell;
|
||||
parentObj->firstAncestorOrThisOfType(simWell);
|
||||
if (view && simWell)
|
||||
{
|
||||
view->scheduleCreateDisplayModelAndRedraw();
|
||||
}
|
||||
|
@ -115,10 +115,10 @@ bool RicNewSimWellFractureFeature::isCommandEnabled()
|
||||
caf::PdmObjectHandle* objHandle = dynamic_cast<caf::PdmObjectHandle*>(pdmUiItem);
|
||||
if (!objHandle) return false;
|
||||
|
||||
RimSimWellInView* eclipseWell = nullptr;
|
||||
objHandle->firstAncestorOrThisOfType(eclipseWell);
|
||||
RimSimWellInView* simWell = nullptr;
|
||||
objHandle->firstAncestorOrThisOfType(simWell);
|
||||
|
||||
if (eclipseWell)
|
||||
if (simWell)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -78,14 +78,14 @@ bool RicNewRftPlotFeature::isCommandEnabled()
|
||||
|
||||
//int branchIndex;
|
||||
|
||||
auto eclWell = selectedPdmObject<RimSimWellInView*>();
|
||||
auto rimWellPath = eclWell == nullptr ? selectedPdmObject<RimWellPath*>() : nullptr;
|
||||
RimSimWellInView* simWell = selectedPdmObject<RimSimWellInView*>();
|
||||
RimWellPath* rimWellPath = simWell == nullptr ? selectedPdmObject<RimWellPath*>() : nullptr;
|
||||
|
||||
bool enable = true;
|
||||
if (eclWell != nullptr)
|
||||
if (simWell != nullptr)
|
||||
{
|
||||
auto eclCase = selectedPdmObject<RimEclipseResultCase*>();
|
||||
if (eclWell != nullptr)
|
||||
RimEclipseResultCase* eclCase = selectedPdmObject<RimEclipseResultCase*>();
|
||||
if (simWell != nullptr)
|
||||
{
|
||||
enable &= RimWellRftPlot::hasPressureData(eclCase);
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ protected:
|
||||
private:
|
||||
RimWellLogTrack* selectedWellLogPlotTrack() const;
|
||||
RimWellPath* selectedWellPath() const;
|
||||
RimSimWellInView* selectedSimulationWell(int * branchIndex) const;
|
||||
RimSimWellInView* selectedSimulationWell(int * branchIndex) const;
|
||||
bool caseAvailable() const;
|
||||
};
|
||||
|
||||
|
@ -27,8 +27,8 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RivSimWellPipeSourceInfo::RivSimWellPipeSourceInfo(RimSimWellInView* eclipseWell, size_t branchIndex)
|
||||
: m_eclipseWell(eclipseWell),
|
||||
RivSimWellPipeSourceInfo::RivSimWellPipeSourceInfo(RimSimWellInView* simWell, size_t branchIndex)
|
||||
: m_simWell(simWell),
|
||||
m_branchIndex(branchIndex)
|
||||
{
|
||||
}
|
||||
@ -38,7 +38,7 @@ RivSimWellPipeSourceInfo::RivSimWellPipeSourceInfo(RimSimWellInView* eclipseWell
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimSimWellInView* RivSimWellPipeSourceInfo::well() const
|
||||
{
|
||||
return m_eclipseWell.p();
|
||||
return m_simWell.p();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -35,6 +35,6 @@ public:
|
||||
size_t branchIndex() const;
|
||||
|
||||
private:
|
||||
caf::PdmPointer<RimSimWellInView> m_eclipseWell;
|
||||
caf::PdmPointer<RimSimWellInView> m_simWell;
|
||||
size_t m_branchIndex;
|
||||
};
|
||||
|
@ -31,7 +31,6 @@
|
||||
#include "RimFractureContainment.h"
|
||||
#include "RimFractureTemplate.h"
|
||||
#include "RimLegendConfig.h"
|
||||
#include "RimSimWellInView.h"
|
||||
#include "RimStimPlanColors.h"
|
||||
#include "RimStimPlanFractureTemplate.h"
|
||||
|
||||
|
@ -60,5 +60,5 @@ private:
|
||||
|
||||
private:
|
||||
caf::PdmPointer<RimEclipseView> m_rimReservoirView;
|
||||
caf::PdmPointer<RimSimWellInView> m_rimWell;
|
||||
caf::PdmPointer<RimSimWellInView> m_rimWell;
|
||||
};
|
||||
|
@ -22,7 +22,6 @@
|
||||
#include "RimFishboneWellPath.h"
|
||||
#include "RimFishbonesCollection.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimSimWellInView.h"
|
||||
#include "RimView.h"
|
||||
|
||||
#include "RigWellPath.h"
|
||||
|
@ -21,7 +21,6 @@
|
||||
|
||||
#include "RimPerforationInterval.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimSimWellInView.h"
|
||||
#include "RimView.h"
|
||||
|
||||
#include "RigWellPath.h"
|
||||
|
@ -31,7 +31,6 @@
|
||||
#include "RimEclipseResultCase.h"
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimEclipseWellCollection.h"
|
||||
#include "RimSimWellInView.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimFlowDiagSolution, "FlowDiagSolution");
|
||||
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include "cvfColor3.h"
|
||||
|
||||
class RigFlowDiagResults;
|
||||
class RimSimWellInView;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
|
@ -22,7 +22,6 @@
|
||||
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimEclipseWellCollection.h"
|
||||
#include "RimSimWellInView.h"
|
||||
#include "RimWellAllocationPlot.h"
|
||||
|
||||
#include "RigSingleWellResultsData.h"
|
||||
|
@ -30,7 +30,6 @@
|
||||
#include <vector>
|
||||
|
||||
class RimEclipseResultCase;
|
||||
class RimSimWellInView;
|
||||
class RimWellLogPlot;
|
||||
class RiuTofAccumulatedPhaseFractionsPlot;
|
||||
class RiuWellAllocationPlot;
|
||||
|
@ -22,7 +22,6 @@
|
||||
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimEclipseWellCollection.h"
|
||||
#include "RimSimWellInView.h"
|
||||
|
||||
#include "RigSingleWellResultsData.h"
|
||||
|
||||
|
@ -29,7 +29,6 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
class RimSimWellInView;
|
||||
class RimWellLogPlot;
|
||||
class RiuNightchartsWidget;
|
||||
class RiuWellAllocationPlot;
|
||||
|
@ -32,7 +32,6 @@
|
||||
class RigSingleWellResultsData;
|
||||
class RimEclipseResultCase;
|
||||
class RimFlowDiagSolution;
|
||||
class RimSimWellInView;
|
||||
class RimTofAccumulatedPhaseFractionsPlot;
|
||||
class RimTotalWellAllocationPlot;
|
||||
class RimWellLogFile;
|
||||
|
@ -38,7 +38,6 @@ class RigWellPath;
|
||||
class RimEclipseCase;
|
||||
class RimEclipseResultCase;
|
||||
class RimFlowDiagSolution;
|
||||
class RimSimWellInView;
|
||||
class RimTofAccumulatedPhaseFractionsPlot;
|
||||
class RimTotalWellAllocationPlot;
|
||||
class RimWellLogCurve;
|
||||
|
@ -705,11 +705,11 @@ void RimEclipseView::updateCurrentTimeStep()
|
||||
this->descendantsIncludingThisOfType(fractures);
|
||||
for (RimFracture* f : fractures)
|
||||
{
|
||||
RimSimWellInView* eclWell = nullptr;
|
||||
f->firstAncestorOrThisOfType(eclWell);
|
||||
if (eclWell)
|
||||
RimSimWellInView* simWell = nullptr;
|
||||
f->firstAncestorOrThisOfType(simWell);
|
||||
if (simWell)
|
||||
{
|
||||
bool isAnyGeometryPresent = eclWell->isWellPipeVisible(m_currentTimeStep) || eclWell->isWellSpheresVisible(m_currentTimeStep);
|
||||
bool isAnyGeometryPresent = simWell->isWellPipeVisible(m_currentTimeStep) || simWell->isWellSpheresVisible(m_currentTimeStep);
|
||||
if (!isAnyGeometryPresent)
|
||||
{
|
||||
continue;
|
||||
|
@ -53,7 +53,6 @@ class RimEclipseWellCollection;
|
||||
class RimFaultCollection;
|
||||
class RimReservoirCellResultsStorage;
|
||||
class RimReservoirCellResultsStorage;
|
||||
class RimSimWellInView;
|
||||
#ifdef USE_PROTOTYPE_FEATURE_FRACTURES
|
||||
class RimStimPlanColors;
|
||||
#endif // USE_PROTOTYPE_FEATURE_FRACTURES
|
||||
|
@ -112,7 +112,7 @@ public:
|
||||
|
||||
caf::PdmChildArrayField<RimSimWellInView*> wells;
|
||||
|
||||
RimSimWellInView* findWell(QString name);
|
||||
RimSimWellInView* findWell(QString name);
|
||||
bool hasVisibleWellCells();
|
||||
bool hasVisibleWellPipes();
|
||||
void sortWellsByName();
|
||||
|
@ -252,10 +252,10 @@ QList<caf::PdmOptionItemInfo> RimIntersection::calculateValueOptions(const caf::
|
||||
RimEclipseWellCollection* coll = simulationWellCollection();
|
||||
if (coll)
|
||||
{
|
||||
caf::PdmChildArrayField<RimSimWellInView*>& eclWells = coll->wells;
|
||||
caf::PdmChildArrayField<RimSimWellInView*>& simWells = coll->wells;
|
||||
|
||||
QIcon simWellIcon(":/Well.png");
|
||||
for (RimSimWellInView* eclWell : eclWells)
|
||||
for (RimSimWellInView* eclWell : simWells)
|
||||
{
|
||||
options.push_back(caf::PdmOptionItemInfo(eclWell->name(), eclWell, false, simWellIcon));
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ void RimIntersectionCollection::fieldChangedByUi(const caf::PdmFieldHandle* chan
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimIntersectionCollection::hasActiveIntersectionForSimulationWell(const RimSimWellInView* eclipseWell) const
|
||||
bool RimIntersectionCollection::hasActiveIntersectionForSimulationWell(const RimSimWellInView* simWell) const
|
||||
{
|
||||
if (!isActive) return false;
|
||||
|
||||
@ -199,7 +199,7 @@ bool RimIntersectionCollection::hasActiveIntersectionForSimulationWell(const Rim
|
||||
{
|
||||
if (cs->isActive &&
|
||||
cs->type() == RimIntersection::CS_SIMULATION_WELL &&
|
||||
cs->simulationWell() == eclipseWell)
|
||||
cs->simulationWell() == simWell)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ public:
|
||||
void appendIntersection(RimIntersection* intersection);
|
||||
void appendIntersectionBox(RimIntersectionBox* intersectionBox);
|
||||
|
||||
bool hasActiveIntersectionForSimulationWell(const RimSimWellInView* eclipseWell) const;
|
||||
bool hasActiveIntersectionForSimulationWell(const RimSimWellInView* simWell) const;
|
||||
|
||||
void updateIntersectionBoxGeometry();
|
||||
|
||||
|
@ -44,7 +44,6 @@
|
||||
#include "RimMainPlotCollection.h"
|
||||
#include "RimOilField.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimSimWellInView.h"
|
||||
#include "RimTools.h"
|
||||
#include "RimWellLogCurve.h"
|
||||
#include "RimWellLogPlot.h"
|
||||
|
@ -235,6 +235,6 @@ public:
|
||||
|
||||
public:
|
||||
RimSimWellInView* m_simWell;
|
||||
cvf::Vec3d m_domainCoord;
|
||||
size_t m_branchIndex;
|
||||
cvf::Vec3d m_domainCoord;
|
||||
size_t m_branchIndex;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user