2018-03-09 06:15:01 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2019-01-09 08:21:38 -06:00
|
|
|
// Copyright (C) 2018- Equinor ASA
|
2018-03-09 06:15:01 -06: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.
|
|
|
|
//
|
|
|
|
// 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 "cvfObject.h"
|
2018-04-20 09:08:17 -05:00
|
|
|
#include "cvfVector3.h"
|
2018-03-09 06:15:01 -06:00
|
|
|
|
|
|
|
#include "Rim3dWellLogCurve.h"
|
2018-03-22 06:54:31 -05:00
|
|
|
#include "Rim3dWellLogCurveCollection.h"
|
2018-03-09 06:15:01 -06:00
|
|
|
|
2018-03-09 08:42:23 -06:00
|
|
|
#include "cafPdmPointer.h"
|
|
|
|
|
2018-03-09 06:15:01 -06:00
|
|
|
namespace cvf
|
|
|
|
{
|
2018-03-21 03:48:51 -05:00
|
|
|
class ModelBasicList;
|
|
|
|
class Drawable;
|
|
|
|
class Effect;
|
|
|
|
class Part;
|
|
|
|
class BoundingBox;
|
2018-03-22 07:26:33 -05:00
|
|
|
class Color3f;
|
2019-09-06 03:40:57 -05:00
|
|
|
} // namespace cvf
|
2018-03-09 06:15:01 -06:00
|
|
|
|
|
|
|
namespace caf
|
|
|
|
{
|
2018-03-21 03:48:51 -05:00
|
|
|
class DisplayCoordTransform;
|
2018-03-09 06:15:01 -06:00
|
|
|
}
|
|
|
|
|
2018-03-20 07:51:51 -05:00
|
|
|
class RimGridView;
|
|
|
|
class RimWellPath;
|
2018-05-02 05:10:05 -05:00
|
|
|
class Riv3dWellLogDrawSurfaceGenerator;
|
2018-03-09 06:15:01 -06:00
|
|
|
|
|
|
|
class Riv3dWellLogPlanePartMgr : public cvf::Object
|
|
|
|
{
|
|
|
|
public:
|
2019-09-06 03:40:57 -05:00
|
|
|
Riv3dWellLogPlanePartMgr( RimWellPath* wellPath, RimGridView* gridView );
|
|
|
|
|
|
|
|
void appendPlaneToModel( cvf::ModelBasicList* model,
|
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
|
|
|
const cvf::BoundingBox& wellPathClipBoundingBox,
|
|
|
|
bool isStaticResult = false );
|
2018-03-09 06:15:01 -06:00
|
|
|
|
2018-03-21 09:32:03 -05:00
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
void append3dWellLogCurveToModel( cvf::ModelBasicList* model,
|
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
|
|
|
const cvf::BoundingBox& wellPathClipBoundingBox,
|
|
|
|
Rim3dWellLogCurve* rim3dWellLogCurve,
|
|
|
|
const std::vector<cvf::Vec3d>& drawSurfaceVertices );
|
2018-03-09 06:15:01 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void appendDrawSurfaceToModel( cvf::ModelBasicList* model,
|
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
|
|
|
const cvf::BoundingBox& wellPathClipBoundingBox,
|
|
|
|
Rim3dWellLogCurve::DrawPlane drawPlane,
|
|
|
|
double samplingInterval );
|
2018-03-22 03:54:58 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
cvf::ref<cvf::Part> createPart( cvf::Drawable* drawable, cvf::Effect* effect );
|
2018-03-21 03:48:51 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
double wellPathCenterToPlotStartOffset( Rim3dWellLogCurve::DrawPlane drawPlane ) const;
|
2018-03-22 03:54:58 -05:00
|
|
|
double planeWidth() const;
|
|
|
|
|
2018-03-09 06:15:01 -06:00
|
|
|
private:
|
2018-09-03 07:52:00 -05:00
|
|
|
std::map<Rim3dWellLogCurve::DrawPlane, cvf::ref<Riv3dWellLogDrawSurfaceGenerator>> m_3dWellLogDrawSurfaceGeometryGenerators;
|
2019-09-06 03:40:57 -05:00
|
|
|
|
|
|
|
caf::PdmPointer<RimWellPath> m_wellPath;
|
|
|
|
caf::PdmPointer<RimGridView> m_gridView;
|
2018-03-20 07:51:51 -05:00
|
|
|
};
|