2016-12-16 03:15:23 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2016- Statoil 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
|
|
|
|
|
2017-02-07 02:09:00 -06:00
|
|
|
#include "RimFractureTemplate.h"
|
|
|
|
|
2016-12-16 03:15:23 -06:00
|
|
|
#include "cafAppEnum.h"
|
|
|
|
#include "cafPdmField.h"
|
2017-01-06 06:55:26 -06:00
|
|
|
#include "cafPdmFieldHandle.h"
|
2016-12-16 03:15:23 -06:00
|
|
|
#include "cafPdmObject.h"
|
2017-01-19 04:02:44 -06:00
|
|
|
#include "cafPdmFieldCvfVec3d.h"
|
2016-12-16 03:15:23 -06:00
|
|
|
|
2017-01-13 01:58:36 -06:00
|
|
|
#include "cvfBase.h"
|
2017-06-01 04:31:34 -05:00
|
|
|
#include "cvfObject.h"
|
2017-01-13 01:58:36 -06:00
|
|
|
#include "cvfVector3.h"
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
2017-06-01 04:31:34 -05:00
|
|
|
class RigFractureGrid;
|
2016-12-16 03:15:23 -06:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
2017-02-07 02:09:00 -06:00
|
|
|
class RimEllipseFractureTemplate : public RimFractureTemplate
|
2016-12-16 03:15:23 -06:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
2017-01-12 06:29:18 -06:00
|
|
|
RimEllipseFractureTemplate(void);
|
|
|
|
virtual ~RimEllipseFractureTemplate(void);
|
2016-12-16 03:15:23 -06:00
|
|
|
|
|
|
|
caf::PdmField<float> halfLength;
|
|
|
|
caf::PdmField<float> height;
|
2017-01-23 01:54:27 -06:00
|
|
|
|
2017-01-12 03:24:01 -06:00
|
|
|
caf::PdmField<float> width;
|
2017-01-04 03:41:46 -06:00
|
|
|
caf::PdmField<float> permeability;
|
|
|
|
|
2017-01-06 06:55:26 -06:00
|
|
|
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
2017-01-10 04:57:42 -06:00
|
|
|
|
2017-06-09 10:21:59 -05:00
|
|
|
void fractureTriangleGeometry(std::vector<cvf::Vec3f>* nodeCoords,
|
|
|
|
std::vector<cvf::uint>* polygonIndices,
|
2017-06-14 00:25:34 -05:00
|
|
|
RiaEclipseUnitTools::UnitSystem neededUnit);
|
|
|
|
std::vector<cvf::Vec3f> fractureBorderPolygon(RiaEclipseUnitTools::UnitSystem neededUnit);
|
2017-02-14 02:49:14 -06:00
|
|
|
void changeUnits();
|
|
|
|
|
2017-06-01 04:31:34 -05:00
|
|
|
const RigFractureGrid* fractureGrid() const;
|
|
|
|
|
2016-12-19 04:23:02 -06:00
|
|
|
protected:
|
|
|
|
virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering);
|
2017-02-14 02:49:14 -06:00
|
|
|
|
2017-06-01 04:31:34 -05:00
|
|
|
private:
|
|
|
|
void setupFractureGridCells();
|
|
|
|
cvf::ref<RigFractureGrid> m_fractureGrid;
|
|
|
|
|
2016-12-16 03:15:23 -06:00
|
|
|
};
|