Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21651
2013-05-16 05:59:35 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2014-09-23 08:04:57 -05:00
|
|
|
// Copyright (C) 2011- Statoil ASA
|
|
|
|
// Copyright (C) 2013- Ceetron Solutions AS
|
|
|
|
// Copyright (C) 2011-2012 Ceetron AS
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21651
2013-05-16 05:59:35 -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.
|
|
|
|
//
|
|
|
|
// 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-06-13 08:22:12 -05:00
|
|
|
#include "RiaEclipseUnitTools.h"
|
2017-06-07 04:57:25 -05:00
|
|
|
|
2015-07-31 11:58:23 -05:00
|
|
|
#include "cafPdmChildArrayField.h"
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21651
2013-05-16 05:59:35 -05:00
|
|
|
#include "cafPdmField.h"
|
|
|
|
#include "cafPdmObject.h"
|
|
|
|
#include "cafPdmPointer.h"
|
|
|
|
#include "cafAppEnum.h"
|
|
|
|
|
2014-07-24 03:11:43 -05:00
|
|
|
// Include to make Pdm work for cvf::Color
|
|
|
|
#include "cafPdmFieldCvfColor.h"
|
2016-12-20 02:53:19 -06:00
|
|
|
#include "cafPdmChildField.h"
|
2014-07-24 03:11:43 -05:00
|
|
|
|
|
|
|
#include "cvfObject.h"
|
|
|
|
|
|
|
|
#include <QString>
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21651
2013-05-16 05:59:35 -05:00
|
|
|
|
2017-05-10 05:19:46 -05:00
|
|
|
class RifWellPathImporter;
|
2014-07-24 03:11:43 -05:00
|
|
|
class RigWellPath;
|
2017-06-25 03:36:15 -05:00
|
|
|
class RimEclipseView;
|
2017-10-20 07:05:42 -05:00
|
|
|
class RimProject;
|
|
|
|
class RimWellLogFile;
|
|
|
|
class RimWellPath;
|
2014-07-24 03:11:43 -05:00
|
|
|
|
2017-06-21 08:39:59 -05:00
|
|
|
namespace cvf {
|
|
|
|
class ModelBasicList;
|
|
|
|
class BoundingBox;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace caf {
|
|
|
|
class DisplayCoordTransform;
|
|
|
|
}
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21651
2013-05-16 05:59:35 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
|
|
|
class RimWellPathCollection : public caf::PdmObject
|
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
|
|
|
|
|
|
|
RimWellPathCollection();
|
|
|
|
virtual ~RimWellPathCollection();
|
|
|
|
|
|
|
|
void setProject(RimProject* project);
|
|
|
|
|
2017-11-12 14:57:25 -06:00
|
|
|
QString newestAddedWellName() { return m_newestAddedWellName; }
|
|
|
|
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21651
2013-05-16 05:59:35 -05:00
|
|
|
enum WellVisibilityType
|
|
|
|
{
|
|
|
|
FORCE_ALL_OFF,
|
|
|
|
ALL_ON,
|
|
|
|
FORCE_ALL_ON
|
|
|
|
};
|
|
|
|
typedef caf::AppEnum<RimWellPathCollection::WellVisibilityType> WellVisibilityEnum;
|
|
|
|
|
2013-10-22 08:30:12 -05:00
|
|
|
caf::PdmField<bool> isActive;
|
|
|
|
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21651
2013-05-16 05:59:35 -05:00
|
|
|
caf::PdmField<bool> showWellPathLabel;
|
2013-10-01 04:44:10 -05:00
|
|
|
caf::PdmField<cvf::Color3f> wellPathLabelColor;
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21651
2013-05-16 05:59:35 -05:00
|
|
|
|
|
|
|
caf::PdmField<WellVisibilityEnum> wellPathVisibility;
|
|
|
|
caf::PdmField<double> wellPathRadiusScaleFactor;
|
|
|
|
caf::PdmField<int> wellPathCrossSectionVertexCount;
|
|
|
|
caf::PdmField<bool> wellPathClip;
|
|
|
|
caf::PdmField<int> wellPathClipZDistance;
|
|
|
|
|
2015-07-31 11:58:23 -05:00
|
|
|
caf::PdmChildArrayField<RimWellPath*> wellPaths;
|
2013-06-24 15:04:52 -05:00
|
|
|
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21651
2013-05-16 05:59:35 -05:00
|
|
|
void readWellPathFiles();
|
|
|
|
void addWellPaths(QStringList filePaths);
|
2015-10-29 07:12:55 -05:00
|
|
|
|
|
|
|
void removeWellPath(RimWellPath* wellPath);
|
|
|
|
void deleteAllWellPaths();
|
|
|
|
|
2015-09-14 10:05:28 -05:00
|
|
|
RimWellPath* wellPathByName(const QString& wellPathName) const;
|
2017-10-27 08:01:55 -05:00
|
|
|
RimWellPath* tryFindMatchingWellPath(const QString& wellName) const;
|
2017-09-29 04:24:18 -05:00
|
|
|
void addWellPaths(const std::vector<RimWellPath*> wellPaths);
|
2017-10-20 07:05:42 -05:00
|
|
|
RimWellLogFile* addWellLogs(const QStringList& filePaths);
|
2013-06-24 15:04:52 -05:00
|
|
|
|
2017-06-21 10:13:19 -05:00
|
|
|
void scheduleRedrawAffectedViews();
|
2017-06-21 08:39:59 -05:00
|
|
|
|
|
|
|
void appendStaticGeometryPartsToModel(cvf::ModelBasicList* model,
|
|
|
|
double characteristicCellSize,
|
|
|
|
const cvf::BoundingBox& wellPathClipBoundingBox,
|
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform);
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21651
2013-05-16 05:59:35 -05:00
|
|
|
|
2017-08-21 08:24:20 -05:00
|
|
|
#ifdef USE_PROTOTYPE_FEATURE_FRACTURES
|
2017-06-25 03:36:15 -05:00
|
|
|
void appendStaticFracturePartsToModel(cvf::ModelBasicList* model,
|
|
|
|
const RimEclipseView* eclView);
|
2017-08-21 08:24:20 -05:00
|
|
|
#endif // USE_PROTOTYPE_FEATURE_FRACTURES
|
2017-06-25 03:36:15 -05:00
|
|
|
|
2017-06-21 08:39:59 -05:00
|
|
|
void appendDynamicGeometryPartsToModel(cvf::ModelBasicList* model,
|
|
|
|
const QDateTime& timeStamp,
|
|
|
|
double characteristicCellSize,
|
|
|
|
const cvf::BoundingBox& wellPathClipBoundingBox,
|
|
|
|
const caf::DisplayCoordTransform* displayCoordTransform);
|
2016-06-29 09:09:27 -05:00
|
|
|
void updateFilePathsFromProjectPath(const QString& newProjectPath, const QString& oldProjectPath);
|
2015-11-30 07:32:34 -06:00
|
|
|
protected:
|
|
|
|
virtual void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue );
|
2013-10-24 02:50:16 -05:00
|
|
|
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21651
2013-05-16 05:59:35 -05:00
|
|
|
private:
|
2013-10-17 06:37:59 -05:00
|
|
|
virtual void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering );
|
2013-10-22 08:30:12 -05:00
|
|
|
virtual caf::PdmFieldHandle* objectToggleField();
|
2013-10-17 06:37:59 -05:00
|
|
|
|
2015-09-15 04:49:09 -05:00
|
|
|
void readAndAddWellPaths(std::vector<RimWellPath*>& wellPathArray);
|
2015-11-30 07:32:34 -06:00
|
|
|
void sortWellsByName();
|
2015-09-15 04:49:09 -05:00
|
|
|
|
2017-06-13 08:22:12 -05:00
|
|
|
RiaEclipseUnitTools::UnitSystemType findUnitSystemForWellPath(const RimWellPath* wellPath);
|
2017-06-07 04:57:25 -05:00
|
|
|
|
2017-05-10 05:19:46 -05:00
|
|
|
RifWellPathImporter* m_wellPathImporter;
|
2017-11-12 14:57:25 -06:00
|
|
|
QString m_newestAddedWellName;
|
2013-09-10 01:47:28 -05:00
|
|
|
};
|