2018-03-09 06:15:01 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2018- 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
|
|
|
|
|
2018-03-09 06:56:05 -06:00
|
|
|
#include "cvfBase.h"
|
2018-03-09 06:15:01 -06:00
|
|
|
#include "cvfObject.h"
|
|
|
|
|
|
|
|
#include "Rim3dWellLogCurve.h"
|
|
|
|
|
2018-03-09 08:42:23 -06:00
|
|
|
#include "cafPdmPointer.h"
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
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 03:54:58 -05:00
|
|
|
}
|
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-03-09 06:15:01 -06:00
|
|
|
class Riv3dWellLogCurveGeometryGenerator;
|
|
|
|
|
|
|
|
class Riv3dWellLogPlanePartMgr : public cvf::Object
|
|
|
|
{
|
|
|
|
public:
|
2018-03-20 07:51:51 -05:00
|
|
|
Riv3dWellLogPlanePartMgr(RimWellPath* wellPath, RimGridView* gridView);
|
2018-03-09 06:15:01 -06:00
|
|
|
|
2018-03-21 09:32:03 -05:00
|
|
|
void appendPlaneToModel(cvf::ModelBasicList* model,
|
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
|
|
|
const cvf::BoundingBox& wellPathClipBoundingBox);
|
|
|
|
private:
|
2018-03-21 03:48:51 -05:00
|
|
|
void append3dWellLogCurvesToModel(cvf::ModelBasicList* model,
|
2018-03-09 06:15:01 -06:00
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
2018-03-21 07:15:48 -05:00
|
|
|
const cvf::BoundingBox& wellPathClipBoundingBox);
|
2018-03-09 06:15:01 -06:00
|
|
|
|
2018-03-21 09:32:03 -05:00
|
|
|
void appendGridToModel(cvf::ModelBasicList* model,
|
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
|
|
|
const cvf::BoundingBox& wellPathClipBoundingBox,
|
|
|
|
const Rim3dWellLogCurve::DrawPlane& drawPlane,
|
|
|
|
double gridIntervalSize);
|
2018-03-22 03:54:58 -05:00
|
|
|
|
2018-03-20 05:29:46 -05:00
|
|
|
cvf::ref<cvf::Part> createPart(cvf::Drawable* drawable, cvf::Effect* effect);
|
2018-03-21 03:48:51 -05:00
|
|
|
|
2018-03-22 02:54:48 -05:00
|
|
|
static double angle(const Rim3dWellLogCurve::DrawPlane& drawPlane);
|
|
|
|
|
2018-03-22 03:54:58 -05:00
|
|
|
double wellPathCenterToPlotStartOffset() const;
|
|
|
|
double planeWidth() const;
|
|
|
|
|
|
|
|
void create3dWellLogCurveGeometryGenerator();
|
|
|
|
|
2018-03-09 06:15:01 -06:00
|
|
|
private:
|
|
|
|
cvf::ref<Riv3dWellLogCurveGeometryGenerator> m_3dWellLogCurveGeometryGenerator;
|
2018-03-20 07:51:51 -05:00
|
|
|
|
|
|
|
caf::PdmPointer<RimWellPath> m_wellPath;
|
|
|
|
caf::PdmPointer<RimGridView> m_gridView;
|
|
|
|
};
|