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-12-11 08:35:04 -06:00
|
|
|
class RimViewNameConfig;
|
2018-11-15 04:24:09 -06:00
|
|
|
class RimScaleLegendConfig;
|
2018-11-09 02:04:40 -06:00
|
|
|
class RivContourMapProjectionPartMgr;
|
2018-10-23 09:32:40 -05:00
|
|
|
|
2018-12-14 06:41:35 -06:00
|
|
|
class RimContourMapView : public RimEclipseView
|
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-12-14 06:41:35 -06:00
|
|
|
void setDefaultCustomName();
|
2019-01-09 02:57:47 -06:00
|
|
|
void updatePickPointAndRedraw();
|
2018-11-09 03:12:33 -06:00
|
|
|
|
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;
|
2018-11-20 07:54:30 -06:00
|
|
|
void updateGeometry();
|
2018-11-14 08:37:13 -06:00
|
|
|
void setFaultVisParameters();
|
2019-01-03 10:07:55 -06:00
|
|
|
void createContourMapGeometry();
|
2018-11-13 04:51:04 -06:00
|
|
|
void appendContourMapProjectionToModel();
|
2019-01-03 10:07:55 -06:00
|
|
|
void appendContourLinesToModel();
|
2018-11-15 14:40:10 -06:00
|
|
|
void appendPickPointVisToModel();
|
2018-10-23 09:32:40 -05:00
|
|
|
void updateLegends() override;
|
|
|
|
void updateViewWidgetAfterCreation() override;
|
|
|
|
void updateViewFollowingRangeFilterUpdates() override;
|
|
|
|
void onLoadDataAndUpdate() override;
|
2018-11-13 04:51:04 -06: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
|
|
|
|
2019-01-10 08:34:14 -06:00
|
|
|
std::set<RivCellSetEnum> allVisibleFaultGeometryTypes() const override;
|
2018-11-15 14:40:10 -06:00
|
|
|
|
2018-12-13 06:20:49 -06:00
|
|
|
QWidget* createViewWidget(QWidget* mainWindowParent) override;
|
|
|
|
|
2019-01-03 10:07:55 -06:00
|
|
|
void onViewNavigationChanged() override;
|
|
|
|
|
|
|
|
bool zoomChangeAboveTreshold(const cvf::Vec3d& currentCameraPosition) const;
|
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-15 04:24:09 -06:00
|
|
|
caf::PdmField<bool> m_showScaleLegend;
|
2019-01-03 10:07:55 -06:00
|
|
|
cvf::Vec3d m_cameraPositionLastUpdate;
|
2018-10-23 09:32:40 -05:00
|
|
|
};
|
|
|
|
|