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
|
|
|
|
|
|
|
|
#include "cafPdmField.h"
|
|
|
|
#include "cafPdmObject.h"
|
|
|
|
#include "cafPdmPointer.h"
|
|
|
|
#include "cafAppEnum.h"
|
|
|
|
#include "cafPdmFieldCvfColor.h"
|
2015-04-20 09:56:26 -05:00
|
|
|
#include "cafPdmFieldCvfMat4d.h"
|
2015-04-20 02:02:33 -05:00
|
|
|
|
2015-04-27 06:51:22 -05:00
|
|
|
#include "cvfObject.h"
|
2015-04-29 15:19:49 -05:00
|
|
|
#include "RimView.h"
|
2015-04-27 06:51:22 -05:00
|
|
|
|
2015-04-20 09:56:26 -05:00
|
|
|
class RimGeoMechResultSlot;
|
2015-04-20 02:02:33 -05:00
|
|
|
class Rim3dOverlayInfoConfig;
|
2015-04-20 09:56:26 -05:00
|
|
|
class RiuViewer;
|
2015-04-27 06:51:22 -05:00
|
|
|
class RimGeoMechCase;
|
|
|
|
class RivGeoMechPartMgr;
|
|
|
|
|
|
|
|
class RigFemPart;
|
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
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
|
|
|
RimGeoMechView(void);
|
|
|
|
virtual ~RimGeoMechView(void);
|
|
|
|
|
|
|
|
enum MeshModeType
|
|
|
|
{
|
|
|
|
FULL_MESH,
|
|
|
|
FAULTS_MESH,
|
|
|
|
NO_MESH
|
|
|
|
};
|
|
|
|
|
|
|
|
enum SurfaceModeType
|
|
|
|
{
|
|
|
|
SURFACE,
|
|
|
|
FAULTS,
|
|
|
|
NO_SURFACE
|
|
|
|
};
|
2015-04-27 06:51:22 -05:00
|
|
|
|
|
|
|
void setGeoMechCase(RimGeoMechCase* gmCase);
|
2015-04-30 07:19:43 -05:00
|
|
|
RimGeoMechCase* geoMechCase();
|
|
|
|
|
2015-04-20 09:56:26 -05:00
|
|
|
void loadDataAndUpdate();
|
2015-05-04 11:16:57 -05:00
|
|
|
virtual void createDisplayModelAndRedraw();
|
2015-04-20 02:02:33 -05:00
|
|
|
|
2015-04-29 15:19:49 -05:00
|
|
|
virtual void setCurrentTimeStep(int frameIdx){}
|
|
|
|
virtual void updateCurrentTimeStepAndRedraw(){}
|
|
|
|
virtual void endAnimation() {}
|
2015-04-20 09:56:26 -05:00
|
|
|
|
2015-04-29 15:19:49 -05:00
|
|
|
caf::PdmField<RimGeoMechResultSlot*> cellResult;
|
2015-04-20 02:02:33 -05:00
|
|
|
|
|
|
|
caf::PdmField< caf::AppEnum< MeshModeType > > meshMode;
|
|
|
|
caf::PdmField< caf::AppEnum< SurfaceModeType > > surfaceMode;
|
|
|
|
|
|
|
|
private:
|
2015-04-30 03:34:15 -05:00
|
|
|
|
|
|
|
virtual void updateViewerWidgetWindowTitle();
|
|
|
|
virtual void resetLegendsInViewer();
|
2015-04-27 06:51:22 -05:00
|
|
|
|
2015-04-30 03:59:39 -05:00
|
|
|
void updateLegends();
|
2015-04-29 15:19:49 -05:00
|
|
|
caf::PdmPointer<RimGeoMechCase> m_geomechCase;
|
|
|
|
cvf::ref<RivGeoMechPartMgr> m_geoMechVizModel;
|
2015-04-20 02:02:33 -05:00
|
|
|
};
|
2015-04-27 06:51:22 -05:00
|
|
|
|
|
|
|
#include "cvfArray.h"
|
|
|
|
|
|
|
|
class RivElmVisibilityCalculator
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static void computeAllVisible(cvf::UByteArray* elmVisibilities, const RigFemPart* femPart );
|
|
|
|
|
|
|
|
|
|
|
|
};
|