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