2016-12-09 03:01:50 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2016- Statoil ASA
|
|
|
|
//
|
|
|
|
// 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
|
|
|
|
|
2016-12-22 01:45:30 -06:00
|
|
|
#include "RimDefines.h"
|
|
|
|
|
2016-12-15 07:22:39 -06:00
|
|
|
#include "cafAppEnum.h"
|
2016-12-09 03:01:50 -06:00
|
|
|
#include "cafPdmField.h"
|
|
|
|
#include "cafPdmObject.h"
|
|
|
|
#include "cafPdmPtrField.h"
|
2016-12-19 08:06:20 -06:00
|
|
|
#include "cafPdmPtrArrayField.h"
|
2016-12-09 03:01:50 -06:00
|
|
|
|
|
|
|
class RimCase;
|
|
|
|
class RimView;
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
|
|
|
class RimMultiSnapshotDefinition : public caf::PdmObject
|
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
|
|
|
RimMultiSnapshotDefinition();
|
|
|
|
virtual ~RimMultiSnapshotDefinition();
|
|
|
|
|
2017-01-17 05:59:13 -06:00
|
|
|
caf::PdmField<bool> isActive;
|
|
|
|
|
2017-01-17 03:40:38 -06:00
|
|
|
caf::PdmPtrField<RimView*> view;
|
2016-12-09 03:01:50 -06:00
|
|
|
|
2016-12-22 01:45:30 -06:00
|
|
|
caf::PdmField< caf::AppEnum< RimDefines::ResultCatType > > eclipseResultType;
|
|
|
|
caf::PdmField< std::vector<QString> > selectedEclipseResults;
|
|
|
|
|
2016-12-09 03:01:50 -06:00
|
|
|
caf::PdmField<int> timeStepStart;
|
|
|
|
caf::PdmField<int> timeStepEnd;
|
|
|
|
|
2016-12-13 02:52:05 -06:00
|
|
|
enum SnapShotDirectionEnum
|
|
|
|
{
|
|
|
|
RANGEFILTER_I,
|
|
|
|
RANGEFILTER_J,
|
2016-12-14 02:16:44 -06:00
|
|
|
RANGEFILTER_K,
|
|
|
|
NO_RANGEFILTER
|
2016-12-13 02:52:05 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
caf::PdmField< caf::AppEnum< SnapShotDirectionEnum > > sliceDirection;
|
|
|
|
caf::PdmField<int> startSliceIndex;
|
|
|
|
caf::PdmField<int> endSliceIndex;
|
|
|
|
|
2016-12-19 08:06:20 -06:00
|
|
|
caf::PdmPtrArrayField<RimCase*> additionalCases;
|
|
|
|
|
2017-01-17 05:59:13 -06:00
|
|
|
protected:
|
|
|
|
virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
|
|
|
|
2016-12-22 01:45:30 -06:00
|
|
|
private:
|
2016-12-09 07:40:26 -06:00
|
|
|
virtual QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool * useOptionsOnly) override;
|
2016-12-13 02:58:29 -06:00
|
|
|
|
|
|
|
void getTimeStepStrings(QList<caf::PdmOptionItemInfo> &options);
|
2016-12-15 07:22:39 -06:00
|
|
|
|
2016-12-15 01:58:11 -06:00
|
|
|
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
2016-12-22 01:45:30 -06:00
|
|
|
|
|
|
|
QList<caf::PdmOptionItemInfo> toOptionList(const QStringList& varList);
|
2016-12-09 03:01:50 -06:00
|
|
|
};
|