2017-05-11 13:33:18 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2011- Statoil ASA
|
|
|
|
|
// Copyright (C) 2013- Ceetron Solutions AS
|
|
|
|
|
//
|
|
|
|
|
// 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
|
|
|
|
|
|
|
|
|
|
#include "RimCheckableNamedObject.h"
|
2017-05-21 09:15:54 +02:00
|
|
|
#include "Rim3dPropertiesInterface.h"
|
2017-05-11 13:33:18 +02:00
|
|
|
|
2017-06-20 10:40:39 +02:00
|
|
|
#include "RiaEclipseUnitTools.h"
|
|
|
|
|
|
2017-05-11 13:33:18 +02:00
|
|
|
#include "cafPdmField.h"
|
|
|
|
|
#include "cafPdmObject.h"
|
|
|
|
|
|
2017-05-30 11:56:18 +02:00
|
|
|
#include <QDate>
|
|
|
|
|
|
2017-05-11 13:33:18 +02:00
|
|
|
//==================================================================================================
|
|
|
|
|
///
|
|
|
|
|
//==================================================================================================
|
2017-05-21 09:15:54 +02:00
|
|
|
class RimPerforationInterval : public RimCheckableNamedObject, public Rim3dPropertiesInterface
|
2017-05-11 13:33:18 +02:00
|
|
|
{
|
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
RimPerforationInterval();
|
|
|
|
|
virtual ~RimPerforationInterval();
|
|
|
|
|
|
2017-05-19 11:03:22 +02:00
|
|
|
void setStartAndEndMD(double startMD, double endMD);
|
2017-05-30 11:56:18 +02:00
|
|
|
void setStartOfHistory();
|
|
|
|
|
void setDate(const QDate& date);
|
|
|
|
|
void setDiameter(double diameter);
|
|
|
|
|
void setSkinFactor(double skinFactor);
|
2017-05-26 12:37:01 +02:00
|
|
|
double startMD() const { return m_startMD(); }
|
|
|
|
|
double endMD() const { return m_endMD(); }
|
2017-06-20 10:40:39 +02:00
|
|
|
double diameter(RiaEclipseUnitTools::UnitSystem unitSystem) const;
|
2017-05-26 12:37:01 +02:00
|
|
|
double skinFactor() const { return m_skinFactor(); }
|
2017-05-12 10:01:37 +02:00
|
|
|
|
2017-05-30 15:42:05 +02:00
|
|
|
bool isActiveOnDate(const QDateTime& date) const;
|
|
|
|
|
|
2017-05-21 09:15:54 +02:00
|
|
|
virtual cvf::BoundingBox boundingBoxInDomainCoords() override;
|
|
|
|
|
|
2017-06-20 12:36:12 +02:00
|
|
|
void setUnitSystemSpecificDefaults();
|
|
|
|
|
|
2017-05-19 10:14:51 +02:00
|
|
|
protected:
|
|
|
|
|
virtual void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
|
|
|
|
virtual void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
|
|
|
|
virtual void defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName = "") override;
|
2017-06-16 13:47:07 +02:00
|
|
|
virtual void defineEditorAttribute(const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute) override;
|
2017-05-19 10:14:51 +02:00
|
|
|
|
2017-05-11 13:33:18 +02:00
|
|
|
private:
|
|
|
|
|
caf::PdmField< double > m_startMD;
|
|
|
|
|
caf::PdmField< double > m_endMD;
|
2017-05-30 09:49:58 +02:00
|
|
|
caf::PdmField< double > m_diameter;
|
2017-05-11 13:33:18 +02:00
|
|
|
caf::PdmField< double > m_skinFactor;
|
2017-05-30 11:56:18 +02:00
|
|
|
caf::PdmField< bool > m_startOfHistory;
|
|
|
|
|
caf::PdmField< QDateTime > m_date;
|
2017-05-11 13:33:18 +02:00
|
|
|
};
|