2012-05-18 02:45:23 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2014-09-23 08:04:57 -05:00
|
|
|
// Copyright (C) 2011- Statoil ASA
|
|
|
|
// Copyright (C) 2013- Ceetron Solutions AS
|
|
|
|
// Copyright (C) 2011-2012 Ceetron AS
|
2012-05-18 02:45:23 -05:00
|
|
|
//
|
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2015-11-18 05:16:04 -06:00
|
|
|
#include "RigSingleWellResultsData.h"
|
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
#include "cafPdmField.h"
|
|
|
|
#include "cafPdmObject.h"
|
|
|
|
#include "cafPdmPointer.h"
|
|
|
|
#include "cafAppEnum.h"
|
|
|
|
|
2014-07-24 03:11:43 -05:00
|
|
|
#include "cvfObject.h"
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2014-07-24 03:11:43 -05:00
|
|
|
// Include to make Pdm work for cvf::Color
|
|
|
|
#include "cafPdmFieldCvfColor.h"
|
|
|
|
|
2015-05-21 03:05:33 -05:00
|
|
|
class RimEclipseView;
|
2014-07-24 03:11:43 -05:00
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
2015-06-25 05:08:00 -05:00
|
|
|
class RimEclipseWell : public caf::PdmObject
|
2012-05-18 02:45:23 -05:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
|
|
|
|
2015-06-25 05:08:00 -05:00
|
|
|
RimEclipseWell();
|
|
|
|
virtual ~RimEclipseWell();
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2015-05-21 03:05:33 -05:00
|
|
|
void setReservoirView(RimEclipseView* ownerReservoirView);
|
2013-04-26 09:46:38 -05:00
|
|
|
void setWellIndex(size_t val) { m_wellIndex = val; }
|
|
|
|
|
2013-03-22 09:43:42 -05:00
|
|
|
void setWellResults(RigSingleWellResultsData* wellResults) { m_wellResults = wellResults;}
|
2013-04-16 02:53:31 -05:00
|
|
|
RigSingleWellResultsData* wellResults() { return m_wellResults.p(); }
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2013-04-26 09:46:38 -05:00
|
|
|
bool isWellPipeVisible(size_t frameIndex);
|
|
|
|
|
|
|
|
bool calculateWellPipeVisibility(size_t frameIndex);
|
2013-04-22 02:13:37 -05:00
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
virtual caf::PdmFieldHandle* userDescriptionField();
|
2013-04-17 01:25:32 -05:00
|
|
|
virtual caf::PdmFieldHandle* objectToggleField();
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2013-04-24 03:38:50 -05:00
|
|
|
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
|
|
|
|
virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering);
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2013-09-06 08:45:21 -05:00
|
|
|
caf::PdmField<bool> showWell;
|
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
caf::PdmField<QString> name;
|
|
|
|
caf::PdmField<bool> showWellLabel;
|
|
|
|
|
|
|
|
caf::PdmField<bool> showWellCells;
|
|
|
|
caf::PdmField<bool> showWellCellFence;
|
|
|
|
|
|
|
|
caf::PdmField<bool> showWellPipes;
|
|
|
|
caf::PdmField<cvf::Color3f> wellPipeColor;
|
|
|
|
caf::PdmField<double> pipeRadiusScaleFactor;
|
|
|
|
|
|
|
|
private:
|
2013-04-16 02:53:31 -05:00
|
|
|
cvf::ref<RigSingleWellResultsData> m_wellResults;
|
2013-04-26 09:46:38 -05:00
|
|
|
size_t m_wellIndex;
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2015-05-21 03:05:33 -05:00
|
|
|
RimEclipseView* m_reservoirView;
|
2012-05-18 02:45:23 -05:00
|
|
|
};
|