2012-05-18 02:45:23 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2011-2012 Statoil ASA, Ceetron AS
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2012-05-18 02:45:23 -05: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 03:40:57 -05:00
|
|
|
//
|
2012-05-18 02:45:23 -05: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 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2012-05-18 02:45:23 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cafPdmPointer.h"
|
2012-06-26 09:10:41 -05:00
|
|
|
#include "cvfAssert.h"
|
|
|
|
#include "cvfObject.h"
|
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
namespace cvf
|
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
class Part;
|
|
|
|
class ModelBasicList;
|
|
|
|
class Transform;
|
|
|
|
class Font;
|
|
|
|
} // namespace cvf
|
2018-03-13 11:19:14 -05:00
|
|
|
namespace caf
|
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
class DisplayCoordTransform;
|
2018-03-13 11:19:14 -05:00
|
|
|
}
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2018-03-13 11:19:14 -05:00
|
|
|
class Rim3dView;
|
2017-10-13 02:29:42 -05:00
|
|
|
class RimSimWellInView;
|
2018-03-13 11:19:14 -05:00
|
|
|
class RimSimWellInViewCollection;
|
2012-05-18 02:45:23 -05:00
|
|
|
|
|
|
|
class RivWellHeadPartMgr : public cvf::Object
|
|
|
|
{
|
|
|
|
public:
|
2019-09-06 03:40:57 -05:00
|
|
|
RivWellHeadPartMgr( RimSimWellInView* well );
|
2018-10-18 12:45:57 -05:00
|
|
|
~RivWellHeadPartMgr() override;
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void appendDynamicGeometryPartsToModel( cvf::ModelBasicList* model,
|
|
|
|
size_t frameIndex,
|
|
|
|
const caf::DisplayCoordTransform* displayXf );
|
|
|
|
void appendFlattenedDynamicGeometryPartsToModel( cvf::ModelBasicList* model,
|
|
|
|
size_t frameIndex,
|
|
|
|
const caf::DisplayCoordTransform* displayXf,
|
|
|
|
double xOffset );
|
2012-05-18 02:45:23 -05:00
|
|
|
|
|
|
|
private:
|
2020-02-12 04:43:15 -06:00
|
|
|
void buildWellHeadParts( size_t frameIndex, const caf::DisplayCoordTransform* displayXf, bool doFlatten, double xOffset );
|
2019-09-06 03:40:57 -05:00
|
|
|
void clearAllGeometry();
|
|
|
|
Rim3dView* viewWithSettings();
|
|
|
|
RimSimWellInViewCollection* simWellInViewCollection();
|
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
private:
|
2017-10-13 02:29:42 -05:00
|
|
|
caf::PdmPointer<RimSimWellInView> m_rimWell;
|
2019-09-06 03:40:57 -05:00
|
|
|
|
|
|
|
cvf::ref<cvf::Part> m_wellHeadArrowPart;
|
|
|
|
cvf::ref<cvf::Part> m_wellHeadLabelPart;
|
|
|
|
cvf::ref<cvf::Part> m_wellHeadPipeSurfacePart;
|
|
|
|
cvf::ref<cvf::Part> m_wellHeadPipeCenterPart;
|
2012-05-18 02:45:23 -05:00
|
|
|
};
|