2013-05-16 12:59:01 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
2014-09-23 15:04:57 +02:00
|
|
|
// Copyright (C) 2011- Statoil ASA
|
|
|
|
|
// Copyright (C) 2013- Ceetron Solutions AS
|
|
|
|
|
// Copyright (C) 2011-2012 Ceetron AS
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2013-05-16 12:59:01 +02:00
|
|
|
// 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.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2013-05-16 12:59:01 +02:00
|
|
|
// 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.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2013-05-16 12:59:01 +02:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "cafPdmPointer.h"
|
|
|
|
|
#include "cvfBoundingBox.h"
|
2017-05-05 11:21:40 +02:00
|
|
|
#include "cvfCollection.h"
|
2013-05-16 12:59:01 +02:00
|
|
|
|
|
|
|
|
namespace cvf
|
|
|
|
|
{
|
2019-09-06 10:40:57 +02:00
|
|
|
class Part;
|
|
|
|
|
class ModelBasicList;
|
|
|
|
|
class Transform;
|
|
|
|
|
class Effect;
|
|
|
|
|
class DrawableGeo;
|
|
|
|
|
class ScalarMapper;
|
|
|
|
|
} // namespace cvf
|
2013-05-16 12:59:01 +02:00
|
|
|
|
2017-01-06 10:26:57 +01:00
|
|
|
namespace caf
|
|
|
|
|
{
|
2019-09-06 10:40:57 +02:00
|
|
|
class DisplayCoordTransform;
|
2017-01-06 10:26:57 +01:00
|
|
|
}
|
|
|
|
|
|
2013-05-16 12:59:01 +02:00
|
|
|
class RivPipeGeometryGenerator;
|
|
|
|
|
class RimProject;
|
|
|
|
|
class RimWellPath;
|
2017-05-05 11:21:40 +02:00
|
|
|
class RivFishbonesSubsPartMgr;
|
2018-10-10 16:57:43 +02:00
|
|
|
class RimPerforationInterval;
|
2017-05-12 10:01:37 +02:00
|
|
|
class RimWellPathCollection;
|
2018-02-05 13:23:14 +01:00
|
|
|
class Rim3dView;
|
2018-03-09 13:15:01 +01:00
|
|
|
class Riv3dWellLogPlanePartMgr;
|
2018-03-15 21:25:54 +01:00
|
|
|
class RivWellConnectionFactorPartMgr;
|
2020-02-07 10:15:16 +01:00
|
|
|
class RimWellMeasurementInView;
|
2013-05-16 12:59:01 +02:00
|
|
|
|
2017-06-16 08:56:02 +02:00
|
|
|
class QDateTime;
|
2013-05-16 12:59:01 +02:00
|
|
|
|
2018-02-06 11:09:22 +01:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 10:40:57 +02:00
|
|
|
///
|
2018-02-06 11:09:22 +01:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2013-05-16 12:59:01 +02:00
|
|
|
class RivWellPathPartMgr : public cvf::Object
|
|
|
|
|
{
|
|
|
|
|
public:
|
2019-09-06 10:40:57 +02:00
|
|
|
explicit RivWellPathPartMgr( RimWellPath* wellPath, Rim3dView* view );
|
2018-10-18 19:45:57 +02:00
|
|
|
~RivWellPathPartMgr() override;
|
2013-05-16 12:59:01 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void appendStaticGeometryPartsToModel( cvf::ModelBasicList* model,
|
2018-03-16 11:21:57 +01:00
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
|
|
|
|
double characteristicCellSize,
|
2019-09-06 10:40:57 +02:00
|
|
|
const cvf::BoundingBox& wellPathClipBoundingBox );
|
2018-03-20 17:28:27 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void appendFlattenedStaticGeometryPartsToModel( cvf::ModelBasicList* model,
|
2018-03-20 17:28:27 +01:00
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
|
|
|
|
double characteristicCellSize,
|
2019-09-06 10:40:57 +02:00
|
|
|
const cvf::BoundingBox& wellPathClipBoundingBox );
|
2018-03-20 17:28:27 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void appendDynamicGeometryPartsToModel( cvf::ModelBasicList* model,
|
|
|
|
|
size_t timeStepIndex,
|
|
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
|
|
|
|
double characteristicCellSize,
|
|
|
|
|
const cvf::BoundingBox& wellPathClipBoundingBox );
|
2013-05-16 12:59:01 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void appendFlattenedDynamicGeometryPartsToModel( cvf::ModelBasicList* model,
|
|
|
|
|
size_t timeStepIndex,
|
|
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
|
|
|
|
double characteristicCellSize,
|
|
|
|
|
const cvf::BoundingBox& wellPathClipBoundingBox );
|
|
|
|
|
|
|
|
|
|
void appendStaticFracturePartsToModel( cvf::ModelBasicList* model, const cvf::BoundingBox& wellPathClipBoundingBox );
|
2017-01-06 10:26:57 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
private:
|
|
|
|
|
void appendFishboneSubsPartsToModel( cvf::ModelBasicList* model,
|
2018-10-11 11:33:45 +02:00
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
2019-09-06 10:40:57 +02:00
|
|
|
double characteristicCellSize );
|
2018-10-10 16:57:43 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void appendWellPathAttributesToModel( cvf::ModelBasicList* model,
|
|
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
|
|
|
|
double characteristicCellSize );
|
2013-05-16 12:59:01 +02:00
|
|
|
|
2019-11-13 15:29:09 +01:00
|
|
|
void appendWellMeasurementsToModel( cvf::ModelBasicList* model,
|
|
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
|
|
|
|
double characteristicCellSize );
|
|
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void appendPerforationsToModel( cvf::ModelBasicList* model,
|
|
|
|
|
size_t timeStepIndex,
|
|
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
|
|
|
|
double characteristicCellSize,
|
|
|
|
|
bool doFlatten );
|
2018-10-10 16:57:43 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void appendPerforationValvesToModel( cvf::ModelBasicList* model,
|
|
|
|
|
RimPerforationInterval* perforation,
|
|
|
|
|
double wellPathRadius,
|
|
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
|
|
|
|
RivPipeGeometryGenerator& geoGenerator );
|
2018-03-12 11:07:46 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void appendVirtualTransmissibilitiesToModel( cvf::ModelBasicList* model,
|
|
|
|
|
size_t timeStepIndex,
|
|
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
|
|
|
|
double characteristicCellSize );
|
2017-06-22 10:42:07 +02:00
|
|
|
|
2021-09-09 17:34:27 +02:00
|
|
|
void appendWellIntegrityIntervalsToModel( cvf::ModelBasicList* model,
|
|
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
|
|
|
|
double characteristicCellSize );
|
|
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void buildWellPathParts( const caf::DisplayCoordTransform* displayCoordTransform,
|
|
|
|
|
double characteristicCellSize,
|
|
|
|
|
const cvf::BoundingBox& wellPathClipBoundingBox,
|
|
|
|
|
bool doFlatten );
|
2017-06-20 14:48:30 +02:00
|
|
|
|
|
|
|
|
void clearAllBranchData();
|
2018-06-26 10:12:49 +02:00
|
|
|
inline RimWellPathCollection* wellPathCollection() const;
|
2019-09-06 10:40:57 +02:00
|
|
|
inline double wellPathRadius( double characteristicCellSize, RimWellPathCollection* wellPathCollection );
|
2020-02-07 10:15:16 +01:00
|
|
|
double wellMeasurementRadius( double characteristicCellSize,
|
|
|
|
|
const RimWellPathCollection* wellPathCollection,
|
|
|
|
|
const RimWellMeasurementInView* wellMeasurementInView );
|
2017-01-04 08:10:02 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
bool isWellPathWithinBoundingBox( const cvf::BoundingBox& wellPathClipBoundingBox ) const;
|
2018-04-23 22:52:44 +02:00
|
|
|
|
2019-11-13 15:29:09 +01:00
|
|
|
static cvf::Color3f mapWellMeasurementToColor( const QString& measurementKind, double value );
|
|
|
|
|
|
2020-06-22 07:27:28 +02:00
|
|
|
bool isWellPathEnabled( const cvf::BoundingBox& wellPathClipBoundingBox ) const;
|
|
|
|
|
|
2013-05-16 12:59:01 +02:00
|
|
|
private:
|
2019-09-06 10:40:57 +02:00
|
|
|
caf::PdmPointer<RimWellPath> m_rimWellPath;
|
|
|
|
|
caf::PdmPointer<Rim3dView> m_rimView;
|
|
|
|
|
|
|
|
|
|
cvf::ref<RivPipeGeometryGenerator> m_pipeGeomGenerator;
|
|
|
|
|
cvf::ref<cvf::Part> m_surfacePart;
|
|
|
|
|
cvf::ref<cvf::DrawableGeo> m_surfaceDrawable;
|
|
|
|
|
cvf::ref<cvf::Part> m_centerLinePart;
|
|
|
|
|
cvf::ref<cvf::DrawableGeo> m_centerLineDrawable;
|
|
|
|
|
cvf::ref<cvf::Part> m_wellLabelPart;
|
2021-04-13 07:22:56 +02:00
|
|
|
cvf::ref<cvf::Part> m_spherePart;
|
2019-09-06 10:40:57 +02:00
|
|
|
|
|
|
|
|
cvf::ref<Riv3dWellLogPlanePartMgr> m_3dWellLogPlanePartMgr;
|
|
|
|
|
cvf::ref<RivWellConnectionFactorPartMgr> m_wellConnectionFactorPartMgr;
|
2013-05-16 12:59:01 +02:00
|
|
|
};
|