mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
commit
60153b20ec
@ -0,0 +1,121 @@
|
||||
|
||||
|
||||
Nothing to do
|
||||
-------------
|
||||
unchanged ApplicationCode\Commands\HoloLensCommands\farmhash\farmhash.cc 1948 style unusedFunction false The function 'Hash128WithSeed' is never used.
|
||||
unchanged ApplicationCode\ReservoirDataModel\cvfGeometryTools.cpp 614 style unusedFunction false The function 'addMidEdgeNodes' is never used.
|
||||
unchanged ApplicationCode\WellPathImportSsihub\RiuWellImportWizard.cpp 147 style unusedFunction false The function 'cancelDownload' is never used.
|
||||
unchanged ApplicationCode\GeoMech\GeoMechDataModel\RigFemPartGrid.cpp 453 style unusedFunction false The function 'cellIJKFromCoordinate' is never used.
|
||||
unchanged ApplicationCode\GeoMech\GeoMechDataModel\RigFemPartGrid.cpp 486 style unusedFunction false The function 'cellMinMaxCordinates' is never used.
|
||||
unchanged ApplicationCode\UserInterface\RiuWellLogPlot.cpp 527 style unusedFunction false The function 'changeEvent' is never used.
|
||||
unchanged ApplicationCode\Commands\AnnotationCommands\RicTextAnnotation3dEditor.cpp 133 style unusedFunction false The function 'cleanupBeforeSettingPdmObject' is never used.
|
||||
unchanged ApplicationCode\Commands\AnnotationCommands\RicTextAnnotation3dEditor.cpp 73 style unusedFunction false The function 'configureAndUpdateUi' is never used.
|
||||
|
||||
WIP
|
||||
---
|
||||
unchanged ApplicationCode\UserInterface\RiuGridCrossQwtPlot.cpp 359 style unusedFunction false The function 'contextMenuEvent' is never used.
|
||||
unchanged ApplicationCode\Commands\HoloLensCommands\VdeCachingHashedIdFactory.cpp 233 style unusedFunction false The function 'crc' is never used.
|
||||
unchanged ApplicationCode\Application\Tools\RiaColorTables.cpp 580 style unusedFunction false The function 'createBrightnessBasedColorTable' is never used.
|
||||
unchanged ApplicationCode\GeoMech\GeoMechVisualization\RivFemPartGeometryGenerator.cpp 106 style unusedFunction false The function 'createOutlineMeshDrawable' is never used.
|
||||
unchanged ApplicationCode\ModelVisualization\RivWellConnectionFactorGeometryGenerator.cpp 202 style unusedFunction false The function 'createStarGeometry' is never used.
|
||||
unchanged ApplicationCode\Commands\SummaryPlotCommands\RicSummaryCurveCalculatorEditor.cpp 119 style unusedFunction false The function 'createWidget' is never used.
|
||||
unchanged ApplicationCode\Commands\HoloLensCommands\VdeVizDataExtractor.cpp 397 style unusedFunction false The function 'debugComparePackets' is never used.
|
||||
unchanged ApplicationCode\Application\RiaApplication.cpp 2355 style unusedFunction false The function 'defaultAnnotationFont' is never used.
|
||||
unchanged ApplicationCode\Commands\FractureCommands\RicCreateMultipleFracturesUi.cpp 201 style unusedFunction false The function 'defineCustomContextMenu' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\Annotations\RimUserDefinedPolylinesAnnotation.cpp 271 style unusedFunction false The function 'defineObjectEditorAttribute' is never used.
|
||||
unchanged ApplicationCode\GeoMech\GeoMechDataModel\RigFemPartResultsCollection.cpp 2267 style unusedFunction false The function 'deleteResultFrame' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\RimEclipseResultDefinition.cpp 944 style unusedFunction false The function 'diffResultUiShortNameHTML' is never used.
|
||||
unchanged ApplicationCode\UserInterface\RiuDragDrop.cpp 254 style unusedFunction false The function 'dropMimeData' is never used.
|
||||
unchanged ApplicationCode\FileInterface\RifEclipseSummaryTools.cpp 123 style unusedFunction false The function 'dumpMetaData' is never used.
|
||||
unchanged ApplicationCode\FileInterface\RifJsonEncodeDecode.cpp 45 style unusedFunction false The function 'dumpToFile' is never used.
|
||||
unchanged ApplicationCode\GeoMech\OdbReader\RifOdbReader.cpp 551 style unusedFunction false The function 'elementSet' is never used.
|
||||
unchanged ApplicationCode\Application\RiaEclipseFileNameTools.cpp 73 style unusedFunction false The function 'findRelatedDataFile' is never used.
|
||||
unchanged ApplicationCode\Commands\HoloLensCommands\VdeArrayDataPacket.cpp 221 style unusedFunction false The function 'fromRawPacketBuffer' is never used.
|
||||
unchanged ApplicationCode\GeoMech\GeoMechDataModel\RigFemPartGrid.cpp 503 style unusedFunction false The function 'gridPointCoordinate' is never used.
|
||||
unchanged ApplicationCode\GeoMech\GeoMechDataModel\RigFemPartGrid.cpp 362 style unusedFunction false The function 'gridPointCountI' is never used.
|
||||
unchanged ApplicationCode\GeoMech\GeoMechDataModel\RigFemPartGrid.cpp 371 style unusedFunction false The function 'gridPointCountJ' is never used.
|
||||
unchanged ApplicationCode\GeoMech\GeoMechDataModel\RigFemPartGrid.cpp 494 style unusedFunction false The function 'gridPointIndexFromIJK' is never used.
|
||||
unchanged ApplicationCode\UserInterface\RiuCadNavigation.cpp 49 style unusedFunction false The function 'handleInputEvent' is never used.
|
||||
unchanged ApplicationCode\Commands\Ric3dViewPickEventHandler.cpp 42 style unusedFunction false The function 'handlePickEvent' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\RimMimeData.cpp 56 style unusedFunction false The function 'hasFormat' is never used.
|
||||
unchanged ApplicationCode\Commands\HoloLensCommands\VdeArrayDataPacket.cpp 173 style unusedFunction false The function 'imageComponentCount' is never used.
|
||||
unchanged ApplicationCode\Application\Tools\RiaImageFileCompare.cpp 126 style unusedFunction false The function 'imagesEqual' is never used.
|
||||
unchanged ApplicationCode\WellPathImportSsihub\RiuWellImportWizard.cpp 760 style unusedFunction false The function 'initializePage' is never used.
|
||||
unchanged ApplicationCode\UserInterface\RiuViewer.cpp 860 style unusedFunction false The function 'leaveEvent' is never used.
|
||||
unchanged ApplicationCode\GeoMech\GeoMechDataModel\RigFemPartGrid.cpp 405 style unusedFunction false The function 'maxCoordinate' is never used.
|
||||
unchanged ApplicationCode\UserInterface\RiuDragDrop.cpp 332 style unusedFunction false The function 'mimeTypes' is never used.
|
||||
unchanged ApplicationCode\GeoMech\GeoMechDataModel\RigFemPartGrid.cpp 396 style unusedFunction false The function 'minCoordinate' is never used.
|
||||
unchanged ApplicationCode\UserInterface\RiuFlowCharacteristicsPlot.cpp 271 style unusedFunction false The function 'minimumSizeHint' is never used.
|
||||
unchanged ApplicationCode\UserInterface\RiuViewer.cpp 539 style unusedFunction false The function 'mousePressEvent' is never used.
|
||||
unchanged ApplicationCode\UserInterface\RiuViewer.cpp 236 style unusedFunction false The function 'mouseReleaseEvent' is never used.
|
||||
unchanged ApplicationCode\Commands\AnnotationCommands\RicCreateReachCircleAnnotationFeature.cpp 59 style unusedFunction false The function 'onActionTriggered' is never used.
|
||||
unchanged ApplicationCode\UserInterface\RiuDragDrop.cpp 342 style unusedFunction false The function 'onDragCanceled' is never used.
|
||||
unchanged ApplicationCode\Commands\SummaryPlotCommands\RicSummaryCurveCalculator.cpp 276 style unusedFunction false The function 'onEditorWidgetsCreated' is never used.
|
||||
unchanged ApplicationCode\UserInterface\RiuDragDrop.cpp 565 style unusedFunction false The function 'onProposedDropActionUpdated' is never used.
|
||||
unchanged ApplicationCode\UserInterface\RiuMultiCaseImportDialog.cpp 105 style unusedFunction false The function 'on_m_addSearchFolderButton_clicked' is never used.
|
||||
unchanged ApplicationCode\UserInterface\RiuMultiCaseImportDialog.cpp 247 style unusedFunction false The function 'on_m_removeEclipseCaseButton_clicked' is never used.
|
||||
unchanged ApplicationCode\UserInterface\RiuMultiCaseImportDialog.cpp 129 style unusedFunction false The function 'on_m_removeSearchFolderButton_clicked' is never used.
|
||||
unchanged ApplicationCode\UserInterface\RiuViewer.cpp 345 style unusedFunction false The function 'paintOverlayItems' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\RimProject.cpp 1066 style unusedFunction false The function 'polylineAnnotations' is never used.
|
||||
unchanged ApplicationCode\Application\RiaApplication.cpp 326 style unusedFunction false The function 'processNonGuiEvents' is never used.
|
||||
unchanged ApplicationCode\Commands\SummaryPlotCommands\RicSummaryCurveCalculatorEditor.cpp 65 style unusedFunction false The function 'recursivelyConfigureAndUpdateTopLevelUiOrdering' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\RimEclipseResultDefinition.cpp 755 style unusedFunction false The function 'setFromEclipseResultAddress' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\Completions\RimWellPathAicdParameters.cpp 189 style unusedFunction false The function 'setUnitLabels' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\Flow\RimWellPltPlot.cpp 1067 style unusedFunction false The function 'setupBeforeSave' is never used.
|
||||
unchanged ApplicationCode\UserInterface\RiuWellLogPlot.cpp 519 style unusedFunction false The function 'showEvent' is never used.
|
||||
unchanged ApplicationCode\ReservoirDataModel\RigSimulationWellCenterLineCalculator.cpp 1064 style unusedFunction false The function 'splitIntoBranches' is never used.
|
||||
unchanged ApplicationCode\UserInterface\RiuDragDrop.cpp 126 style unusedFunction false The function 'supportedDropActions' is never used.
|
||||
unchanged ApplicationCode\ReservoirDataModel\RigFlowDiagResultAddress.cpp 67 style unusedFunction false The function 'uiShortText' is never used.
|
||||
unchanged ApplicationCode\Commands\CrossSectionCommands\RicAppendIntersectionFeature.cpp 121 style unusedFunction false The function 'undo' is never used.
|
||||
unchanged ApplicationCode\ModelVisualization\RivCellEdgeEffectGenerator.cpp 281 style unusedFunction false The function 'updateForFixedFunctionRendering' is never used.
|
||||
unchanged ApplicationCode\ModelVisualization\RivCellEdgeEffectGenerator.cpp 135 style unusedFunction false The function 'updateForShaderBasedRendering' is never used.
|
||||
unchanged ApplicationCode\UnitTests\ListKeywordsForObjectsAndFields-Test.cpp 16 style unusedFunction false The function 'writeTextToFile' is never used.
|
||||
unchanged ApplicationCode\Commands\HoloLensCommands\RicHoloLensSessionManager.h 47 style unusedPrivateFunction false Unused private function: 'RicHoloLensSessionManager::handleSessionNotification'
|
||||
unchanged ApplicationCode\Commands\HoloLensCommands\VdeVizDataExtractor.h 106 style unusedPrivateFunction false Unused private function: 'VdeVizDataExtractor::debugComparePackets'
|
||||
unchanged ApplicationCode\FileInterface\RifCaseRealizationParametersReader.h 101 style unusedPrivateFunction false Unused private function: 'RifCaseRealizationRunspecificationReader::closeDataStream'
|
||||
unchanged ApplicationCode\ReservoirDataModel\RigSimulationWellCenterLineCalculator.h 52 style unusedPrivateFunction false Unused private function: 'RigSimulationWellCenterLineCalculator::splitIntoBranches'
|
||||
|
||||
|
||||
Candidate for later use
|
||||
-----------------------
|
||||
|
||||
Issue on GitHub
|
||||
----
|
||||
|
||||
Must be changed
|
||||
----------------
|
||||
|
||||
Deleted
|
||||
-------
|
||||
unchanged ApplicationCode\FileInterface\RifEclipseDataTableFormatter.cpp 278 style unusedFunction false The function 'addValueTable' is never used.
|
||||
unchanged ApplicationCode\ReservoirDataModel\Completions\RigEclipseToStimPlanCellTransmissibilityCalculator.cpp 109 style unusedFunction false The function 'aggregatedMatrixTransmissibility' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\Annotations\RimAnnotationInViewCollection.cpp 231 style unusedFunction false The function 'annotationsCount' is never used.
|
||||
unchanged ApplicationCode\Commands\ExportCommands\RicExportLgrFeature.cpp 848 style unusedFunction false The function 'appendIntersectedCells' is never used.
|
||||
unchanged ApplicationCode\Application\Tools\RiaQIconTools.cpp 26 style unusedFunction false The function 'appendPixmapUpperLeft' is never used.
|
||||
unchanged ApplicationCode\ReservoirDataModel\RigEclipseResultBinSorter.cpp 48 style unusedFunction false The function 'binRange' is never used.
|
||||
unchanged ApplicationCode\Commands\ExportCommands\RicExportLgrFeature.cpp 684 style unusedFunction false The function 'cellsIntersectingCompletion' is never used.
|
||||
unchanged ApplicationCode\Commands\ExportCommands\RicExportLgrFeature.cpp 702 style unusedFunction false The function 'createOrderedIntersectionList' is never used.
|
||||
unchanged ApplicationCode\Commands\ExportCommands\RicExportLgrFeature.cpp 1129 style unusedFunction false The function 'resetNumbering' is never used.
|
||||
unchanged ApplicationCode\Commands\RicCreateTemporaryLgrFeature.cpp 350 style unusedFunction false The function 'containsAnyNonMainGridCells' is never used.
|
||||
unchanged ApplicationCode\Application\Tools\RiaColorTools.cpp 147 style unusedFunction false The function 'contrastRatio' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\Completions\RimPerforationInterval.cpp 105 style unusedFunction false The function 'enableCustomEndDate' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\Rim3dView.cpp 1099 style unusedFunction false The function 'enablePerspectiveProjectionField' is never used.
|
||||
unchanged ApplicationCode\ReservoirDataModel\RigMainGrid.cpp 166 style unusedFunction false The function 'findAllReservoirCellIndicesMatching2dPoint' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\GridCrossPlots\RimGridCrossPlotDataSet.cpp 400 style unusedFunction false The function 'groupStrings' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\RimContourMapProjection.cpp 354 style unusedFunction false The function 'hasResultAtVertex' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\RimContourMapProjection.cpp 1417 style unusedFunction false The function 'isSummationResult' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\RimContourMapProjection.cpp 223 style unusedFunction false The function 'resultAggregation' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\RimContourMapProjection.cpp 255 style unusedFunction false The function 'showContourLabels' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\Annotations\RimUserDefinedPolylinesAnnotation.cpp 42 style unusedFunction false The function 'xydToXyzVector' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\Completions\RimSimWellFracture.cpp 117 style unusedFunction false The function 'wellDipAtFracturePosition' is never used.
|
||||
unchanged ApplicationCode\ReservoirDataModel\RigLocalGrid.cpp 65 style unusedFunction false The function 'setPositionInParentGrid' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\Annotations\RimPolylinesAnnotationInView.cpp 66 style unusedFunction false The function 'setSourceAnnotation' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\Annotations\RimAnnotationTextAppearance.cpp 75 style unusedFunction false The function 'setAnchorLineColor' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\Annotations\RimAnnotationTextAppearance.cpp 59 style unusedFunction false The function 'setFontColor' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\RimScaleLegendConfig.cpp 447 style unusedFunction false The function 'setCurrentScale' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\Rim3dOverlayInfoConfig.cpp 278 style unusedFunction false The function 'setIsActive' is never used.
|
||||
unchanged ApplicationCode\FileInterface\RifEclipseDataTableFormatter.cpp 137 style unusedFunction false The function 'setMaxDataRowWidth' is never used.
|
||||
unchanged ApplicationCode\ProjectDataModel\RimRegularLegendConfig.cpp 737 style unusedFunction false The function 'setShowLegend' is never used.
|
||||
|
||||
Backlog
|
||||
-------
|
@ -540,7 +540,7 @@ QString RiaDefines::defaultDirectoryLabel(RiaDefines::ImportFileType fileType)
|
||||
{
|
||||
defaultDirLabel = "GENERAL_DATA";
|
||||
}
|
||||
else if (fileType & (ECLIPSE_GRID_FILE | fileType & ECLIPSE_EGRID_FILE))
|
||||
else if (fileType & ECLIPSE_RESULT_GRID)
|
||||
{
|
||||
defaultDirLabel = "BINARY_GRID";
|
||||
}
|
||||
|
@ -36,7 +36,6 @@ ${CMAKE_CURRENT_LIST_DIR}/RiaWeightedGeometricMeanCalculator.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RiaWeightedHarmonicMeanCalculator.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RiaOptionItemFactory.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RiaGitDiff.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RiaQIconTools.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RiaCellDividingTools.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RiaFieldHandleTools.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RiaBoundingBoxTools.h
|
||||
@ -76,7 +75,6 @@ ${CMAKE_CURRENT_LIST_DIR}/RiaWeightedGeometricMeanCalculator.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RiaWeightedHarmonicMeanCalculator.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RiaOptionItemFactory.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RiaGitDiff.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RiaQIconTools.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RiaCellDividingTools.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RiaFieldHandleTools.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RiaBoundingBoxTools.cpp
|
||||
|
@ -141,20 +141,6 @@ cvf::Color3f RiaColorTools::fromQColorTo3f(QColor color)
|
||||
return cvf::Color3f(color.redF(), color.greenF(), color.blueF());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
float RiaColorTools::contrastRatio(cvf::Color3f color1, cvf::Color3f color2)
|
||||
{
|
||||
float L1 = relativeLuminance(color1);
|
||||
float L2 = relativeLuminance(color2);
|
||||
|
||||
float Lmin = std::min(L1, L2);
|
||||
float Lmax = std::max(L1, L2);
|
||||
|
||||
return (Lmax + 0.05) / (Lmin + 0.05);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -42,7 +42,7 @@ public:
|
||||
static QColor toQColor(cvf::Color3f color, float alpha = 1.0f);
|
||||
static QColor toQColor(cvf::Color4f color);
|
||||
static cvf::Color3f fromQColorTo3f(QColor);
|
||||
static float contrastRatio(cvf::Color3f color1, cvf::Color3f color2);
|
||||
|
||||
private:
|
||||
static float relativeLuminance(cvf::Color3f backgroundColor);
|
||||
static float calculateNonLinearColorValue(float colorFraction);
|
||||
|
@ -1,44 +0,0 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2018 Equinor ASA
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RiaQIconTools.h"
|
||||
|
||||
#include <QPainter>
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QPixmap RiaQIconTools::appendPixmapUpperLeft(const QPixmap& pixmap, const QPixmap& overlayPixmap)
|
||||
{
|
||||
QPixmap scaledPixmap;
|
||||
{
|
||||
QSize size = pixmap.size() - pixmap.size() / 4;
|
||||
|
||||
scaledPixmap = overlayPixmap.scaled(size);
|
||||
}
|
||||
|
||||
QPixmap combinedPixmap(pixmap);
|
||||
QPainter painter(&combinedPixmap);
|
||||
|
||||
int x = 0;
|
||||
int y = -4;
|
||||
|
||||
painter.drawPixmap(x, y, scaledPixmap);
|
||||
|
||||
return combinedPixmap;
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2018 Equinor ASA
|
||||
//
|
||||
// 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
|
||||
|
||||
#include <QIcon>
|
||||
|
||||
//==================================================================================================
|
||||
//
|
||||
//
|
||||
//
|
||||
//==================================================================================================
|
||||
class RiaQIconTools
|
||||
{
|
||||
public:
|
||||
static QPixmap appendPixmapUpperLeft(const QPixmap& pixmap, const QPixmap& overlayPixmap);
|
||||
};
|
@ -211,7 +211,6 @@ void RiaSCurveCalculator::initializeByFinding_q1q2(cvf::Vec3d p1, double azi1, d
|
||||
|
||||
const int maxIterations = 40;
|
||||
const double maxError = 0.01;
|
||||
const double closeError = 40*maxError;
|
||||
const double maxStepSize = 1.0e9;
|
||||
const double maxLengthToQ = 1.0e10;
|
||||
bool enableBackstepping = false;
|
||||
|
@ -116,7 +116,6 @@ public:
|
||||
LgrNameFactory();
|
||||
QString newName(RigCompletionData::CompletionType completionType);
|
||||
QString newName(const QString& baseName, int number);
|
||||
void resetNumbering();
|
||||
|
||||
private:
|
||||
std::map<RigCompletionData::CompletionType, std::pair<QString, int>> m_counters;
|
||||
@ -678,189 +677,6 @@ RicExportLgrFeature::cellsIntersectingCompletions(RimEclipseCase* eclipseCase,
|
||||
return cells;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RigCompletionDataGridCell> cellsIntersectingCompletion(const std::map<RigCompletionDataGridCell, std::vector<RigCompletionData>>& allCells,
|
||||
caf::PdmObject* sourcePdmObject)
|
||||
{
|
||||
std::vector<RigCompletionDataGridCell> cells;
|
||||
for (const auto& intInfo : allCells)
|
||||
{
|
||||
for (const auto& completion : intInfo.second)
|
||||
{
|
||||
if (completion.sourcePdmObject() == sourcePdmObject) cells.push_back(intInfo.first);
|
||||
}
|
||||
}
|
||||
return cells;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<std::pair<RigCompletionDataGridCell, std::vector<RigCompletionData>>>
|
||||
createOrderedIntersectionList(const std::vector<WellPathCellIntersectionInfo>& allWellPathCells,
|
||||
const std::map<RigCompletionDataGridCell, std::vector<RigCompletionData>>& completionCells)
|
||||
{
|
||||
// All cell indices intersecting a completion and lookup into map
|
||||
std::set<size_t> complCellIndices;
|
||||
std::map<size_t, RigCompletionDataGridCell> complCellLookup;
|
||||
std::set<CellInfo> cellsOnWellPath;
|
||||
std::vector<std::pair<bool, CellInfo>> cellsNotOnWellPath;
|
||||
{
|
||||
for (const auto& complCell : completionCells)
|
||||
{
|
||||
complCellIndices.insert(complCell.first.globalCellIndex());
|
||||
complCellLookup.insert({complCell.first.globalCellIndex(), complCell.first});
|
||||
|
||||
bool cellFoundOnWellPath = false;
|
||||
for (const auto& wellPathCell : allWellPathCells)
|
||||
{
|
||||
if (complCell.first.globalCellIndex() == wellPathCell.globCellIndex)
|
||||
{
|
||||
cellsOnWellPath.insert(CellInfo(complCell.first.globalCellIndex(), wellPathCell.startMD, wellPathCell.endMD));
|
||||
cellFoundOnWellPath = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!cellFoundOnWellPath)
|
||||
{
|
||||
cellsNotOnWellPath.emplace_back( true, CellInfo(complCell.first.globalCellIndex()) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::set<size_t> cellsTaken;
|
||||
std::vector<std::pair<RigCompletionDataGridCell, std::vector<RigCompletionData>>> result;
|
||||
|
||||
// Walk along well path
|
||||
for (const auto& cellOnWellPath : cellsOnWellPath)
|
||||
{
|
||||
// Add cell on well path first
|
||||
auto complDataGridCell = complCellLookup.at(cellOnWellPath.globCellIndex);
|
||||
auto complDataList = completionCells.at(complDataGridCell);
|
||||
result.emplace_back(complDataGridCell, complDataList);
|
||||
|
||||
// Check intersected completions in current cell
|
||||
RigCompletionData::CompletionType complTypes[] = { RigCompletionData::FRACTURE, RigCompletionData::FISHBONES, RigCompletionData::PERFORATION };
|
||||
|
||||
for (auto complType : complTypes)
|
||||
{
|
||||
const caf::PdmObject* completion = nullptr;
|
||||
for (const auto& complData : complDataList)
|
||||
{
|
||||
if (complData.completionType() == complType)
|
||||
{
|
||||
completion = complData.sourcePdmObject();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (completion)
|
||||
{
|
||||
// Add all cells intersecting this completion
|
||||
for (auto& cellNotOnWellPath : cellsNotOnWellPath)
|
||||
{
|
||||
if (!cellNotOnWellPath.first) continue;
|
||||
|
||||
auto complDataList2 = completionCells.at(complCellLookup.at(cellNotOnWellPath.second.globCellIndex));
|
||||
auto itr = std::find_if(complDataList2.begin(), complDataList2.end(),
|
||||
[&completion](const RigCompletionData& cd) { return cd.sourcePdmObject() == completion; });
|
||||
|
||||
if (itr != complDataList2.end())
|
||||
{
|
||||
result.emplace_back( complCellLookup.at(cellNotOnWellPath.second.globCellIndex), complDataList2);
|
||||
cellNotOnWellPath.first = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
//std::map<CompletionInfo, std::vector<RigCompletionDataGridCell>>
|
||||
// RicExportLgrFeature::cellsIntersectingCompletions_PerCompletion_old(RimEclipseCase* eclipseCase,
|
||||
// const RimWellPath* wellPath,
|
||||
// size_t timeStep,
|
||||
// const std::set<RigCompletionData::CompletionType>& completionTypes,
|
||||
// bool* isIntersectingOtherLgrs)
|
||||
//{
|
||||
// std::map<CompletionInfo, std::vector<RigCompletionDataGridCell>> completionToCells;
|
||||
//
|
||||
// *isIntersectingOtherLgrs = false;
|
||||
//
|
||||
// auto wellPathGeometry = wellPath->wellPathGeometry();
|
||||
// auto completions = eclipseCase->computeAndGetVirtualPerforationTransmissibilities();
|
||||
// if (wellPathGeometry && completions)
|
||||
// {
|
||||
// const auto& intCells = completions->multipleCompletionsPerEclipseCell(wellPath, timeStep);
|
||||
// CompletionInfo lastCompletionInfo;
|
||||
//
|
||||
// auto wpIntCells = RigWellPathIntersectionTools::findCellIntersectionInfosAlongPath(eclipseCase->eclipseCaseData(),
|
||||
// wellPathGeometry->wellPathPoints(),
|
||||
// wellPathGeometry->measureDepths());
|
||||
//
|
||||
// auto wpComplCells = createOrderedIntersectionList(wpIntCells, intCells);
|
||||
//
|
||||
// // This loop assumes that cells are ordered downwards along well path
|
||||
// for (auto intCell : wpComplCells)
|
||||
// {
|
||||
// if (!intCell.first.isMainGridCell())
|
||||
// {
|
||||
// *isIntersectingOtherLgrs = true;
|
||||
// continue;
|
||||
// }
|
||||
//
|
||||
// auto filteredCompletions = filterCompletionsOnType(intCell.second, completionTypes);
|
||||
// if (filteredCompletions.empty()) continue;
|
||||
//
|
||||
// auto completion = findCompletionByPriority(filteredCompletions);
|
||||
//
|
||||
// QString name = completionName(completion.sourcePdmObject());
|
||||
// CompletionInfo completionInfo(completion.completionType(), name, 0);
|
||||
//
|
||||
// if (!lastCompletionInfo.isValid()) lastCompletionInfo = completionInfo;
|
||||
//
|
||||
// if (completionInfo != lastCompletionInfo && completionToCells.count(completionInfo) > 0)
|
||||
// {
|
||||
// completionInfo.number++;
|
||||
// }
|
||||
// completionToCells[completionInfo].push_back(intCell.first);
|
||||
// lastCompletionInfo = completionInfo;
|
||||
// }
|
||||
// }
|
||||
// return completionToCells;
|
||||
//}
|
||||
|
||||
|
||||
template<typename T>
|
||||
void appendVector(std::vector<T>& dest, const std::vector<T>& append)
|
||||
{
|
||||
dest.insert(dest.end(), append.begin(), append.end());
|
||||
}
|
||||
|
||||
void appendIntersectedCells(std::map<RigCompletionDataGridCell, std::vector<RigCompletionData>>& dest,
|
||||
const std::map<RigCompletionDataGridCell, std::vector<RigCompletionData>>& append)
|
||||
{
|
||||
for (auto& intCell : append)
|
||||
{
|
||||
if (dest.count(intCell.first) == 0)
|
||||
{
|
||||
dest.insert(intCell);
|
||||
}
|
||||
else
|
||||
{
|
||||
appendVector(dest[intCell.first], intCell.second);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -1123,13 +939,3 @@ QString LgrNameFactory::newName(const QString& baseName, int number)
|
||||
return lgrName.replace(" ", "_");
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void LgrNameFactory::resetNumbering()
|
||||
{
|
||||
for (auto& counter : m_counters)
|
||||
{
|
||||
counter.second.second = 1;
|
||||
}
|
||||
}
|
||||
|
@ -213,12 +213,6 @@ private:
|
||||
size_t timeStep,
|
||||
const std::set<RigCompletionData::CompletionType>& completionTypes,
|
||||
bool* isIntersectingOtherLgrs);
|
||||
//static std::map<CompletionInfo, std::vector<RigCompletionDataGridCell>>
|
||||
// cellsIntersectingCompletions_PerCompletion_old(RimEclipseCase* eclipseCase,
|
||||
// const RimWellPath* wellPath,
|
||||
// size_t timeStep,
|
||||
// const std::set<RigCompletionData::CompletionType>& completionTypes,
|
||||
// bool* isIntersectingOtherLgrs);
|
||||
|
||||
static std::map<CompletionInfo, std::vector<RigCompletionDataGridCell>>
|
||||
cellsIntersectingCompletions_PerCompletion(RimEclipseCase* eclipseCase,
|
||||
|
@ -109,7 +109,7 @@ void RicCreateMultipleFracturesOptionItemUi::fieldChangedByUi(const caf::PdmFiel
|
||||
{
|
||||
if (m_topKOneBased > m_baseKOneBased) m_baseKOneBased = m_topKOneBased;
|
||||
}
|
||||
else if (changedField = &m_baseKOneBased)
|
||||
else if (changedField == &m_baseKOneBased)
|
||||
{
|
||||
if (m_baseKOneBased < m_topKOneBased) m_topKOneBased = m_baseKOneBased;
|
||||
}
|
||||
|
@ -22,7 +22,6 @@
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaQIconTools.h"
|
||||
|
||||
#include "RimGridView.h"
|
||||
|
||||
|
@ -20,8 +20,6 @@
|
||||
|
||||
#include "RicHoloLensSessionManager.h"
|
||||
|
||||
#include "RiaQIconTools.h"
|
||||
|
||||
#include <QAction>
|
||||
|
||||
CAF_CMD_SOURCE_INIT(RicHoloLensCreateDummyFiledBackedSessionFeature, "RicHoloLensCreateDummyFiledBackedSessionFeature");
|
||||
|
@ -18,8 +18,6 @@
|
||||
|
||||
#include "RicHoloLensCreateSessionFeature.h"
|
||||
|
||||
#include "RiaQIconTools.h"
|
||||
|
||||
#include "RicHoloLensCreateSessionUi.h"
|
||||
#include "RicHoloLensServerSettings.h"
|
||||
#include "RicHoloLensSessionManager.h"
|
||||
|
@ -21,7 +21,6 @@
|
||||
#include "RicHoloLensSession.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaQIconTools.h"
|
||||
#include "RiaLogging.h"
|
||||
|
||||
#include "RimGridView.h"
|
||||
|
@ -22,7 +22,6 @@
|
||||
#include "RicHoloLensSessionManager.h"
|
||||
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaQIconTools.h"
|
||||
|
||||
#include "cafCmdFeatureManager.h"
|
||||
|
||||
|
@ -344,12 +344,3 @@ void RicCreateTemporaryLgrFeature::computeCachedData(RimEclipseCase* eclipseCase
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RicCreateTemporaryLgrFeature::containsAnyNonMainGridCells(const std::vector<RigCompletionDataGridCell>& cells)
|
||||
{
|
||||
return std::find_if(cells.begin(), cells.end(), [](const RigCompletionDataGridCell& cell) {
|
||||
return !cell.isMainGridCell();
|
||||
}) != cells.end();
|
||||
}
|
||||
|
@ -65,5 +65,4 @@ private:
|
||||
void createLgr(const LgrInfo& lgrInfo, RigMainGrid* mainGrid);
|
||||
void computeCachedData(RimEclipseCase* eclipseCase);
|
||||
void deleteAllCachedData(RimEclipseCase* eclipseCase);
|
||||
bool containsAnyNonMainGridCells(const std::vector<RigCompletionDataGridCell>& cells);
|
||||
};
|
||||
|
@ -131,14 +131,6 @@ void RifEclipseDataTableFormatter::setUnlimitedDataRowWidth()
|
||||
m_maxDataRowWidth = std::numeric_limits<int>::max();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifEclipseDataTableFormatter::setMaxDataRowWidth(int maxWidth)
|
||||
{
|
||||
m_maxDataRowWidth = maxWidth;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -272,29 +264,6 @@ void RifEclipseDataTableFormatter::tableCompleted(const QString& appendText, boo
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifEclipseDataTableFormatter::addValueTable(QTextStream& stream, const QString& name, size_t columns, const std::vector<double>& values)
|
||||
{
|
||||
RifEclipseDataTableFormatter subFormatter(stream);
|
||||
|
||||
std::vector<RifEclipseOutputTableColumn> cols(columns, RifEclipseOutputTableColumn(""));
|
||||
|
||||
subFormatter.setTableRowPrependText("");
|
||||
subFormatter.keyword(name);
|
||||
subFormatter.header(cols);
|
||||
|
||||
int colCount = 0;
|
||||
for (size_t i = 0; i < values.size(); i++)
|
||||
{
|
||||
subFormatter.add(values[i]);
|
||||
if (++colCount % columns == 0 && i < values.size() - 1) subFormatter.rowCompleted("");
|
||||
}
|
||||
subFormatter.rowCompleted();
|
||||
subFormatter.tableCompleted("", false);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -120,7 +120,6 @@ public:
|
||||
QString commentPrefix() const;
|
||||
void setCommentPrefix(const QString& commentPrefix);
|
||||
void setUnlimitedDataRowWidth();
|
||||
void setMaxDataRowWidth(int maxWidth);
|
||||
int maxDataRowWidth() const;
|
||||
|
||||
RifEclipseDataTableFormatter& keyword(const QString& keyword);
|
||||
@ -138,8 +137,6 @@ public:
|
||||
void tableCompleted();
|
||||
void tableCompleted(const QString& appendText, bool appendNewline);
|
||||
|
||||
static void addValueTable(QTextStream& stream, const QString& keyword, size_t columns, const std::vector<double>& values);
|
||||
|
||||
int tableWidth() const;
|
||||
|
||||
private:
|
||||
|
@ -81,8 +81,6 @@ void RifEclipseSummaryTools::findSummaryFiles(const QString& inputFile,
|
||||
}
|
||||
}
|
||||
stringlist_free(summary_file_list);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -92,7 +90,6 @@ QString RifEclipseSummaryTools::findGridCaseFileFromSummaryHeaderFile(const QStr
|
||||
{
|
||||
char* myPath = nullptr;
|
||||
char* myBase = nullptr;
|
||||
bool formattedFile = true;
|
||||
|
||||
util_alloc_file_components(RiaStringEncodingTools::toNativeEncoded(QDir::toNativeSeparators(summaryHeaderFile)).data(), &myPath, &myBase, nullptr);
|
||||
|
||||
@ -100,10 +97,6 @@ QString RifEclipseSummaryTools::findGridCaseFileFromSummaryHeaderFile(const QStr
|
||||
if (!caseFile)
|
||||
{
|
||||
caseFile= ecl_util_alloc_exfilename(myPath, myBase, ECL_EGRID_FILE, false, -1);
|
||||
if (caseFile)
|
||||
{
|
||||
formattedFile = false;
|
||||
}
|
||||
}
|
||||
|
||||
QString gridCaseFile;
|
||||
|
@ -668,7 +668,6 @@ std::vector<Column> RifEclipseUserDataParserTools::columnInfoFromColumnHeaders(c
|
||||
|
||||
std::string quantity = columnLines[0];
|
||||
std::string unit;
|
||||
std::string scaling;
|
||||
|
||||
size_t startIndex = 1;
|
||||
|
||||
@ -681,7 +680,7 @@ std::vector<Column> RifEclipseUserDataParserTools::columnInfoFromColumnHeaders(c
|
||||
|
||||
if (isScalingDetected)
|
||||
{
|
||||
scaling = columnLines[2];
|
||||
//std::string scaling = columnLines[2];
|
||||
|
||||
startIndex = 3;
|
||||
}
|
||||
|
@ -154,7 +154,6 @@ QStringList RifSummaryCaseRestartSelector::gridCaseFiles() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifSummaryCaseRestartSelector::determineFilesToImport(const std::vector<RifSummaryCaseFileImportInfo>& initialFiles)
|
||||
{
|
||||
std::vector<RifSummaryCaseFileImportInfo> fileInfos;
|
||||
if (m_showDialog)
|
||||
{
|
||||
bool enableApplyToAllField = initialFiles.size() > 1;
|
||||
|
@ -224,7 +224,6 @@ RigFemScalarResultFrames* RigFemPartResultsCollection::findOrLoadScalarResult(in
|
||||
{
|
||||
std::map<std::string, std::vector<float>> elementProperties = m_elementPropertyReader->readAllElementPropertiesInFileContainingField(resVarAddr.fieldName);
|
||||
|
||||
std::vector<RigFemScalarResultFrames*> resultsForEachComponent;
|
||||
for (std::pair< std::string, std::vector<float>> elem : elementProperties)
|
||||
{
|
||||
RigFemResultAddress addressForElement(RIG_ELEMENT, elem.first, "");
|
||||
@ -2790,7 +2789,6 @@ void findReferenceElementForNode(const RigFemPart& part, size_t nodeIdx, size_t
|
||||
part.findIntersectingCells(bb, &refElementCandidates);
|
||||
|
||||
const RigFemPartGrid* grid = part.getOrCreateStructGrid();
|
||||
const std::vector<cvf::Vec3f>& nodeCoords = part.nodes().coordinates;
|
||||
|
||||
refElement->elementIdx = cvf::UNDEFINED_SIZE_T;
|
||||
refElement->intersectionPointToCurrentNodeDistance = std::numeric_limits<float>::infinity();
|
||||
|
@ -384,8 +384,6 @@ cvf::ref<cvf::DrawableGeo> RivPipeGeometryGenerator::generateVariableRadiusTube(
|
||||
const cvf::Vec3dArray* cylinderCenterCoords,
|
||||
const std::vector<double>& radii)
|
||||
{
|
||||
const double epsilon = 1.0e-8;
|
||||
|
||||
CVF_ASSERT(cylinderCenterCoords != nullptr);
|
||||
|
||||
// Calculate first valid pipe direction, to be able to handle centerNodes in the same place
|
||||
|
@ -219,29 +219,6 @@ void RivTensorResultPartMgr::calculateElementTensors(const RigFemPart&
|
||||
(*elmTensors)[elmIdx] = tensorSumOfElmNodes * (1.0 / 8.0);
|
||||
}
|
||||
}
|
||||
|
||||
std::array<std::vector<float>, 3> elmPrincipals;
|
||||
std::vector<std::array<cvf::Vec3f, 3>> elmPrincipalDirections;
|
||||
|
||||
elmPrincipals[0].resize(elmCount);
|
||||
elmPrincipals[1].resize(elmCount);
|
||||
elmPrincipals[2].resize(elmCount);
|
||||
|
||||
elmPrincipalDirections.resize(elmCount);
|
||||
|
||||
for (size_t nIdx = 0; nIdx < elmCount; ++nIdx)
|
||||
{
|
||||
cvf::Vec3f principalDirs[3];
|
||||
cvf::Vec3f principalValues = (*elmTensors)[nIdx].calculatePrincipals(principalDirs);
|
||||
|
||||
elmPrincipals[0][nIdx] = principalValues[0];
|
||||
elmPrincipals[1][nIdx] = principalValues[1];
|
||||
elmPrincipals[2][nIdx] = principalValues[2];
|
||||
|
||||
elmPrincipalDirections[nIdx][0] = principalDirs[0];
|
||||
elmPrincipalDirections[nIdx][1] = principalDirs[1];
|
||||
elmPrincipalDirections[nIdx][2] = principalDirs[2];
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -225,14 +225,6 @@ void RimAnnotationInViewCollection::onGlobalCollectionChanged(const RimAnnotatio
|
||||
updateConnectedEditors();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t RimAnnotationInViewCollection::annotationsCount() const
|
||||
{
|
||||
return m_textAnnotations->m_annotations.size() + allGlobalPdmAnnotations().size();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -58,7 +58,6 @@ public:
|
||||
std::vector<RimPolylinesFromFileAnnotationInView*> globalPolylineFromFileAnnotations() const;
|
||||
|
||||
void onGlobalCollectionChanged(const RimAnnotationCollection* globalCollection);
|
||||
size_t annotationsCount() const;
|
||||
|
||||
bool hasTextAnnotationsWithCustomFontSize(RiaFontCache::FontSize defaultFontSize) const;
|
||||
bool applyFontSizeToAllTextAnnotations(RiaFontCache::FontSize oldFontSize, RiaFontCache::FontSize fontSize, bool forceSizeChange = false);
|
||||
|
@ -53,14 +53,6 @@ void RimAnnotationTextAppearance::setFontSize(FontSize size)
|
||||
m_fontSize = size;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimAnnotationTextAppearance::setFontColor(const cvf::Color3f& newColor)
|
||||
{
|
||||
m_fontColor = newColor;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -69,14 +61,6 @@ void RimAnnotationTextAppearance::setBackgroundColor(const cvf::Color3f& newColo
|
||||
m_backgroundColor = newColor;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimAnnotationTextAppearance::setAnchorLineColor(const cvf::Color3f& newColor)
|
||||
{
|
||||
m_anchorLineColor = newColor;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -42,9 +42,7 @@ public:
|
||||
RimAnnotationTextAppearance();
|
||||
|
||||
void setFontSize(FontSize size);
|
||||
void setFontColor(const cvf::Color3f& newColor);
|
||||
void setBackgroundColor(const cvf::Color3f& newColor);
|
||||
void setAnchorLineColor(const cvf::Color3f& newColor);
|
||||
|
||||
FontSize fontSize() const;
|
||||
cvf::Color3f fontColor() const;
|
||||
|
@ -60,14 +60,6 @@ bool RimPolylinesAnnotationInView::isActive() const
|
||||
return m_isActive();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPolylinesAnnotationInView::setSourceAnnotation(RimPolylinesAnnotation* annotation)
|
||||
{
|
||||
m_sourceAnnotation = annotation;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -56,7 +56,6 @@ public:
|
||||
~RimPolylinesAnnotationInView() override {}
|
||||
|
||||
bool isActive() const;
|
||||
void setSourceAnnotation(RimPolylinesAnnotation* annotation);
|
||||
RimPolylinesAnnotation* sourceAnnotation() const;
|
||||
|
||||
bool isVisible() const;
|
||||
|
@ -36,22 +36,6 @@
|
||||
#include "cafPdmUiPushButtonEditor.h"
|
||||
#include "cafPdmUiTreeOrdering.h"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Internal function
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<cvf::Vec3d> xydToXyzVector(const std::vector<cvf::Vec3d>& xyds)
|
||||
{
|
||||
std::vector<cvf::Vec3d> xyzs;
|
||||
for (const auto& xyd : xyds)
|
||||
{
|
||||
auto xyz = xyd;
|
||||
xyz.z() = -xyd.z();
|
||||
xyzs.push_back(xyz);
|
||||
}
|
||||
return xyzs;
|
||||
}
|
||||
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimUserDefinedPolylinesAnnotation, "UserDefinedPolylinesAnnotation");
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -94,7 +78,6 @@ cvf::ref<RigPolyLinesData> RimUserDefinedPolylinesAnnotation::polyLinesData()
|
||||
{
|
||||
cvf::ref<RigPolyLinesData> pld = new RigPolyLinesData;
|
||||
std::vector<cvf::Vec3d> line;
|
||||
std::vector<std::vector<cvf::Vec3d> > lines;
|
||||
for (const RimPolylineTarget* target : m_targets)
|
||||
{
|
||||
line.push_back(target->targetPointXYZ());
|
||||
|
@ -99,14 +99,6 @@ void RimPerforationInterval::setCustomStartDate(const QDate& date)
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPerforationInterval::enableCustomEndDate(bool enable)
|
||||
{
|
||||
m_useCustomEndDate = enable;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -52,7 +52,6 @@ public:
|
||||
void enableCustomStartDate(bool enable);
|
||||
void setCustomStartDate(const QDate& date);
|
||||
|
||||
void enableCustomEndDate(bool enable);
|
||||
void setCustomEndDate(const QDate& date);
|
||||
|
||||
void setDiameter(double diameter);
|
||||
|
@ -111,16 +111,6 @@ double RimSimWellFracture::wellAzimuthAtFracturePosition() const
|
||||
return simWellAzimuth;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimSimWellFracture::wellDipAtFracturePosition()
|
||||
{
|
||||
computeSimWellBranchesIfRequired();
|
||||
double simWellDip = m_branchCenterLines[m_branchIndex].simWellDipAngle(fracturePosition());
|
||||
return simWellDip;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -42,7 +42,6 @@ public:
|
||||
void updateAzimuthBasedOnWellAzimuthAngle() override;
|
||||
|
||||
double wellAzimuthAtFracturePosition() const override;
|
||||
double wellDipAtFracturePosition();
|
||||
double fractureMD() const override
|
||||
{
|
||||
return m_location;
|
||||
|
@ -394,19 +394,6 @@ QString RimGridCrossPlotDataSet::timeStepString() const
|
||||
return "";
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<QString> RimGridCrossPlotDataSet::groupStrings() const
|
||||
{
|
||||
std::vector<QString> groupStrings;
|
||||
for (auto curve : m_crossPlotCurves())
|
||||
{
|
||||
groupStrings.push_back(legendConfig()->categoryNameFromCategoryValue(curve->groupIndex()));
|
||||
}
|
||||
return groupStrings;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -113,7 +113,6 @@ public:
|
||||
QString caseNameString() const;
|
||||
QString axisVariableString() const;
|
||||
QString timeStepString() const;
|
||||
std::vector<QString> groupStrings() const;
|
||||
|
||||
std::map<NameComponents, QString> nameComponents() const;
|
||||
|
||||
|
@ -63,7 +63,6 @@ void Rim2dIntersectionViewCollection::syncFromExistingIntersections( bool doUpda
|
||||
parentCase->descendantsIncludingThisOfType(allOrderedIntersectionsInCase);
|
||||
|
||||
std::set<RimIntersection*> currentIntersections(allOrderedIntersectionsInCase.begin(), allOrderedIntersectionsInCase.end());
|
||||
std::set<RimIntersection*> intersectionsNeedingViews = currentIntersections;
|
||||
|
||||
// Delete views without a valid intersection
|
||||
|
||||
|
@ -272,14 +272,6 @@ bool Rim3dOverlayInfoConfig::isActive() const
|
||||
return m_active;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void Rim3dOverlayInfoConfig::setIsActive(bool active)
|
||||
{
|
||||
m_active = active;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -87,7 +87,6 @@ public:
|
||||
bool showCaseInfo() const;
|
||||
bool showResultInfo() const;
|
||||
bool isActive() const;
|
||||
void setIsActive(bool active);
|
||||
|
||||
bool showVersionInfo() const;
|
||||
|
||||
|
@ -1097,15 +1097,6 @@ void Rim3dView::disablePerspectiveProjectionField()
|
||||
RiaFieldhandleTools::disableWriteAndSetFieldHidden(&isPerspectiveView);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void Rim3dView::enablePerspectiveProjectionField()
|
||||
{
|
||||
isPerspectiveView.uiCapability()->setUiHidden(false);
|
||||
isPerspectiveView.xmlCapability()->setIOWritable(true);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -166,7 +166,6 @@ protected:
|
||||
virtual void setDefaultView();
|
||||
void disableGridBoxField();
|
||||
void disablePerspectiveProjectionField();
|
||||
void enablePerspectiveProjectionField();
|
||||
cvf::Mat4d cameraPosition() const;
|
||||
cvf::Vec3d cameraPointOfInterest() const;
|
||||
RimViewNameConfig* nameConfig() const;
|
||||
|
@ -217,14 +217,6 @@ const std::vector<cvf::Vec4d>& RimContourMapProjection::trianglesWithVertexValue
|
||||
return m_trianglesWithVertexValues;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimContourMapProjection::ResultAggregation RimContourMapProjection::resultAggregation() const
|
||||
{
|
||||
return m_resultAggregation();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -249,14 +241,6 @@ bool RimContourMapProjection::showContourLines() const
|
||||
return m_showContourLines();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimContourMapProjection::showContourLabels() const
|
||||
{
|
||||
return m_showContourLines() && m_showContourLabels();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -348,15 +332,6 @@ double RimContourMapProjection::valueAtVertex(uint i, uint j) const
|
||||
return std::numeric_limits<double>::infinity();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimContourMapProjection::hasResultAtVertex(uint i, uint j) const
|
||||
{
|
||||
size_t index = vertexIndexFromIJ(i, j);
|
||||
return m_aggregatedVertexResults[index] != std::numeric_limits<double>::infinity();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -1411,14 +1386,6 @@ bool RimContourMapProjection::isMeanResult() const
|
||||
m_resultAggregation() == RESULTS_GEOM_VALUE;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimContourMapProjection::isSummationResult() const
|
||||
{
|
||||
return isStraightSummationResult() || m_resultAggregation() == RESULTS_VOLUME_SUM;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -83,11 +83,9 @@ public:
|
||||
const std::vector<ContourPolygons>& contourPolygons() const;
|
||||
const std::vector<cvf::Vec4d>& trianglesWithVertexValues();
|
||||
|
||||
ResultAggregation resultAggregation() const;
|
||||
double sampleSpacing() const;
|
||||
double sampleSpacingFactor() const;
|
||||
bool showContourLines() const;
|
||||
bool showContourLabels() const;
|
||||
|
||||
QString resultAggregationText() const;
|
||||
|
||||
@ -103,7 +101,6 @@ public:
|
||||
bool isColumnResult() const;
|
||||
|
||||
double valueAtVertex(uint i, uint j) const;
|
||||
bool hasResultAtVertex(uint i, uint j) const;
|
||||
|
||||
uint numberOfCells() const;
|
||||
uint numberOfValidCells() const;
|
||||
@ -171,7 +168,6 @@ protected:
|
||||
const std::vector<double>& weightingResultValues) const;
|
||||
|
||||
bool isMeanResult() const;
|
||||
bool isSummationResult() const;
|
||||
bool isStraightSummationResult() const;
|
||||
static bool isStraightSummationResult(ResultAggregationEnum aggregationType);
|
||||
|
||||
|
@ -965,7 +965,6 @@ std::vector<QString> RimProject::simulationWellNames() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimWellPath* RimProject::wellPathFromSimWellName(const QString& simWellName, int branchIndex)
|
||||
{
|
||||
std::vector<RimWellPath*> paths;
|
||||
for (RimWellPath* const path : allWellPaths())
|
||||
{
|
||||
if (QString::compare(path->associatedSimulationWellName(), simWellName) == 0 &&
|
||||
|
@ -731,14 +731,6 @@ bool RimRegularLegendConfig::showLegend() const
|
||||
return m_showLegend;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimRegularLegendConfig::setShowLegend(bool show)
|
||||
{
|
||||
m_showLegend = show;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -123,7 +123,6 @@ public:
|
||||
|
||||
cvf::ScalarMapper* scalarMapper() { return m_currentScalarMapper.p(); }
|
||||
bool showLegend() const;
|
||||
void setShowLegend(bool show);
|
||||
|
||||
const caf::TitledOverlayFrame* titledOverlayFrame() const override;
|
||||
caf::TitledOverlayFrame* titledOverlayFrame() override;
|
||||
|
@ -441,17 +441,6 @@ RimLegendConfig::RangeModeType RimScaleLegendConfig::rangeMode() const
|
||||
return m_rangeMode();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimScaleLegendConfig::setCurrentScale(double scale)
|
||||
{
|
||||
m_currentScale = scale;
|
||||
|
||||
// Update legend
|
||||
updateLegend();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -109,8 +109,6 @@ public:
|
||||
|
||||
RangeModeType rangeMode() const;
|
||||
|
||||
void setCurrentScale(double scale);
|
||||
|
||||
private:
|
||||
void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
||||
void initAfterRead() override;
|
||||
@ -145,6 +143,4 @@ private:
|
||||
caf::PdmField<double> m_userDefinedMaxValue;
|
||||
caf::PdmField<double> m_userDefinedMinValue;
|
||||
caf::PdmField<caf::AppEnum<ColorRangesType> > m_colorRangeMode;
|
||||
|
||||
double m_currentScale; // [meters/pixel]
|
||||
};
|
||||
|
@ -287,7 +287,6 @@ void RimWellLogExtractionCurve::fieldChangedByUi(const caf::PdmFieldHandle* chan
|
||||
this->loadDataAndUpdate(true);
|
||||
}
|
||||
else if (changedField == &m_branchDetection ||
|
||||
changedField == &m_branchIndex ||
|
||||
changedField == &m_branchIndex)
|
||||
{
|
||||
clearGeneratedSimWellPaths();
|
||||
@ -979,4 +978,4 @@ void RimWellLogExtractionCurve::setBranchDetection(bool branchDetection)
|
||||
void RimWellLogExtractionCurve::setBranchIndex(int index)
|
||||
{
|
||||
m_branchIndex = index;
|
||||
}
|
||||
}
|
||||
|
@ -149,7 +149,6 @@ RimObservedData* RimObservedDataCollection::createAndAddCvsObservedDataFromFile(
|
||||
if (!fileExists(fileName, errorText)) return nullptr;
|
||||
|
||||
RimObservedData* observedData = nullptr;
|
||||
bool parseOk = false;
|
||||
|
||||
RimCsvUserData* userData = new RimCsvUserData();
|
||||
RicPasteAsciiDataToSummaryPlotFeatureUi* parseOptions = userData->parseOptions();
|
||||
@ -186,7 +185,6 @@ RimObservedData* RimObservedDataCollection::createAndAddCvsObservedDataFromFile(
|
||||
{
|
||||
this->m_observedDataArray.push_back(userData);
|
||||
observedData = userData;
|
||||
parseOk = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -294,8 +294,8 @@ EnsembleParameter RimSummaryCaseCollection::ensembleParameter(const QString& par
|
||||
EnsembleParameter eParam;
|
||||
eParam.name = paramName;
|
||||
|
||||
bool numericValuesCount = 0;
|
||||
bool textValuesCount = 0;
|
||||
size_t numericValuesCount = 0;
|
||||
size_t textValuesCount = 0;
|
||||
|
||||
// Prepare case realization params, and check types
|
||||
for (const auto& rimCase : allSummaryCases())
|
||||
|
@ -53,7 +53,6 @@ ${CMAKE_CURRENT_LIST_DIR}/RigCellGeometryTools.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RigWellPathIntersectionTools.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RigEclipseResultInfo.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RigEclipseResultAddress.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RigEclipseResultBinSorter.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RigTofAccumulatedPhaseFractionsCalculator.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RigTransmissibilityEquations.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RigNumberOfFloodedPoreVolumesCalculator.h
|
||||
@ -122,7 +121,6 @@ ${CMAKE_CURRENT_LIST_DIR}/RigTesselatorTools.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RigCellGeometryTools.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RigWellPathIntersectionTools.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RigEclipseResultInfo.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RigEclipseResultBinSorter.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RigTofAccumulatedPhaseFractionsCalculator.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RigTransmissibilityEquations.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RigNumberOfFloodedPoreVolumesCalculator.cpp
|
||||
|
@ -149,8 +149,6 @@ double RigEclipseToStimPlanCalculator::areaWeightedMatrixPermeability() const
|
||||
RiaWeightedMeanCalculator<double> calc;
|
||||
|
||||
{
|
||||
std::map<size_t, double> reservoirCellAndIntersectedArea;
|
||||
|
||||
for (const auto& singleCellCalc : m_singleFractureCellCalculators)
|
||||
{
|
||||
const RigEclipseToStimPlanCellTransmissibilityCalculator& calulator = singleCellCalc.second;
|
||||
|
@ -73,7 +73,7 @@ const std::vector<double>& RigEclipseToStimPlanCellTransmissibilityCalculator::c
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const std::vector<double>& RigEclipseToStimPlanCellTransmissibilityCalculator::contributingEclipseCellIntersectionAreas() const
|
||||
{
|
||||
@ -81,7 +81,7 @@ const std::vector<double>& RigEclipseToStimPlanCellTransmissibilityCalculator::c
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const std::vector<double>& RigEclipseToStimPlanCellTransmissibilityCalculator::contributingEclipseCellPermeabilities() const
|
||||
{
|
||||
@ -103,21 +103,6 @@ double RigEclipseToStimPlanCellTransmissibilityCalculator::areaOpenForFlow() con
|
||||
return area;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RigEclipseToStimPlanCellTransmissibilityCalculator::aggregatedMatrixTransmissibility() const
|
||||
{
|
||||
double totalTransmissibility = 0.0;
|
||||
|
||||
for (const auto& trans : m_contributingEclipseCellTransmissibilities)
|
||||
{
|
||||
totalTransmissibility += trans;
|
||||
}
|
||||
|
||||
return totalTransmissibility;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -377,5 +362,6 @@ cvf::ref<RigResultAccessor>
|
||||
const RigEclipseCaseData* eclipseCaseData = eclipseCase->eclipseCaseData();
|
||||
|
||||
// Create result accessor object for main grid at time step zero (static result date is always at first time step
|
||||
return RigResultAccessorFactory::createFromResultAddress(eclipseCaseData, 0, porosityModel, 0, RigEclipseResultAddress(uiResultName));
|
||||
return RigResultAccessorFactory::createFromResultAddress(
|
||||
eclipseCaseData, 0, porosityModel, 0, RigEclipseResultAddress(uiResultName));
|
||||
}
|
||||
|
@ -58,7 +58,6 @@ public:
|
||||
const std::vector<double>& contributingEclipseCellPermeabilities() const;
|
||||
|
||||
double areaOpenForFlow() const;
|
||||
double aggregatedMatrixTransmissibility() const;
|
||||
|
||||
const RigFractureCell& fractureCell() const;
|
||||
|
||||
|
@ -686,7 +686,6 @@ std::vector<cvf::Vec3d> RigCellGeometryTools::unionOfPolygons(const std::vector<
|
||||
std::vector<cvf::Vec3d> unionPolygon;
|
||||
for (ClipperLib::Path pathInSol : solution)
|
||||
{
|
||||
std::vector<cvf::Vec3d> clippedPolygon;
|
||||
for (ClipperLib::IntPoint IntPosition : pathInSol)
|
||||
{
|
||||
unionPolygon.push_back(fromClipperPoint(IntPosition));
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include "RigCaseCellResultsData.h"
|
||||
#include "RigEclipseCaseData.h"
|
||||
#include "RigEclipseResultAddress.h"
|
||||
#include "RigEclipseResultBinSorter.h"
|
||||
#include "RigFormationNames.h"
|
||||
#include "RigMainGrid.h"
|
||||
|
||||
@ -49,7 +48,6 @@ RigEclipseCrossPlotResult RigEclipseCrossPlotDataExtractor::extract(RigEclipseCa
|
||||
|
||||
RigFormationNames* activeFormationNames = resultData->activeFormationNames();
|
||||
|
||||
std::unique_ptr<RigEclipseResultBinSorter> catBinSorter;
|
||||
const std::vector<std::vector<double>>* catValuesForAllSteps = nullptr;
|
||||
|
||||
if (xAddress.isValid() && yAddress.isValid())
|
||||
|
@ -1,79 +0,0 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2019- Equinor ASA
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
#include "RigEclipseResultBinSorter.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RigEclipseResultBinSorter::RigEclipseResultBinSorter(const std::vector<std::vector<double>>& allDataValues, int binCount)
|
||||
: m_allDataValues(allDataValues)
|
||||
, m_binCount(binCount)
|
||||
, m_minValue(std::numeric_limits<double>::infinity())
|
||||
, m_maxValue(-std::numeric_limits<double>::infinity())
|
||||
, m_binSize(0.0)
|
||||
{
|
||||
calculateRange();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
int RigEclipseResultBinSorter::binNumber(double value) const
|
||||
{
|
||||
double distFromMin = value - m_minValue;
|
||||
return std::min(m_binCount - 1, static_cast<int>(distFromMin / m_binSize));
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::pair<double, double> RigEclipseResultBinSorter::binRange(int binNumber) const
|
||||
{
|
||||
double minBinValue = m_minValue + m_binSize * binNumber;
|
||||
double maxBinBalue = minBinValue + m_binSize;
|
||||
return std::make_pair(minBinValue, maxBinBalue);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigEclipseResultBinSorter::calculateRange()
|
||||
{
|
||||
for (const std::vector<double>& doubleRange : m_allDataValues)
|
||||
{
|
||||
if (!doubleRange.empty())
|
||||
{
|
||||
for (double value : doubleRange)
|
||||
{
|
||||
if (value != std::numeric_limits<double>::infinity())
|
||||
{
|
||||
m_minValue = std::min(m_minValue, value);
|
||||
m_maxValue = std::max(m_maxValue, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (m_maxValue > m_minValue)
|
||||
{
|
||||
m_binSize = (m_maxValue - m_minValue) / m_binCount;
|
||||
}
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2019- Equinor ASA
|
||||
//
|
||||
// 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
|
||||
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
///
|
||||
//==================================================================================================
|
||||
class RigEclipseResultBinSorter
|
||||
{
|
||||
public:
|
||||
RigEclipseResultBinSorter(const std::vector<std::vector<double>>& allDataValues, int binCount);
|
||||
|
||||
int binNumber(double value) const;
|
||||
std::pair<double, double> binRange(int binNumber) const;
|
||||
|
||||
private:
|
||||
void calculateRange();
|
||||
|
||||
private:
|
||||
const std::vector<std::vector<double>>& m_allDataValues;
|
||||
int m_binCount;
|
||||
double m_minValue;
|
||||
double m_maxValue;
|
||||
double m_binSize;
|
||||
};
|
||||
|
@ -183,7 +183,6 @@ cvf::Vec3d RigFisbonesGeometry::closestMainAxis(const cvf::Vec3d& vec)
|
||||
if (cvf::Math::abs(vec.z()) > maxValue)
|
||||
{
|
||||
maxComponent = 2;
|
||||
maxValue = cvf::Math::abs(vec.z());
|
||||
}
|
||||
|
||||
if (maxComponent == 0)
|
||||
|
@ -23,7 +23,6 @@
|
||||
RigLocalGrid::RigLocalGrid(RigMainGrid* mainGrid):
|
||||
RigGridBase(mainGrid),
|
||||
m_parentGrid(nullptr),
|
||||
m_positionInParentGrid(cvf::UNDEFINED_SIZE_T),
|
||||
m_isTempGrid(false),
|
||||
m_associatedWellPathName("")
|
||||
{
|
||||
@ -51,22 +50,6 @@ void RigLocalGrid::setParentGrid(RigGridBase * parentGrid)
|
||||
m_parentGrid = parentGrid;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t RigLocalGrid::positionInParentGrid() const
|
||||
{
|
||||
return m_positionInParentGrid;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigLocalGrid::setPositionInParentGrid(size_t positionInParentGrid)
|
||||
{
|
||||
m_positionInParentGrid = positionInParentGrid;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -28,9 +28,6 @@ public:
|
||||
RigGridBase * parentGrid() const;
|
||||
void setParentGrid(RigGridBase * parentGrid);
|
||||
|
||||
size_t positionInParentGrid() const;
|
||||
void setPositionInParentGrid(size_t positionInParentGrid);
|
||||
|
||||
void setAsTempGrid(bool isTemp);
|
||||
bool isTempGrid() const override;
|
||||
|
||||
@ -39,7 +36,6 @@ public:
|
||||
|
||||
private:
|
||||
RigGridBase * m_parentGrid;
|
||||
size_t m_positionInParentGrid;
|
||||
bool m_isTempGrid;
|
||||
std::string m_associatedWellPathName;
|
||||
};
|
||||
|
@ -160,36 +160,6 @@ size_t RigMainGrid::findReservoirCellIndexFromPoint(const cvf::Vec3d& point) con
|
||||
return cellContainingPoint;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<size_t> RigMainGrid::findAllReservoirCellIndicesMatching2dPoint(const cvf::Vec2d& point2d) const
|
||||
{
|
||||
cvf::BoundingBox gridBoundingVox = boundingBox();
|
||||
cvf::Vec3d highestPoint(point2d, gridBoundingVox.max().z());
|
||||
cvf::Vec3d lowestPoint(point2d, gridBoundingVox.min().z());
|
||||
|
||||
cvf::BoundingBox rayBBox;
|
||||
rayBBox.add(highestPoint);
|
||||
rayBBox.add(lowestPoint);
|
||||
|
||||
std::vector<size_t> cellIndices;
|
||||
m_mainGrid->findIntersectingCells(rayBBox, &cellIndices);
|
||||
|
||||
cvf::Vec3d hexCorners[8];
|
||||
for (size_t cellIndex : cellIndices)
|
||||
{
|
||||
m_mainGrid->cellCornerVertices(cellIndex, hexCorners);
|
||||
|
||||
if (RigHexIntersectionTools::lineIntersectsHexCell(highestPoint, lowestPoint, hexCorners))
|
||||
{
|
||||
cellIndices.push_back(cellIndex);
|
||||
}
|
||||
}
|
||||
|
||||
return cellIndices;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -58,7 +58,6 @@ public:
|
||||
const RigCell& cellByGridAndGridLocalCellIdx(size_t gridIdx, size_t gridLocalCellIdx) const;
|
||||
size_t reservoirCellIndexByGridAndGridLocalCellIndex(size_t gridIdx, size_t gridLocalCellIdx) const;
|
||||
size_t findReservoirCellIndexFromPoint(const cvf::Vec3d& point) const;
|
||||
std::vector<size_t> findAllReservoirCellIndicesMatching2dPoint(const cvf::Vec2d& point2d) const;
|
||||
void addLocalGrid(RigLocalGrid* localGrid);
|
||||
|
||||
size_t gridCountOnFile() const;
|
||||
|
@ -44,7 +44,6 @@ void RigNNCData::processConnections(const RigMainGrid& mainGrid)
|
||||
const RigCell& c1 = mainGrid.globalCellArray()[m_connections[cnIdx].m_c1GlobIdx];
|
||||
const RigCell& c2 = mainGrid.globalCellArray()[m_connections[cnIdx].m_c2GlobIdx];
|
||||
|
||||
bool foundAnyOverlap = false;
|
||||
std::vector<size_t> connectionPolygon;
|
||||
std::vector<cvf::Vec3d> connectionIntersections;
|
||||
cvf::StructGridInterface::FaceType connectionFace = cvf::StructGridInterface::NO_FACE;
|
||||
@ -53,7 +52,6 @@ void RigNNCData::processConnections(const RigMainGrid& mainGrid)
|
||||
|
||||
if (connectionFace != cvf::StructGridInterface::NO_FACE)
|
||||
{
|
||||
foundAnyOverlap = true;
|
||||
// Found an overlap polygon. Store data about connection
|
||||
|
||||
m_connections[cnIdx].m_c1Face = connectionFace;
|
||||
|
@ -2076,7 +2076,6 @@ void RiuMainWindow::clearWindowTiling()
|
||||
{
|
||||
QMdiArea::WindowOrder currentActivationOrder = m_mdiArea->activationOrder();
|
||||
|
||||
std::list<QMdiSubWindow*> windowList;
|
||||
for (QMdiSubWindow* subWindow : m_mdiArea->subWindowList(currentActivationOrder))
|
||||
{
|
||||
subWindow->hide();
|
||||
|
@ -886,7 +886,6 @@ void RiuPlotMainWindow::clearWindowTiling()
|
||||
{
|
||||
QMdiArea::WindowOrder currentActivationOrder = m_mdiArea->activationOrder();
|
||||
|
||||
std::list<QMdiSubWindow*> windowList;
|
||||
for (QMdiSubWindow* subWindow : m_mdiArea->subWindowList(currentActivationOrder))
|
||||
{
|
||||
subWindow->hide();
|
||||
|
@ -264,7 +264,6 @@ std::vector<RiaSummaryCurveDefinition> RiuSummaryCurveDefSelection::allCurveDefi
|
||||
|
||||
for (SummarySource* currSource : selectedSummarySources())
|
||||
{
|
||||
std::vector<SummarySource*> sourceSources;
|
||||
RimSummaryCaseCollection* ensemble = dynamic_cast<RimSummaryCaseCollection*>(currSource);
|
||||
RimSummaryCase* sumCase = dynamic_cast<RimSummaryCase*>(currSource);
|
||||
|
||||
@ -321,7 +320,6 @@ std::vector<RiaCurveSetDefinition> RiuSummaryCurveDefSelection::allCurveSetDefin
|
||||
RimSummaryCaseCollection* ensemble = dynamic_cast<RimSummaryCaseCollection*>(currSource);
|
||||
if (!ensemble) continue;
|
||||
|
||||
std::vector<SummarySource*> sourceSources;
|
||||
std::set<RifEclipseSummaryAddress> addressesFromSource;
|
||||
|
||||
// Build case list
|
||||
@ -580,7 +578,6 @@ QList<caf::PdmOptionItemInfo> RiuSummaryCurveDefSelection::calculateValueOptions
|
||||
if (fieldNeedingOptions == &m_selectedSources)
|
||||
{
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
std::vector<RimSummaryCase*> topLevelCases;
|
||||
std::vector<RimOilField*> oilFields;
|
||||
|
||||
proj->allOilFields(oilFields);
|
||||
|
Loading…
Reference in New Issue
Block a user