mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4683 clang-format on all files in ApplicationCode
This commit is contained in:
@@ -3,17 +3,17 @@
|
||||
// Copyright (C) 2011- Statoil ASA
|
||||
// Copyright (C) 2013- Ceetron Solutions AS
|
||||
// Copyright (C) 2011-2012 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>
|
||||
//
|
||||
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
||||
// for more details.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -24,17 +24,17 @@
|
||||
|
||||
#include "RimWellPathComponentInterface.h"
|
||||
|
||||
#include "cafAppEnum.h"
|
||||
#include "cafPdmChildField.h"
|
||||
#include "cafPdmField.h"
|
||||
#include "cafPdmObject.h"
|
||||
#include "cafPdmPointer.h"
|
||||
#include "cafPdmChildField.h"
|
||||
#include "cafAppEnum.h"
|
||||
|
||||
// Include to make Pdm work for cvf::Color
|
||||
#include "cafPdmFieldCvfColor.h"
|
||||
#include "cafPdmFieldCvfColor.h"
|
||||
|
||||
#include "cafPdmChildArrayField.h"
|
||||
#include "cvfObject.h"
|
||||
#include "cvfObject.h"
|
||||
|
||||
#include <functional>
|
||||
|
||||
@@ -57,8 +57,8 @@ class Rim3dWellLogCurve;
|
||||
class Rim3dWellLogCurveCollection;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
///
|
||||
///
|
||||
///
|
||||
//==================================================================================================
|
||||
class RimWellPath : public caf::PdmObject, public RimWellPathComponentInterface
|
||||
{
|
||||
@@ -67,40 +67,39 @@ class RimWellPath : public caf::PdmObject, public RimWellPathComponentInterface
|
||||
static const char SIM_WELL_NONE_UI_TEXT[];
|
||||
|
||||
public:
|
||||
|
||||
RimWellPath();
|
||||
~RimWellPath() override;
|
||||
|
||||
QString name() const;
|
||||
void setName(const QString& name);
|
||||
QString name() const;
|
||||
void setName( const QString& name );
|
||||
|
||||
const QString associatedSimulationWellName() const;
|
||||
int associatedSimulationWellBranch() const;
|
||||
bool tryAssociateWithSimulationWell();
|
||||
bool isAssociatedWithSimulationWell() const;
|
||||
const QString associatedSimulationWellName() const;
|
||||
int associatedSimulationWellBranch() const;
|
||||
bool tryAssociateWithSimulationWell();
|
||||
bool isAssociatedWithSimulationWell() const;
|
||||
|
||||
virtual void updateFilePathsFromProjectPath(const QString& newProjectPath, const QString& oldProjectPath);
|
||||
virtual void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath );
|
||||
|
||||
void setUnitSystem(RiaEclipseUnitTools::UnitSystem unitSystem);
|
||||
RiaEclipseUnitTools::UnitSystem unitSystem() const;
|
||||
void setUnitSystem( RiaEclipseUnitTools::UnitSystem unitSystem );
|
||||
RiaEclipseUnitTools::UnitSystem unitSystem() const;
|
||||
|
||||
RigWellPath* wellPathGeometry();
|
||||
const RigWellPath* wellPathGeometry() const;
|
||||
RigWellPath* wellPathGeometry();
|
||||
const RigWellPath* wellPathGeometry() const;
|
||||
|
||||
void addWellLogFile(RimWellLogFile* logFileInfo);
|
||||
void deleteWellLogFile(RimWellLogFile* logFileInfo);
|
||||
void detachWellLogFile(RimWellLogFile* logFileInfo);
|
||||
std::vector<RimWellLogFile*> wellLogFiles() const;
|
||||
RimWellLogFile* firstWellLogFileMatchingChannelName(const QString& channelName) const;
|
||||
void addWellLogFile( RimWellLogFile* logFileInfo );
|
||||
void deleteWellLogFile( RimWellLogFile* logFileInfo );
|
||||
void detachWellLogFile( RimWellLogFile* logFileInfo );
|
||||
std::vector<RimWellLogFile*> wellLogFiles() const;
|
||||
RimWellLogFile* firstWellLogFileMatchingChannelName( const QString& channelName ) const;
|
||||
|
||||
void setFormationsGeometry(cvf::ref<RigWellPathFormations> wellPathFormations);
|
||||
bool readWellPathFormationsFile(QString* errorMessage, RifWellPathFormationsImporter* wellPathFormationsImporter);
|
||||
bool reloadWellPathFormationsFile(QString* errorMessage, RifWellPathFormationsImporter* wellPathFormationsImporter);
|
||||
bool hasFormations() const;
|
||||
const RigWellPathFormations* formationsGeometry() const;
|
||||
void setFormationsGeometry( cvf::ref<RigWellPathFormations> wellPathFormations );
|
||||
bool readWellPathFormationsFile( QString* errorMessage, RifWellPathFormationsImporter* wellPathFormationsImporter );
|
||||
bool reloadWellPathFormationsFile( QString* errorMessage, RifWellPathFormationsImporter* wellPathFormationsImporter );
|
||||
bool hasFormations() const;
|
||||
const RigWellPathFormations* formationsGeometry() const;
|
||||
|
||||
void add3dWellLogCurve(Rim3dWellLogCurve* rim3dWellLogCurve);
|
||||
Rim3dWellLogCurveCollection* rim3dWellLogCurveCollection() const;
|
||||
void add3dWellLogCurve( Rim3dWellLogCurve* rim3dWellLogCurve );
|
||||
Rim3dWellLogCurveCollection* rim3dWellLogCurveCollection() const;
|
||||
|
||||
const RimWellPathCompletions* completions() const;
|
||||
RimFishbonesCollection* fishbonesCollection();
|
||||
@@ -112,75 +111,75 @@ public:
|
||||
RimWellPathAttributeCollection* attributeCollection();
|
||||
const RimWellPathAttributeCollection* attributeCollection() const;
|
||||
|
||||
bool showWellPathLabel() const;
|
||||
bool showWellPath() const;
|
||||
bool showWellPathLabel() const;
|
||||
bool showWellPath() const;
|
||||
|
||||
cvf::Color3f wellPathColor() const;
|
||||
void setWellPathColor(const cvf::Color3f& color );
|
||||
cvf::Color3f wellPathColor() const;
|
||||
void setWellPathColor( const cvf::Color3f& color );
|
||||
|
||||
double combinedScaleFactor() const;
|
||||
double wellPathRadius(double characteristicCellSize) const;
|
||||
double wellPathRadiusScaleFactor() const;
|
||||
|
||||
double combinedScaleFactor() const;
|
||||
double wellPathRadius( double characteristicCellSize ) const;
|
||||
double wellPathRadiusScaleFactor() const;
|
||||
|
||||
// RimWellPathComponentInterface overrides
|
||||
bool isEnabled() const override;
|
||||
RiaDefines::WellPathComponentType componentType() const override;
|
||||
QString componentLabel() const override;
|
||||
QString componentTypeLabel() const override;
|
||||
cvf::Color3f defaultComponentColor() const override;
|
||||
double startMD() const override;
|
||||
double endMD() const override;
|
||||
bool isEnabled() const override;
|
||||
RiaDefines::WellPathComponentType componentType() const override;
|
||||
QString componentLabel() const override;
|
||||
QString componentTypeLabel() const override;
|
||||
cvf::Color3f defaultComponentColor() const override;
|
||||
double startMD() const override;
|
||||
double endMD() const override;
|
||||
|
||||
protected:
|
||||
|
||||
// Override PdmObject
|
||||
|
||||
caf::PdmFieldHandle* userDescriptionField() override;
|
||||
caf::PdmFieldHandle* objectToggleField() override;
|
||||
caf::PdmFieldHandle* userDescriptionField() override;
|
||||
caf::PdmFieldHandle* objectToggleField() override;
|
||||
|
||||
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
||||
QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool * useOptionsOnly) override;
|
||||
void initAfterRead() override;
|
||||
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
||||
void defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName) override;
|
||||
void fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
||||
const QVariant& oldValue,
|
||||
const QVariant& newValue ) override;
|
||||
QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions,
|
||||
bool* useOptionsOnly ) override;
|
||||
void initAfterRead() override;
|
||||
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
||||
void defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName ) override;
|
||||
|
||||
void setWellPathGeometry(RigWellPath* wellPathModel);
|
||||
void setWellPathGeometry( RigWellPath* wellPathModel );
|
||||
|
||||
// Fields
|
||||
protected:
|
||||
caf::PdmField<double> m_datumElevation;
|
||||
caf::PdmField<QString> m_name;
|
||||
caf::PdmField<double> m_datumElevation;
|
||||
caf::PdmField<QString> m_name;
|
||||
|
||||
private:
|
||||
caf::PdmField<QString> m_simWellName;
|
||||
caf::PdmField<int> m_branchIndex;
|
||||
caf::PdmField<QString> m_simWellName;
|
||||
caf::PdmField<int> m_branchIndex;
|
||||
|
||||
caf::PdmField<RiaEclipseUnitTools::UnitSystemType> m_unitSystem;
|
||||
|
||||
caf::PdmField<QString> m_wellPathFormationFilePath;
|
||||
caf::PdmField<QString> m_formationKeyInFile;
|
||||
|
||||
caf::PdmField<bool> m_showWellPath;
|
||||
caf::PdmField<bool> m_showWellPathLabel;
|
||||
|
||||
caf::PdmField<double> m_wellPathRadiusScaleFactor;
|
||||
caf::PdmField<cvf::Color3f> m_wellPathColor;
|
||||
|
||||
|
||||
caf::PdmField<QString> m_wellPathFormationFilePath;
|
||||
caf::PdmField<QString> m_formationKeyInFile;
|
||||
|
||||
caf::PdmField<bool> m_showWellPath;
|
||||
caf::PdmField<bool> m_showWellPathLabel;
|
||||
|
||||
caf::PdmField<double> m_wellPathRadiusScaleFactor;
|
||||
caf::PdmField<cvf::Color3f> m_wellPathColor;
|
||||
|
||||
caf::PdmChildArrayField<RimWellLogFile*> m_wellLogFiles;
|
||||
caf::PdmChildField<Rim3dWellLogCurveCollection*> m_3dWellLogCurves;
|
||||
caf::PdmChildField<RimWellPathCompletions*> m_completions;
|
||||
caf::PdmChildField<RimWellPathAttributeCollection*> m_wellPathAttributes;
|
||||
|
||||
private:
|
||||
|
||||
static size_t simulationWellBranchCount(const QString& simWellName);
|
||||
static size_t simulationWellBranchCount( const QString& simWellName );
|
||||
|
||||
private:
|
||||
// Geometry and data
|
||||
|
||||
cvf::ref<RigWellPath> m_wellPath;
|
||||
cvf::ref<RigWellPathFormations> m_wellPathFormations;
|
||||
cvf::ref<RigWellPath> m_wellPath;
|
||||
cvf::ref<RigWellPathFormations> m_wellPathFormations;
|
||||
|
||||
// Obsolete fields
|
||||
|
||||
|
||||
Reference in New Issue
Block a user