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-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-20 02:02:33 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
|
|
|
class RimGeoMechView : public caf::PdmObject
|
|
|
|
{
|
|
|
|
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-20 09:56:26 -05:00
|
|
|
void loadDataAndUpdate();
|
2015-04-20 02:02:33 -05:00
|
|
|
|
2015-04-20 09:56:26 -05:00
|
|
|
caf::PdmField<RimGeoMechResultSlot*> cellResult;
|
2015-04-20 02:02:33 -05:00
|
|
|
caf::PdmField<Rim3dOverlayInfoConfig*> overlayInfoConfig;
|
|
|
|
|
|
|
|
// Fields:
|
|
|
|
caf::PdmField<QString> name;
|
|
|
|
caf::PdmField<double> scaleZ;
|
2015-04-20 09:56:26 -05:00
|
|
|
caf::PdmField<bool> showWindow;
|
|
|
|
caf::PdmField<cvf::Mat4d> cameraPosition;
|
|
|
|
|
2015-04-20 02:02:33 -05:00
|
|
|
|
|
|
|
caf::PdmField< caf::AppEnum< MeshModeType > > meshMode;
|
|
|
|
caf::PdmField< caf::AppEnum< SurfaceModeType > > surfaceMode;
|
|
|
|
|
|
|
|
caf::PdmField< cvf::Color3f > backgroundColor;
|
|
|
|
protected:
|
2015-04-25 01:57:34 -05:00
|
|
|
virtual caf::PdmFieldHandle* userDescriptionField();
|
2015-04-20 02:02:33 -05:00
|
|
|
|
|
|
|
private:
|
2015-04-20 09:56:26 -05:00
|
|
|
void updateViewerWidget();
|
|
|
|
void updateViewerWidgetWindowTitle();
|
|
|
|
QPointer<RiuViewer> m_viewer;
|
2015-04-20 02:02:33 -05:00
|
|
|
};
|