2018-10-23 09:32:40 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2018- Equinor 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
|
|
|
|
|
|
|
|
#include "RimEclipseView.h"
|
2018-11-09 03:12:33 -06:00
|
|
|
#include "RimNameConfig.h"
|
2018-10-23 09:32:40 -05:00
|
|
|
|
2018-11-09 03:12:33 -06:00
|
|
|
class RimContourMapNameConfig;
|
2018-11-09 02:04:40 -06:00
|
|
|
class RivContourMapProjectionPartMgr;
|
2018-10-23 09:32:40 -05:00
|
|
|
|
2018-11-09 03:12:33 -06:00
|
|
|
class RimContourMapView : public RimEclipseView, public RimNameConfigHolderInterface
|
2018-10-23 09:32:40 -05:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
2018-11-09 02:04:40 -06:00
|
|
|
RimContourMapView();
|
|
|
|
RimContourMapProjection* contourMapProjection() const;
|
2018-10-23 09:32:40 -05:00
|
|
|
|
2018-11-09 03:12:33 -06:00
|
|
|
QString createAutoName() const override;
|
|
|
|
|
2018-10-23 09:32:40 -05:00
|
|
|
protected:
|
|
|
|
void initAfterRead() override;
|
|
|
|
void createDisplayModel() override;
|
2018-10-31 04:36:04 -05:00
|
|
|
void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
2018-10-23 09:32:40 -05:00
|
|
|
void defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName = "") override;
|
|
|
|
void updateCurrentTimeStep() override;
|
|
|
|
void updateLegends() override;
|
|
|
|
void updateViewWidgetAfterCreation() override;
|
|
|
|
void updateViewFollowingRangeFilterUpdates() override;
|
|
|
|
void onLoadDataAndUpdate() override;
|
2018-10-31 06:13:04 -05:00
|
|
|
void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
2018-11-09 03:12:33 -06:00
|
|
|
|
|
|
|
caf::PdmFieldHandle* userDescriptionField() override;
|
2018-10-23 09:32:40 -05:00
|
|
|
|
|
|
|
private:
|
2018-11-09 02:04:40 -06:00
|
|
|
cvf::ref<RivContourMapProjectionPartMgr> m_contourMapProjectionPartMgr;
|
|
|
|
caf::PdmChildField<RimContourMapProjection*> m_contourMapProjection;
|
|
|
|
caf::PdmField<bool> m_showAxisLines;
|
2018-11-09 03:12:33 -06:00
|
|
|
caf::PdmChildField<RimContourMapNameConfig*> m_nameConfig;
|
2018-10-23 09:32:40 -05:00
|
|
|
|
|
|
|
};
|
|
|
|
|