2018-01-30 02:20:21 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2019-01-09 08:21:38 -06:00
|
|
|
// Copyright (C) 2018- Equinor ASA
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2018-01-30 02:20:21 -06: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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2018-01-30 02:20:21 -06:00
|
|
|
// 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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2018-01-30 02:20:21 -06:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-03-12 05:07:46 -05:00
|
|
|
#include "cafPdmChildField.h"
|
|
|
|
#include "cafPdmField.h"
|
|
|
|
#include "cafPdmObject.h"
|
2018-01-30 02:20:21 -06:00
|
|
|
|
2018-03-12 05:07:46 -05:00
|
|
|
#include <vector>
|
|
|
|
|
2018-04-18 03:10:39 -05:00
|
|
|
class RimRegularLegendConfig;
|
2018-01-30 02:20:21 -06:00
|
|
|
|
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
|
|
|
///
|
2018-01-30 02:20:21 -06:00
|
|
|
//==================================================================================================
|
2018-03-12 05:07:46 -05:00
|
|
|
class RimVirtualPerforationResults : public caf::PdmObject
|
2018-01-30 02:20:21 -06:00
|
|
|
{
|
2018-03-12 05:07:46 -05:00
|
|
|
CAF_PDM_HEADER_INIT;
|
2018-01-30 02:20:21 -06:00
|
|
|
|
2018-03-12 05:07:46 -05:00
|
|
|
public:
|
|
|
|
RimVirtualPerforationResults();
|
2018-10-18 12:45:57 -05:00
|
|
|
~RimVirtualPerforationResults() override;
|
2018-01-30 02:20:21 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
bool showConnectionFactors() const;
|
|
|
|
bool showConnectionFactorsOnClosedConnections() const;
|
|
|
|
double geometryScaleFactor() const;
|
2018-04-18 03:10:39 -05:00
|
|
|
RimRegularLegendConfig* legendConfig() const;
|
2019-09-06 03:40:57 -05:00
|
|
|
void loadData();
|
2018-03-14 05:36:15 -05:00
|
|
|
|
2018-03-12 05:07:46 -05:00
|
|
|
private:
|
2020-02-12 04:43:15 -06:00
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmFieldHandle* objectToggleField() override;
|
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
|
|
|
void initAfterRead() override;
|
2018-01-30 02:20:21 -06:00
|
|
|
|
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<bool> m_isActive;
|
|
|
|
caf::PdmField<bool> m_showClosedConnections;
|
|
|
|
caf::PdmField<double> m_geometryScaleFactor;
|
2018-01-30 02:20:21 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmChildField<RimRegularLegendConfig*> m_legendConfig;
|
2018-01-30 02:20:21 -06:00
|
|
|
};
|