2012-05-18 02:45:23 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2011-2012 Statoil ASA, Ceetron 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
|
|
|
|
|
2017-10-13 06:44:53 -05:00
|
|
|
#include "RigSimWellData.h"
|
|
|
|
|
2013-05-06 03:55:00 -05:00
|
|
|
#include "cvfBase.h"
|
|
|
|
#include "cvfObject.h"
|
|
|
|
#include "cvfVector3.h"
|
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
#include "cafPdmPointer.h"
|
2017-10-13 06:44:53 -05:00
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
#include <list>
|
|
|
|
|
|
|
|
namespace cvf
|
|
|
|
{
|
|
|
|
class Part;
|
|
|
|
class ModelBasicList;
|
|
|
|
class Transform;
|
2012-06-26 09:10:41 -05:00
|
|
|
class Effect;
|
2013-05-06 03:55:00 -05:00
|
|
|
class DrawableGeo;
|
2012-05-18 02:45:23 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
class RivPipeGeometryGenerator;
|
2015-05-21 03:05:33 -05:00
|
|
|
class RimEclipseView;
|
2017-10-13 02:29:42 -05:00
|
|
|
class RimSimWellInView;
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2017-01-03 03:09:57 -06:00
|
|
|
class RivSimWellPipesPartMgr : public cvf::Object
|
2012-05-18 02:45:23 -05:00
|
|
|
{
|
|
|
|
public:
|
2018-03-12 08:09:59 -05:00
|
|
|
RivSimWellPipesPartMgr(RimEclipseView* reservoirView, RimSimWellInView* well, bool isFlattened = false);
|
2017-01-03 03:09:57 -06:00
|
|
|
~RivSimWellPipesPartMgr();
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2018-01-19 05:28:12 -06:00
|
|
|
void setScaleTransform(cvf::Transform * scaleTransform);
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2018-01-19 05:28:12 -06:00
|
|
|
void scheduleGeometryRegen();
|
2012-05-18 02:45:23 -05:00
|
|
|
|
|
|
|
void appendDynamicGeometryPartsToModel(cvf::ModelBasicList* model, size_t frameIndex);
|
|
|
|
void updatePipeResultColor(size_t frameIndex);
|
|
|
|
|
|
|
|
private:
|
2015-05-21 03:05:33 -05:00
|
|
|
caf::PdmPointer<RimEclipseView> m_rimReservoirView;
|
2017-10-13 02:29:42 -05:00
|
|
|
caf::PdmPointer<RimSimWellInView> m_rimWell;
|
2012-05-18 02:45:23 -05:00
|
|
|
|
|
|
|
cvf::ref<cvf::Transform> m_scaleTransform;
|
|
|
|
bool m_needsTransformUpdate;
|
2018-03-12 08:09:59 -05:00
|
|
|
bool m_isFlattened;
|
2012-05-18 02:45:23 -05:00
|
|
|
|
|
|
|
void buildWellPipeParts();
|
|
|
|
|
|
|
|
struct RivPipeBranchData
|
|
|
|
{
|
2013-08-26 07:03:01 -05:00
|
|
|
std::vector <RigWellResultPoint> m_cellIds;
|
2012-05-18 02:45:23 -05:00
|
|
|
cvf::ref<RivPipeGeometryGenerator> m_pipeGeomGenerator;
|
|
|
|
|
|
|
|
cvf::ref<cvf::Part> m_surfacePart;
|
|
|
|
cvf::ref<cvf::DrawableGeo> m_surfaceDrawable;
|
2017-02-15 01:14:29 -06:00
|
|
|
cvf::ref<cvf::DrawableGeo> m_largeSurfaceDrawable;
|
2012-05-18 02:45:23 -05:00
|
|
|
cvf::ref<cvf::Part> m_centerLinePart;
|
|
|
|
cvf::ref<cvf::DrawableGeo> m_centerLineDrawable;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2017-01-03 04:11:36 -06:00
|
|
|
RivPipeBranchData* pipeBranchData(size_t branchIndex);
|
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
std::list<RivPipeBranchData> m_wellBranches;
|
2012-06-26 09:10:41 -05:00
|
|
|
|
2015-11-17 10:19:25 -06:00
|
|
|
std::vector< std::vector <cvf::Vec3d> > m_pipeBranchesCLCoords;
|
2012-05-18 02:45:23 -05:00
|
|
|
};
|