2015-04-20 09:02:33 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2015- Statoil ASA
|
|
|
|
|
// Copyright (C) 2015- Ceetron Solutions AS
|
|
|
|
|
//
|
|
|
|
|
// 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-07-31 18:58:23 +02:00
|
|
|
#include "RimView.h"
|
|
|
|
|
|
2015-04-20 09:02:33 +02:00
|
|
|
#include "cafAppEnum.h"
|
2015-07-31 18:58:23 +02:00
|
|
|
#include "cafPdmChildField.h"
|
|
|
|
|
#include "cafPdmField.h"
|
2015-04-20 09:02:33 +02:00
|
|
|
#include "cafPdmFieldCvfColor.h"
|
2015-04-20 16:56:26 +02:00
|
|
|
#include "cafPdmFieldCvfMat4d.h"
|
2015-07-31 18:58:23 +02:00
|
|
|
#include "cafPdmObject.h"
|
|
|
|
|
#include "cafPdmPointer.h"
|
2015-04-20 09:02:33 +02:00
|
|
|
|
2015-04-27 13:51:22 +02:00
|
|
|
#include "cvfObject.h"
|
|
|
|
|
|
2015-07-31 18:58:23 +02:00
|
|
|
class RigFemPart;
|
2015-04-20 09:02:33 +02:00
|
|
|
class Rim3dOverlayInfoConfig;
|
2015-07-31 18:58:23 +02:00
|
|
|
class RimCellRangeFilterCollection;
|
2015-04-27 13:51:22 +02:00
|
|
|
class RimGeoMechCase;
|
2015-07-31 18:58:23 +02:00
|
|
|
class RimGeoMechCellColors;
|
2016-10-18 07:31:02 +02:00
|
|
|
class RimGeoMechResultDefinition;
|
2015-07-31 18:58:23 +02:00
|
|
|
class RimGeoMechPropertyFilterCollection;
|
|
|
|
|
class RiuViewer;
|
2015-04-27 13:51:22 +02:00
|
|
|
class RivGeoMechPartMgr;
|
2015-05-22 17:01:59 +02:00
|
|
|
class RivGeoMechVizLogic;
|
2015-05-21 15:39:44 +02:00
|
|
|
|
2015-05-08 10:38:10 +02:00
|
|
|
namespace cvf {
|
2015-05-22 17:01:59 +02:00
|
|
|
class CellRangeFilter;
|
2015-07-31 18:58:23 +02:00
|
|
|
class Transform;
|
2015-05-08 10:38:10 +02:00
|
|
|
}
|
2015-04-20 09:02:33 +02:00
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
///
|
|
|
|
|
///
|
|
|
|
|
//==================================================================================================
|
2015-04-29 22:19:49 +02:00
|
|
|
class RimGeoMechView : public RimView
|
2015-04-20 09:02:33 +02:00
|
|
|
{
|
2015-05-08 10:38:10 +02:00
|
|
|
CAF_PDM_HEADER_INIT;
|
2015-04-20 09:02:33 +02:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
RimGeoMechView(void);
|
|
|
|
|
virtual ~RimGeoMechView(void);
|
|
|
|
|
|
2015-04-27 13:51:22 +02:00
|
|
|
void setGeoMechCase(RimGeoMechCase* gmCase);
|
2015-05-08 10:38:10 +02:00
|
|
|
RimGeoMechCase* geoMechCase();
|
2015-11-11 16:21:07 +01:00
|
|
|
virtual RimCase* ownerCase();
|
2015-04-30 14:19:43 +02:00
|
|
|
|
2015-05-15 18:51:49 +02:00
|
|
|
virtual void loadDataAndUpdate();
|
2015-04-20 09:02:33 +02:00
|
|
|
|
2015-08-27 22:54:37 +02:00
|
|
|
caf::PdmChildField<RimGeoMechCellColors*> cellResult;
|
2016-10-18 07:31:02 +02:00
|
|
|
RimGeoMechResultDefinition* cellResultResultDefinition();
|
2015-08-27 22:54:37 +02:00
|
|
|
|
2015-11-12 10:48:13 +01:00
|
|
|
virtual const RimPropertyFilterCollection* propertyFilterCollection() const;
|
|
|
|
|
|
|
|
|
|
RimGeoMechPropertyFilterCollection* geoMechPropertyFilterCollection();
|
|
|
|
|
const RimGeoMechPropertyFilterCollection* geoMechPropertyFilterCollection() const;
|
2015-08-27 22:54:37 +02:00
|
|
|
void setOverridePropertyFilterCollection(RimGeoMechPropertyFilterCollection* pfc);
|
2015-04-20 09:02:33 +02:00
|
|
|
|
2015-05-08 14:13:26 +02:00
|
|
|
bool isTimeStepDependentDataVisible();
|
2015-04-20 09:02:33 +02:00
|
|
|
|
2015-06-22 09:09:33 +02:00
|
|
|
virtual cvf::Transform* scaleTransform();
|
2015-06-18 19:22:24 +02:00
|
|
|
virtual void scheduleGeometryRegen(RivCellSetEnum geometryType);
|
2015-09-23 14:35:35 +02:00
|
|
|
void updateIconStateForFilterCollections();
|
2015-07-01 12:07:01 +02:00
|
|
|
|
2015-11-23 07:24:50 +01:00
|
|
|
virtual void axisLabels(cvf::String* xLabel, cvf::String* yLabel, cvf::String* zLabel);
|
|
|
|
|
|
2016-09-12 11:36:59 +02:00
|
|
|
virtual bool isUsingFormationNames() const override;
|
|
|
|
|
|
2015-10-19 12:10:18 +02:00
|
|
|
protected:
|
|
|
|
|
virtual void defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName = "");
|
2015-11-16 11:30:03 +01:00
|
|
|
|
|
|
|
|
virtual void createPartCollectionFromSelection(cvf::Collection<cvf::Part>* parts);
|
2015-10-19 12:10:18 +02:00
|
|
|
|
2015-07-01 12:07:01 +02:00
|
|
|
private:
|
2015-05-08 10:38:10 +02:00
|
|
|
virtual void createDisplayModel();
|
|
|
|
|
virtual void updateDisplayModelVisibility();
|
2015-05-13 22:42:11 +02:00
|
|
|
virtual void updateScaleTransform();
|
2015-05-22 17:01:59 +02:00
|
|
|
|
2015-05-08 10:38:10 +02:00
|
|
|
virtual void clampCurrentTimestep();
|
|
|
|
|
|
|
|
|
|
virtual void updateCurrentTimeStep();
|
|
|
|
|
virtual void updateStaticCellColors();
|
|
|
|
|
|
|
|
|
|
virtual void updateViewerWidgetWindowTitle();
|
|
|
|
|
virtual void resetLegendsInViewer();
|
|
|
|
|
|
|
|
|
|
void updateLegends();
|
2015-05-13 22:42:11 +02:00
|
|
|
|
2015-05-13 22:55:07 +02:00
|
|
|
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
|
2015-05-16 08:45:50 +02:00
|
|
|
virtual void initAfterRead();
|
2015-05-13 22:55:07 +02:00
|
|
|
|
2015-09-14 16:14:44 +02:00
|
|
|
virtual void calculateCurrentTotalCellVisibility(cvf::UByteArray* totalVisibility);
|
|
|
|
|
|
2015-11-16 11:30:03 +01:00
|
|
|
|
2015-08-27 22:54:37 +02:00
|
|
|
caf::PdmChildField<RimGeoMechPropertyFilterCollection*> m_propertyFilterCollection;
|
|
|
|
|
caf::PdmPointer<RimGeoMechPropertyFilterCollection> m_overridePropertyFilterCollection;
|
|
|
|
|
|
2015-05-08 10:38:10 +02:00
|
|
|
caf::PdmPointer<RimGeoMechCase> m_geomechCase;
|
2015-05-22 17:01:59 +02:00
|
|
|
cvf::ref<RivGeoMechVizLogic> m_vizLogic;
|
2015-05-13 13:03:22 +02:00
|
|
|
cvf::ref<cvf::Transform> m_scaleTransform;
|
2015-04-27 13:51:22 +02:00
|
|
|
|
2015-04-20 09:02:33 +02:00
|
|
|
};
|
2015-04-27 13:51:22 +02:00
|
|
|
|