Skip to content

Commit

Permalink
Refactor: rename RimWellLogFile to RimWellLogLasFile
Browse files Browse the repository at this point in the history
  • Loading branch information
kriben committed Oct 2, 2023
1 parent d177491 commit 8df4dd4
Show file tree
Hide file tree
Showing 63 changed files with 353 additions and 349 deletions.
8 changes: 4 additions & 4 deletions ApplicationLibCode/Application/RiaApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
#include "RimTextAnnotationInView.h"
#include "RimViewLinker.h"
#include "RimViewLinkerCollection.h"
#include "RimWellLogFile.h"
#include "RimWellLogLasFile.h"
#include "RimWellPath.h"
#include "RimWellPathCollection.h"
#include "RimWellPathFracture.h"
Expand Down Expand Up @@ -986,8 +986,8 @@ void RiaApplication::addWellPathFormationsToModel( QList<QString> wellPathFormat
//--------------------------------------------------------------------------------------------------
/// Add a list of well log file paths (LAS files) to the well path collection
//--------------------------------------------------------------------------------------------------
std::vector<RimWellLogFile*> RiaApplication::addWellLogsToModel( const QList<QString>& wellLogFilePaths,
gsl::not_null<QStringList*> errorMessages )
std::vector<RimWellLogLasFile*> RiaApplication::addWellLogsToModel( const QList<QString>& wellLogFilePaths,
gsl::not_null<QStringList*> errorMessages )
{
if ( m_project == nullptr || m_project->oilFields.empty() ) return {};

Expand All @@ -1001,7 +1001,7 @@ std::vector<RimWellLogFile*> RiaApplication::addWellLogsToModel( const QList<QSt
m_project->updateConnectedEditors();
}

std::vector<RimWellLogFile*> wellLogFiles = oilField->wellPathCollection->addWellLogs( wellLogFilePaths, errorMessages );
std::vector<RimWellLogLasFile*> wellLogFiles = oilField->wellPathCollection->addWellLogs( wellLogFilePaths, errorMessages );

oilField->wellPathCollection->updateConnectedEditors();

Expand Down
8 changes: 4 additions & 4 deletions ApplicationLibCode/Application/RiaApplication.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class RimProject;
class RimSummaryPlot;
class Rim3dView;
class RimViewWindow;
class RimWellLogFile;
class RimWellLogLasFile;
class RimWellLogPlot;
class RimWellAllocationPlot;

Expand Down Expand Up @@ -147,9 +147,9 @@ class RiaApplication

bool openOdbCaseFromFile( const QString& fileName, bool applyTimeStepFilter = false );

std::vector<RimWellPath*> addWellPathsToModel( QList<QString> wellPathFilePaths, gsl::not_null<QStringList*> errorMessages );
void addWellPathFormationsToModel( QList<QString> wellPathFilePaths );
std::vector<RimWellLogFile*> addWellLogsToModel( const QList<QString>& wellLogFilePaths, gsl::not_null<QStringList*> errorMessages );
std::vector<RimWellPath*> addWellPathsToModel( QList<QString> wellPathFilePaths, gsl::not_null<QStringList*> errorMessages );
void addWellPathFormationsToModel( QList<QString> wellPathFilePaths );
std::vector<RimWellLogLasFile*> addWellLogsToModel( const QList<QString>& wellLogFilePaths, gsl::not_null<QStringList*> errorMessages );

QString scriptDirectories() const;
QString scriptEditorPath() const;
Expand Down
2 changes: 1 addition & 1 deletion ApplicationLibCode/Application/RiaGuiApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
#include "RimTools.h"
#include "RimViewLinker.h"
#include "RimViewLinkerCollection.h"
#include "RimWellLogFile.h"
#include "RimWellLogLasFile.h"
#include "RimWellLogPlot.h"
#include "RimWellLogPlotCollection.h"
#include "RimWellPathCollection.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "WellLogCommands/RicWellLogsImportFileFeature.h"

#include "RiaApplication.h"
#include "RimWellLogFile.h"
#include "RimWellLogLasFile.h"

#include "cafPdmFieldScriptingCapability.h"

Expand Down Expand Up @@ -100,12 +100,12 @@ caf::PdmScriptResponse RicfImportWellLogFiles::execute()

if ( !wellLogFilePaths.empty() )
{
std::vector<RimWellLogFile*> importedWellLogFiles =
std::vector<RimWellLogLasFile*> importedWellLogFiles =
RicWellLogsImportFileFeature::importWellLogFiles( wellLogFilePaths, &warningMessages );
if ( !importedWellLogFiles.empty() )
{
RicfImportWellLogFilesResult* result = new RicfImportWellLogFilesResult;
for ( RimWellLogFile* wellLogFile : importedWellLogFiles )
for ( RimWellLogLasFile* wellLogFile : importedWellLogFiles )
{
result->wellPathNames.v().push_back( wellLogFile->wellName() );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "RimMainPlotCollection.h"
#include "RimOilField.h"
#include "RimProject.h"
#include "RimWellLogFile.h"
#include "RimWellLogLasFile.h"
#include "RimWellLogPlotCollection.h"
#include "RimWellPath.h"
#include "RimWellPathCollection.h"
Expand Down Expand Up @@ -66,7 +66,7 @@ void RicCreateDepthAdjustedLasFilesFeature::onActionTriggered( bool isChecked )
{
RimCase* selectedCase = featureUi.selectedCase();
RimWellPath* sourceWell = featureUi.sourceWell();
RimWellLogFile* soureWellLogFile = featureUi.wellLogFile();
RimWellLogLasFile* soureWellLogFile = featureUi.wellLogFile();
std::vector<RimWellPath*> destinationWells = featureUi.destinationWells().ptrReferencedObjectsByType();
std::vector<QString> selectedResultProperties = featureUi.selectedResultProperties();
QString exportFolder = featureUi.exportFolder();
Expand Down Expand Up @@ -115,7 +115,7 @@ void RicCreateDepthAdjustedLasFilesFeature::setupActionLook( QAction* actionToSe
//--------------------------------------------------------------------------------------------------
void RicCreateDepthAdjustedLasFilesFeature::createDepthAdjustedWellLogFileFromEclipseCase( RimEclipseCase* eclipseCase,
RimWellPath* sourceWell,
RimWellLogFile* soureWellLogFile,
RimWellLogLasFile* soureWellLogFile,
const std::vector<RimWellPath*> destinationWells,
const std::vector<QString>& selectedResultProperties,
const QString& exportFolder )
Expand Down Expand Up @@ -144,7 +144,7 @@ void RicCreateDepthAdjustedLasFilesFeature::createDepthAdjustedWellLogFileFromEc
//--------------------------------------------------------------------------------------------------
void RicCreateDepthAdjustedLasFilesFeature::createDepthAdjustedWellLogFileFromGeoMechCase( RimGeoMechCase* geoMechCase,
RimWellPath* sourceWell,
RimWellLogFile* soureWellLogFile,
RimWellLogLasFile* soureWellLogFile,
const std::vector<RimWellPath*> destinationWells,
const std::vector<QString>& selectedResultProperties,
const QString& exportFolder )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class RimEclipseCase;
class RimGeoMechCase;
class RimWellPath;
class RimWellLogFile;
class RimWellLogLasFile;

//==================================================================================================
///
Expand All @@ -42,14 +42,14 @@ class RicCreateDepthAdjustedLasFilesFeature : public caf::CmdFeature
private:
void createDepthAdjustedWellLogFileFromEclipseCase( RimEclipseCase* eclipseCase,
RimWellPath* sourceWell,
RimWellLogFile* soureWellLogFile,
RimWellLogLasFile* soureWellLogFile,
const std::vector<RimWellPath*> destinationWells,
const std::vector<QString>& selectedResultProperties,
const QString& exportFolder );

void createDepthAdjustedWellLogFileFromGeoMechCase( RimGeoMechCase* geoMechCase,
RimWellPath* sourceWell,
RimWellLogFile* soureWellLogFile,
RimWellLogLasFile* soureWellLogFile,
const std::vector<RimWellPath*> destinationWells,
const std::vector<QString>& selectedResultProperties,
const QString& exportFolder );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "RimEclipseCase.h"
#include "RimGeoMechCase.h"
#include "RimMainPlotCollection.h"
#include "RimWellLogFile.h"
#include "RimWellLogLasFile.h"
#include "RimWellLogPlotCollection.h"
#include "RimWellPath.h"

Expand Down Expand Up @@ -114,7 +114,7 @@ LasDepthValueAndIndexPerKLayer
//--------------------------------------------------------------------------------------------------
void RicCreateDepthAdjustedLasFilesImpl::createDestinationWellsLasFiles( RimCase* selectedCase,
RimWellPath* sourceWell,
RimWellLogFile* soureWellLogFile,
RimWellLogLasFile* soureWellLogFile,
const std::vector<RimWellPath*> destinationWells,
const std::vector<QString>& selectedResultProperties,
const QString& exportFolder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class RigWellLogLasFile;
class RimCase;
class RimEclipseCase;
class RimWellPath;
class RimWellLogFile;
class RimWellLogLasFile;

//==================================================================================================
/// Object to hold Depth value and its original index in a LAS file vector categorized by K-layer.
Expand Down Expand Up @@ -65,7 +65,7 @@ cvf::ref<RigResultAccessor> createIndexKResultAccessor( RimEclipseCase* selected

void createDestinationWellsLasFiles( RimCase* selectedCase,
RimWellPath* sourceWell,
RimWellLogFile* soureWellLogFile,
RimWellLogLasFile* soureWellLogFile,
const std::vector<RimWellPath*> destinationWells,
const std::vector<QString>& selectedResultProperties,
const QString& exportFolder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#include "RimOilField.h"
#include "RimProject.h"
#include "RimTools.h"
#include "RimWellLogFile.h"
#include "RimWellLogFileChannel.h"
#include "RimWellLogLasFile.h"
#include "RimWellPath.h"
#include "RimWellPathCollection.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

class RimCase;
class RimWellPath;
class RimWellLogFile;
class RimWellLogLasFile;

//==================================================================================================
///
Expand All @@ -54,12 +54,12 @@ class RicCreateDepthAdjustedLasFilesUi : public caf::PdmObject
QString invalidSelectionsLogString() const;

public:
caf::PdmField<QString> exportFolder;
caf::PdmPtrField<RimCase*> selectedCase;
caf::PdmPtrField<RimWellPath*> sourceWell;
caf::PdmPtrField<RimWellLogFile*> wellLogFile;
caf::PdmField<std::vector<QString>> selectedResultProperties;
caf::PdmPtrArrayField<RimWellPath*> destinationWells;
caf::PdmField<QString> exportFolder;
caf::PdmPtrField<RimCase*> selectedCase;
caf::PdmPtrField<RimWellPath*> sourceWell;
caf::PdmPtrField<RimWellLogLasFile*> wellLogFile;
caf::PdmField<std::vector<QString>> selectedResultProperties;
caf::PdmPtrArrayField<RimWellPath*> destinationWells;

protected:
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "RimEnsembleWellLogsCollection.h"
#include "RimOilField.h"
#include "RimProject.h"
#include "RimWellLogFile.h"
#include "RimWellLogLasFile.h"

#include "RicRecursiveFileSearchDialog.h"
#include "WellLogCommands/RicWellLogsImportFileFeature.h"
Expand Down Expand Up @@ -85,11 +85,11 @@ RimEnsembleWellLogs*
{
if ( fileNames.isEmpty() ) return nullptr;

std::vector<RimWellLogFile*> cases;
std::vector<RimWellLogLasFile*> cases;
for ( QString fileNames : fileNames )
{
QString errorMessage;
RimWellLogFile* logFileInfo = RimWellLogFile::readWellLogFile( fileNames, &errorMessage );
QString errorMessage;
RimWellLogLasFile* logFileInfo = RimWellLogLasFile::readWellLogFile( fileNames, &errorMessage );
cases.push_back( logFileInfo );
if ( !errorMessage.isEmpty() )
{
Expand Down
14 changes: 7 additions & 7 deletions ApplicationLibCode/Commands/RicWellLogTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
#include "RimWellLogCalculatedCurve.h"
#include "RimWellLogCurveCommonDataSource.h"
#include "RimWellLogExtractionCurve.h"
#include "RimWellLogFile.h"
#include "RimWellLogFileChannel.h"
#include "RimWellLogFileCurve.h"
#include "RimWellLogLasFile.h"
#include "RimWellLogLasFileCurve.h"
#include "RimWellLogRftCurve.h"
#include "RimWellLogTrack.h"
#include "RimWellLogWbsCurve.h"
Expand Down Expand Up @@ -140,10 +140,10 @@ void RicWellLogTools::addWellLogChannelsToPlotTrack( RimWellLogTrack* plotTrack,
{
for ( size_t cIdx = 0; cIdx < wellLogFileChannels.size(); cIdx++ )
{
RimWellLogFileCurve* plotCurve = RicWellLogTools::addFileCurve( plotTrack );
RimWellLogLasFileCurve* plotCurve = RicWellLogTools::addFileCurve( plotTrack );

RimWellPath* wellPath = wellLogFileChannels[cIdx]->firstAncestorOrThisOfType<RimWellPath>();
RimWellLogFile* wellLogFile = wellLogFileChannels[cIdx]->firstAncestorOrThisOfType<RimWellLogFile>();
RimWellPath* wellPath = wellLogFileChannels[cIdx]->firstAncestorOrThisOfType<RimWellPath>();
RimWellLogLasFile* wellLogFile = wellLogFileChannels[cIdx]->firstAncestorOrThisOfType<RimWellLogLasFile>();

if ( wellPath )
{
Expand Down Expand Up @@ -406,11 +406,11 @@ RimWellLogRftCurve* RicWellLogTools::addRftCurve( RimWellLogTrack* plotTrack, co
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimWellLogFileCurve* RicWellLogTools::addFileCurve( RimWellLogTrack* plotTrack, bool showPlotWindow )
RimWellLogLasFileCurve* RicWellLogTools::addFileCurve( RimWellLogTrack* plotTrack, bool showPlotWindow )
{
CVF_ASSERT( plotTrack );

RimWellLogFileCurve* curve = new RimWellLogFileCurve();
RimWellLogLasFileCurve* curve = new RimWellLogLasFileCurve();

cvf::Color3f curveColor = RicWellLogPlotCurveFeatureImpl::curveColorFromTable( plotTrack->curveCount() );
curve->setColor( curveColor );
Expand Down
10 changes: 5 additions & 5 deletions ApplicationLibCode/Commands/RicWellLogTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Rim3dView;
class Rim3dWellLogCurveCollection;
class RimWellLogExtractionCurve;
class RimWellLogFileChannel;
class RimWellLogFileCurve;
class RimWellLogLasFileCurve;
class RimWellLogRftCurve;
class RimWellLogTrack;
class RimWellLogWbsCurve;
Expand All @@ -51,10 +51,10 @@ class RicWellLogTools
static bool hasRftDataForWell( const QString& wellName );
static bool isWellPathOrSimWellSelectedInView();
static void addWellLogChannelsToPlotTrack( RimWellLogTrack* plotTrack, const std::vector<RimWellLogFileChannel*>& wellLogFileChannels );
static RimWellPath* selectedWellPathWithLogFile();
static RimWellPath* findWellPathWithLogFileFromSelection();
static RimWellLogRftCurve* addRftCurve( RimWellLogTrack* plotTrack, const RimSimWellInView* simWell, bool showPlotWindow = true );
static RimWellLogFileCurve* addFileCurve( RimWellLogTrack* plotTrack, bool showPlotWindow = true );
static RimWellPath* selectedWellPathWithLogFile();
static RimWellPath* findWellPathWithLogFileFromSelection();
static RimWellLogRftCurve* addRftCurve( RimWellLogTrack* plotTrack, const RimSimWellInView* simWell, bool showPlotWindow = true );
static RimWellLogLasFileCurve* addFileCurve( RimWellLogTrack* plotTrack, bool showPlotWindow = true );

static RimWellLogExtractionCurve* addWellLogExtractionCurve( RimWellLogTrack* plotTrack,
RimCase* rimCase,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

#include "RimMainPlotCollection.h"
#include "RimProject.h"
#include "RimWellLogFile.h"
#include "RimWellLogFileChannel.h"
#include "RimWellLogFileCurve.h"
#include "RimWellLogLasFile.h"
#include "RimWellLogLasFileCurve.h"
#include "RimWellLogPlot.h"
#include "RimWellLogPlotCollection.h"
#include "RimWellLogTrack.h"
Expand Down Expand Up @@ -74,11 +74,11 @@ void RicAddWellLogToPlotFeature::onActionTriggered( bool isChecked )
RimWellLogFileChannel* wellLog = selection[wlIdx];

auto wellPath = wellLog->firstAncestorOrThisOfType<RimWellPath>();
auto wellLogFile = wellLog->firstAncestorOrThisOfType<RimWellLogFile>();
auto wellLogFile = wellLog->firstAncestorOrThisOfType<RimWellLogLasFile>();
if ( wellLogFile )
{
RimWellLogFileCurve* curve = new RimWellLogFileCurve;
cvf::Color3f curveColor = RicWellLogPlotCurveFeatureImpl::curveColorFromTable( plotTrack->curveCount() );
RimWellLogLasFileCurve* curve = new RimWellLogLasFileCurve;
cvf::Color3f curveColor = RicWellLogPlotCurveFeatureImpl::curveColorFromTable( plotTrack->curveCount() );
curve->setColor( curveColor );

plotTrack->addCurve( curve );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "RimWellLogCurve.h"
#include "RimWellLogCurveCommonDataSource.h"
#include "RimWellLogExtractionCurve.h"
#include "RimWellLogFileCurve.h"
#include "RimWellLogLasFileCurve.h"
#include "RimWellLogPlot.h"
#include "RimWellLogTrack.h"
#include "RimWellPath.h"
Expand Down Expand Up @@ -101,7 +101,7 @@ bool RicChangeDataSourceFeature::selectedTracksAndCurves( std::vector<RimWellLog
{
RimWellLogTrack* wellLogTrack = dynamic_cast<RimWellLogTrack*>( selectedObject );
RimWellLogExtractionCurve* wellLogExtractionCurve = dynamic_cast<RimWellLogExtractionCurve*>( selectedObject );
RimWellLogFileCurve* wellLogFileCurve = dynamic_cast<RimWellLogFileCurve*>( selectedObject );
RimWellLogLasFileCurve* wellLogFileCurve = dynamic_cast<RimWellLogLasFileCurve*>( selectedObject );
if ( wellLogTrack )
{
tracks->push_back( wellLogTrack );
Expand Down
Loading

0 comments on commit 8df4dd4

Please sign in to comment.