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
|
2019-09-06 03:40:57 -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
|
|
|
// 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
|
|
|
//
|
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 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>
|
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
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-01-21 05:58:46 -06:00
|
|
|
#include "RiaDefines.h"
|
2017-06-07 04:57:25 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cafAppEnum.h"
|
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"
|
|
|
|
|
2014-07-24 03:11:43 -05:00
|
|
|
// Include to make Pdm work for cvf::Color
|
2016-12-20 02:53:19 -06:00
|
|
|
#include "cafPdmChildField.h"
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cafPdmFieldCvfColor.h"
|
2014-07-24 03:11:43 -05:00
|
|
|
|
|
|
|
#include "cvfObject.h"
|
|
|
|
|
2020-10-07 06:53:36 -05:00
|
|
|
#include <gsl/gsl>
|
|
|
|
|
2020-10-06 08:00:39 -05:00
|
|
|
#include <memory>
|
|
|
|
|
2017-05-10 05:19:46 -05:00
|
|
|
class RifWellPathImporter;
|
2014-07-24 03:11:43 -05:00
|
|
|
class RigWellPath;
|
2018-06-20 01:55:27 -05:00
|
|
|
class RimFileWellPath;
|
2017-06-25 03:36:15 -05:00
|
|
|
class RimEclipseView;
|
2017-10-20 07:05:42 -05:00
|
|
|
class RimProject;
|
|
|
|
class RimWellLogFile;
|
|
|
|
class RimWellPath;
|
2020-10-14 11:55:17 -05:00
|
|
|
class RimWellPathGroup;
|
2017-11-24 03:01:05 -06:00
|
|
|
class RifWellPathFormationsImporter;
|
2019-11-25 05:18:39 -06:00
|
|
|
class RimWellMeasurementCollection;
|
2017-11-24 03:01:05 -06:00
|
|
|
class QString;
|
2014-07-24 03:11:43 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
namespace cvf
|
|
|
|
{
|
2017-06-21 08:39:59 -05:00
|
|
|
class ModelBasicList;
|
|
|
|
class BoundingBox;
|
2019-09-06 03:40:57 -05:00
|
|
|
} // namespace cvf
|
2017-06-21 08:39:59 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
namespace caf
|
|
|
|
{
|
2017-06-21 08:39:59 -05:00
|
|
|
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
|
|
|
|
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -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
|
|
|
//==================================================================================================
|
|
|
|
class RimWellPathCollection : public caf::PdmObject
|
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
2019-09-06 03:40:57 -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
|
|
|
public:
|
|
|
|
RimWellPathCollection();
|
2018-10-18 12:45:57 -05:00
|
|
|
~RimWellPathCollection() override;
|
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;
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<bool> isActive;
|
2013-10-22 08:30:12 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<bool> showWellPathLabel;
|
|
|
|
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
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<WellVisibilityEnum> wellPathVisibility;
|
|
|
|
caf::PdmField<double> wellPathRadiusScaleFactor;
|
|
|
|
caf::PdmField<int> wellPathCrossSectionVertexCount;
|
|
|
|
caf::PdmField<bool> wellPathClip;
|
|
|
|
caf::PdmField<int> wellPathClipZDistance;
|
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
|
|
|
|
2019-11-30 03:23:24 -06:00
|
|
|
void loadDataAndUpdate();
|
2020-10-19 06:16:00 -05:00
|
|
|
std::vector<RimWellPath*> addWellPaths( QStringList filePaths, bool importGrouped, QStringList* errorMessages );
|
2020-10-07 09:18:24 -05:00
|
|
|
std::vector<RimWellPath*> topLevelWellPaths() const;
|
|
|
|
std::vector<RimWellPath*> allWellPaths() const;
|
2020-10-20 06:01:46 -05:00
|
|
|
void removeWellPath( gsl::not_null<RimWellPath*> wellPath );
|
|
|
|
|
|
|
|
void deleteAllWellPaths();
|
2021-01-04 04:09:01 -06:00
|
|
|
void groupWellPaths( const std::vector<RimWellPath*>& wellPaths, bool automaticGrouping = false );
|
2020-10-20 06:01:46 -05:00
|
|
|
void ungroupWellPaths( const std::vector<RimWellPath*>& wellPaths );
|
2019-09-06 03:40:57 -05:00
|
|
|
|
|
|
|
RimWellPath* mostRecentlyUpdatedWellPath();
|
|
|
|
|
|
|
|
void readWellPathFormationFiles();
|
|
|
|
void reloadAllWellPathFormations();
|
2017-11-29 01:42:37 -06:00
|
|
|
|
2020-10-06 08:05:04 -05:00
|
|
|
RimWellPath* wellPathByName( const QString& wellPathName ) const;
|
|
|
|
RimWellPath* tryFindMatchingWellPath( const QString& wellName ) const;
|
2020-10-19 06:16:00 -05:00
|
|
|
void addWellPaths( const std::vector<RimWellPath*> incomingWellPaths, bool importGrouped );
|
|
|
|
void addWellPath( gsl::not_null<RimWellPath*> wellPath, bool importGrouped );
|
2020-10-06 08:05:04 -05:00
|
|
|
|
2019-10-09 02:21:28 -05:00
|
|
|
std::vector<RimWellLogFile*> addWellLogs( const QStringList& filePaths, QStringList* errorMessages );
|
|
|
|
void addWellPathFormations( const QStringList& filePaths );
|
2017-11-24 03:01:05 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void scheduleRedrawAffectedViews();
|
2013-06-24 15:04:52 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath );
|
|
|
|
bool anyWellsContainingPerforationIntervals() const;
|
|
|
|
size_t modelledWellPathCount() const;
|
2017-06-21 08:39:59 -05:00
|
|
|
|
2019-11-25 05:18:39 -06:00
|
|
|
RimWellMeasurementCollection* measurementCollection();
|
|
|
|
const RimWellMeasurementCollection* measurementCollection() const;
|
|
|
|
|
2020-05-18 09:02:27 -05:00
|
|
|
void onChildDeleted( caf::PdmChildArrayFieldHandle* childArray,
|
|
|
|
std::vector<caf::PdmObjectHandle*>& referringObjects ) override;
|
|
|
|
|
2015-11-30 07:32:34 -06:00
|
|
|
protected:
|
2020-02-12 04:43:15 -06:00
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
2013-10-24 02:50:16 -05:00
|
|
|
|
2020-10-20 06:01:46 -05:00
|
|
|
std::vector<RimWellPath*> detachWellPaths( const std::vector<RimWellPath*> wellPathsToDetach );
|
2020-10-20 06:46:05 -05:00
|
|
|
bool detachWellPath( gsl::not_null<RimWellPath*> wellPath );
|
2020-10-20 06:01:46 -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:
|
2020-01-10 03:00:08 -06:00
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
|
|
|
void defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName ) override;
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmFieldHandle* objectToggleField() override;
|
2013-10-17 06:37:59 -05:00
|
|
|
|
2020-10-19 06:16:00 -05:00
|
|
|
void readAndAddWellPaths( std::vector<RimFileWellPath*>& wellPathArray, bool importGrouped );
|
2019-09-06 03:40:57 -05:00
|
|
|
void sortWellsByName();
|
2015-09-15 04:49:09 -05:00
|
|
|
|
2020-10-16 00:36:29 -05:00
|
|
|
std::vector<RimWellPathGroup*> topLevelGroups() const;
|
2020-10-20 06:46:05 -05:00
|
|
|
RimWellPathGroup* findOrCreateWellPathGroup( gsl::not_null<RimWellPath*> wellPath,
|
|
|
|
const std::vector<RimWellPath*>& wellPathsToGroupWith );
|
2020-10-07 06:53:36 -05:00
|
|
|
|
2021-01-21 05:58:46 -06:00
|
|
|
caf::AppEnum<RiaDefines::EclipseUnitSystem> findUnitSystemForWellPath( const RimWellPath* wellPath );
|
2017-06-07 04:57:25 -05:00
|
|
|
|
2020-10-06 08:00:39 -05:00
|
|
|
std::unique_ptr<RifWellPathImporter> m_wellPathImporter;
|
|
|
|
std::unique_ptr<RifWellPathFormationsImporter> m_wellPathFormationsImporter;
|
|
|
|
|
2019-11-25 05:18:39 -06:00
|
|
|
caf::PdmPointer<RimWellPath> m_mostRecentlyUpdatedWellPath;
|
|
|
|
caf::PdmChildField<RimWellMeasurementCollection*> m_wellMeasurements;
|
2020-10-06 08:00:39 -05:00
|
|
|
caf::PdmChildArrayField<RimWellPath*> m_wellPaths;
|
2013-09-10 01:47:28 -05:00
|
|
|
};
|