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-06-25 06:05:28 -05:00
|
|
|
#include "RimEclipseResultDefinition.h"
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2015-07-31 11:58:23 -05:00
|
|
|
#include "cafPdmChildArrayField.h"
|
|
|
|
#include "cafPdmChildField.h"
|
2015-08-06 01:08:00 -05:00
|
|
|
#include "cafPdmPtrField.h"
|
2015-07-31 11:58:23 -05:00
|
|
|
|
2014-05-06 15:39:53 -05:00
|
|
|
class RimTernaryLegendConfig;
|
2016-08-01 15:27:03 -05:00
|
|
|
class RimLegendConfig;
|
2014-05-06 15:39:53 -05:00
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
2015-08-06 01:08:00 -05:00
|
|
|
class RimEclipseCellColors : public RimEclipseResultDefinition
|
2012-05-18 02:45:23 -05:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
2015-06-25 05:04:46 -05:00
|
|
|
RimEclipseCellColors();
|
|
|
|
virtual ~RimEclipseCellColors();
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2015-09-01 06:56:35 -05:00
|
|
|
void setReservoirView(RimEclipseView* ownerReservoirView);
|
|
|
|
RimEclipseView* reservoirView();
|
2015-08-06 01:08:00 -05:00
|
|
|
|
2017-01-11 08:03:39 -06:00
|
|
|
void updateLegendData(size_t timestep);
|
2015-09-01 06:56:35 -05:00
|
|
|
RimLegendConfig* legendConfig();
|
2015-07-31 11:58:23 -05:00
|
|
|
caf::PdmChildField<RimTernaryLegendConfig*> ternaryLegendConfig;
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2015-09-01 06:56:35 -05:00
|
|
|
virtual void setResultVariable(const QString& resultName);
|
2015-09-23 06:48:25 -05:00
|
|
|
|
|
|
|
void updateIconState();
|
|
|
|
|
2016-09-07 04:41:02 -05:00
|
|
|
virtual void updateLegendCategorySettings() override;
|
|
|
|
|
2015-09-01 06:56:35 -05:00
|
|
|
protected:
|
2012-05-18 02:45:23 -05:00
|
|
|
// Overridden methods
|
2015-09-01 06:56:35 -05:00
|
|
|
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
|
2016-06-16 08:59:20 -05:00
|
|
|
virtual void defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName = "") override;
|
2014-06-13 01:12:45 -05:00
|
|
|
|
2015-06-25 05:06:43 -05:00
|
|
|
friend class RimEclipseFaultColors;
|
2016-08-03 09:01:44 -05:00
|
|
|
friend class RimCellEdgeColors;
|
2015-09-01 06:56:35 -05:00
|
|
|
virtual void initAfterRead();
|
2012-05-18 02:45:23 -05:00
|
|
|
|
|
|
|
private:
|
2015-09-01 06:56:35 -05:00
|
|
|
void changeLegendConfig(QString resultVarNameOfNewLegend);
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2015-08-06 01:08:00 -05:00
|
|
|
caf::PdmChildArrayField<RimLegendConfig*> m_legendConfigData;
|
2015-09-01 06:56:35 -05:00
|
|
|
caf::PdmPtrField<RimLegendConfig*> m_legendConfigPtrField;
|
|
|
|
|
|
|
|
caf::PdmPointer<RimEclipseView> m_reservoirView;
|
2015-08-06 01:08:00 -05:00
|
|
|
|
2015-09-01 06:56:35 -05:00
|
|
|
// Obsolete
|
2015-08-06 01:08:00 -05:00
|
|
|
caf::PdmChildField<RimLegendConfig*> obsoleteField_legendConfig;
|
2012-05-18 02:45:23 -05:00
|
|
|
};
|
|
|
|
|