mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 23:16:00 -06:00
Janitor : Apply clang-format fixes on codebase in ApplicationCode
This commit is contained in:
parent
c5e3bc6898
commit
96a26662fc
@ -313,7 +313,7 @@ bool RiaApplication::openFile( const QString& fileName )
|
||||
}
|
||||
else if ( fileType & RiaDefines::ANY_ECLIPSE_FILE )
|
||||
{
|
||||
loadingSucceded = RicImportGeneralDataFeature::openEclipseFilesFromFileNames( QStringList{ fileName }, true );
|
||||
loadingSucceded = RicImportGeneralDataFeature::openEclipseFilesFromFileNames( QStringList{fileName}, true );
|
||||
lastUsedDialogTag = RiaDefines::defaultDirectoryLabel( fileType );
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,6 @@ void RiaOptionItemFactory::appendOptionItemFromViewNameAndCaseName( Rim3dView*
|
||||
{
|
||||
if ( !view || !optionItems ) return;
|
||||
|
||||
|
||||
QString displayName = view->autoName();
|
||||
|
||||
caf::QIconProvider iconProvider = view->uiCapability()->uiIconProvider();
|
||||
|
@ -33,7 +33,7 @@ RiaWellPlanCalculator::RiaWellPlanCalculator( const cvf::Vec3d& sta
|
||||
{
|
||||
if ( m_lineArcEndPoints.size() < 2 ) return;
|
||||
|
||||
WellPlanSegment segment = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
|
||||
WellPlanSegment segment = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
|
||||
|
||||
RiaOffshoreSphericalCoords startAziIncRad( m_startTangent );
|
||||
segment.inc = cvf::Math::toDegrees( startAziIncRad.inc() );
|
||||
@ -77,7 +77,7 @@ void RiaWellPlanCalculator::addSegment( cvf::Vec3d t1, cvf::Vec3d p1, cvf::Vec3d
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiaWellPlanCalculator::addLineSegment( cvf::Vec3d p1, cvf::Vec3d p2, cvf::Vec3d* endTangent )
|
||||
{
|
||||
WellPlanSegment segment = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
|
||||
WellPlanSegment segment = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
|
||||
|
||||
cvf::Vec3d p1p2 = p2 - p1;
|
||||
double length = p1p2.length();
|
||||
@ -107,7 +107,7 @@ void RiaWellPlanCalculator::addLineSegment( cvf::Vec3d p1, cvf::Vec3d p2, cvf::V
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiaWellPlanCalculator::addArcSegment( cvf::Vec3d t1, cvf::Vec3d p1, cvf::Vec3d p2, cvf::Vec3d* endTangent )
|
||||
{
|
||||
WellPlanSegment segment = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
|
||||
WellPlanSegment segment = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
|
||||
|
||||
RiaArcCurveCalculator arcCalc( p1, t1, p2 );
|
||||
|
||||
|
@ -646,7 +646,7 @@ std::map<QString, std::vector<RigCompletionData>>
|
||||
auto it = completions.find( gridName );
|
||||
if ( it == completions.end() )
|
||||
{
|
||||
completions.insert( std::pair<QString, std::vector<RigCompletionData>>( gridName, { completion } ) );
|
||||
completions.insert( std::pair<QString, std::vector<RigCompletionData>>( gridName, {completion} ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -722,19 +722,19 @@ void RicWellPathExportCompletionDataFeatureImpl::exportWelspecsToFile( RimEclips
|
||||
RifTextDataTableFormatter formatter( stream );
|
||||
formatter.setColumnSpacing( 2 );
|
||||
|
||||
std::vector<RifTextDataTableColumn> header = { RifTextDataTableColumn( "Well" ),
|
||||
RifTextDataTableColumn( "Grp" ),
|
||||
RifTextDataTableColumn( "I" ),
|
||||
RifTextDataTableColumn( "J" ),
|
||||
RifTextDataTableColumn( "RefDepth" ),
|
||||
RifTextDataTableColumn( "Type" ),
|
||||
RifTextDataTableColumn( "DrainRad" ),
|
||||
RifTextDataTableColumn( "GasInEq" ),
|
||||
RifTextDataTableColumn( "AutoShut" ),
|
||||
RifTextDataTableColumn( "XFlow" ),
|
||||
RifTextDataTableColumn( "FluidPVT" ),
|
||||
RifTextDataTableColumn( "HydSDens" ),
|
||||
RifTextDataTableColumn( "FluidInPlReg" ) };
|
||||
std::vector<RifTextDataTableColumn> header = {RifTextDataTableColumn( "Well" ),
|
||||
RifTextDataTableColumn( "Grp" ),
|
||||
RifTextDataTableColumn( "I" ),
|
||||
RifTextDataTableColumn( "J" ),
|
||||
RifTextDataTableColumn( "RefDepth" ),
|
||||
RifTextDataTableColumn( "Type" ),
|
||||
RifTextDataTableColumn( "DrainRad" ),
|
||||
RifTextDataTableColumn( "GasInEq" ),
|
||||
RifTextDataTableColumn( "AutoShut" ),
|
||||
RifTextDataTableColumn( "XFlow" ),
|
||||
RifTextDataTableColumn( "FluidPVT" ),
|
||||
RifTextDataTableColumn( "HydSDens" ),
|
||||
RifTextDataTableColumn( "FluidInPlReg" )};
|
||||
|
||||
formatter.keyword( "WELSPECS" );
|
||||
formatter.header( header );
|
||||
@ -787,20 +787,20 @@ void RicWellPathExportCompletionDataFeatureImpl::exportWelspeclToFile(
|
||||
RifTextDataTableFormatter formatter( stream );
|
||||
formatter.setColumnSpacing( 2 );
|
||||
|
||||
std::vector<RifTextDataTableColumn> header = { RifTextDataTableColumn( "Well" ),
|
||||
RifTextDataTableColumn( "Grp" ),
|
||||
RifTextDataTableColumn( "LGR" ),
|
||||
RifTextDataTableColumn( "I" ),
|
||||
RifTextDataTableColumn( "J" ),
|
||||
RifTextDataTableColumn( "RefDepth" ),
|
||||
RifTextDataTableColumn( "Type" ),
|
||||
RifTextDataTableColumn( "DrainRad" ),
|
||||
RifTextDataTableColumn( "GasInEq" ),
|
||||
RifTextDataTableColumn( "AutoShut" ),
|
||||
RifTextDataTableColumn( "XFlow" ),
|
||||
RifTextDataTableColumn( "FluidPVT" ),
|
||||
RifTextDataTableColumn( "HydSDens" ),
|
||||
RifTextDataTableColumn( "FluidInPlReg" ) };
|
||||
std::vector<RifTextDataTableColumn> header = {RifTextDataTableColumn( "Well" ),
|
||||
RifTextDataTableColumn( "Grp" ),
|
||||
RifTextDataTableColumn( "LGR" ),
|
||||
RifTextDataTableColumn( "I" ),
|
||||
RifTextDataTableColumn( "J" ),
|
||||
RifTextDataTableColumn( "RefDepth" ),
|
||||
RifTextDataTableColumn( "Type" ),
|
||||
RifTextDataTableColumn( "DrainRad" ),
|
||||
RifTextDataTableColumn( "GasInEq" ),
|
||||
RifTextDataTableColumn( "AutoShut" ),
|
||||
RifTextDataTableColumn( "XFlow" ),
|
||||
RifTextDataTableColumn( "FluidPVT" ),
|
||||
RifTextDataTableColumn( "HydSDens" ),
|
||||
RifTextDataTableColumn( "FluidInPlReg" )};
|
||||
|
||||
formatter.keyword( "WELSPECL" );
|
||||
formatter.header( header );
|
||||
@ -965,45 +965,45 @@ void RicWellPathExportCompletionDataFeatureImpl::exportCompdatTableUsingFormatte
|
||||
if ( gridName.isEmpty() )
|
||||
{
|
||||
header =
|
||||
{ RifTextDataTableColumn( "Well" ),
|
||||
RifTextDataTableColumn( "I" ),
|
||||
RifTextDataTableColumn( "J" ),
|
||||
RifTextDataTableColumn( "K1" ),
|
||||
RifTextDataTableColumn( "K2" ),
|
||||
RifTextDataTableColumn( "Status" ),
|
||||
RifTextDataTableColumn( "SAT" ),
|
||||
RifTextDataTableColumn( "TR",
|
||||
RifTextDataTableDoubleFormatting( RifTextDataTableDoubleFormat::RIF_SCIENTIFIC ) ),
|
||||
RifTextDataTableColumn( "DIAM" ),
|
||||
RifTextDataTableColumn( "KH",
|
||||
RifTextDataTableDoubleFormatting( RifTextDataTableDoubleFormat::RIF_SCIENTIFIC ) ),
|
||||
RifTextDataTableColumn( "S" ),
|
||||
RifTextDataTableColumn( "Df",
|
||||
RifTextDataTableDoubleFormatting( RifTextDataTableDoubleFormat::RIF_SCIENTIFIC ) ),
|
||||
RifTextDataTableColumn( "DIR" ) };
|
||||
{RifTextDataTableColumn( "Well" ),
|
||||
RifTextDataTableColumn( "I" ),
|
||||
RifTextDataTableColumn( "J" ),
|
||||
RifTextDataTableColumn( "K1" ),
|
||||
RifTextDataTableColumn( "K2" ),
|
||||
RifTextDataTableColumn( "Status" ),
|
||||
RifTextDataTableColumn( "SAT" ),
|
||||
RifTextDataTableColumn( "TR",
|
||||
RifTextDataTableDoubleFormatting( RifTextDataTableDoubleFormat::RIF_SCIENTIFIC ) ),
|
||||
RifTextDataTableColumn( "DIAM" ),
|
||||
RifTextDataTableColumn( "KH",
|
||||
RifTextDataTableDoubleFormatting( RifTextDataTableDoubleFormat::RIF_SCIENTIFIC ) ),
|
||||
RifTextDataTableColumn( "S" ),
|
||||
RifTextDataTableColumn( "Df",
|
||||
RifTextDataTableDoubleFormatting( RifTextDataTableDoubleFormat::RIF_SCIENTIFIC ) ),
|
||||
RifTextDataTableColumn( "DIR" )};
|
||||
|
||||
formatter.keyword( "COMPDAT" );
|
||||
}
|
||||
else
|
||||
{
|
||||
header =
|
||||
{ RifTextDataTableColumn( "Well" ),
|
||||
RifTextDataTableColumn( "LgrName" ),
|
||||
RifTextDataTableColumn( "I" ),
|
||||
RifTextDataTableColumn( "J" ),
|
||||
RifTextDataTableColumn( "K1" ),
|
||||
RifTextDataTableColumn( "K2" ),
|
||||
RifTextDataTableColumn( "Status" ),
|
||||
RifTextDataTableColumn( "SAT" ),
|
||||
RifTextDataTableColumn( "TR",
|
||||
RifTextDataTableDoubleFormatting( RifTextDataTableDoubleFormat::RIF_SCIENTIFIC ) ),
|
||||
RifTextDataTableColumn( "DIAM" ),
|
||||
RifTextDataTableColumn( "KH",
|
||||
RifTextDataTableDoubleFormatting( RifTextDataTableDoubleFormat::RIF_SCIENTIFIC ) ),
|
||||
RifTextDataTableColumn( "S" ),
|
||||
RifTextDataTableColumn( "Df",
|
||||
RifTextDataTableDoubleFormatting( RifTextDataTableDoubleFormat::RIF_SCIENTIFIC ) ),
|
||||
RifTextDataTableColumn( "DIR" ) };
|
||||
{RifTextDataTableColumn( "Well" ),
|
||||
RifTextDataTableColumn( "LgrName" ),
|
||||
RifTextDataTableColumn( "I" ),
|
||||
RifTextDataTableColumn( "J" ),
|
||||
RifTextDataTableColumn( "K1" ),
|
||||
RifTextDataTableColumn( "K2" ),
|
||||
RifTextDataTableColumn( "Status" ),
|
||||
RifTextDataTableColumn( "SAT" ),
|
||||
RifTextDataTableColumn( "TR",
|
||||
RifTextDataTableDoubleFormatting( RifTextDataTableDoubleFormat::RIF_SCIENTIFIC ) ),
|
||||
RifTextDataTableColumn( "DIAM" ),
|
||||
RifTextDataTableColumn( "KH",
|
||||
RifTextDataTableDoubleFormatting( RifTextDataTableDoubleFormat::RIF_SCIENTIFIC ) ),
|
||||
RifTextDataTableColumn( "S" ),
|
||||
RifTextDataTableColumn( "Df",
|
||||
RifTextDataTableDoubleFormatting( RifTextDataTableDoubleFormat::RIF_SCIENTIFIC ) ),
|
||||
RifTextDataTableColumn( "DIR" )};
|
||||
|
||||
formatter.keyword( "COMPDATL" );
|
||||
}
|
||||
@ -1270,7 +1270,7 @@ void RicWellPathExportCompletionDataFeatureImpl::appendCompletionData(
|
||||
{
|
||||
completionData->insert(
|
||||
std::pair<size_t, std::vector<RigCompletionData>>( completion.completionDataGridCell().globalCellIndex(),
|
||||
std::vector<RigCompletionData>{ completion } ) );
|
||||
std::vector<RigCompletionData>{completion} ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -335,15 +335,13 @@ void RicWellPathExportMswCompletionsImpl::generateWelsegsTable( RifTextDataTable
|
||||
}
|
||||
|
||||
{
|
||||
generateWelsegsSegments( formatter, exportInfo, {RigCompletionData::FISHBONES_ICD, RigCompletionData::FISHBONES} );
|
||||
generateWelsegsSegments( formatter, exportInfo, {RigCompletionData::FRACTURE} );
|
||||
generateWelsegsSegments( formatter,
|
||||
exportInfo,
|
||||
{ RigCompletionData::FISHBONES_ICD, RigCompletionData::FISHBONES } );
|
||||
generateWelsegsSegments( formatter, exportInfo, { RigCompletionData::FRACTURE } );
|
||||
generateWelsegsSegments( formatter,
|
||||
exportInfo,
|
||||
{ RigCompletionData::PERFORATION_ICD,
|
||||
RigCompletionData::PERFORATION_ICV,
|
||||
RigCompletionData::PERFORATION_AICD } );
|
||||
{RigCompletionData::PERFORATION_ICD,
|
||||
RigCompletionData::PERFORATION_ICV,
|
||||
RigCompletionData::PERFORATION_AICD} );
|
||||
}
|
||||
|
||||
formatter.tableCompleted();
|
||||
@ -476,8 +474,8 @@ void RicWellPathExportMswCompletionsImpl::generateCompsegTables( RifTextDataTabl
|
||||
*/
|
||||
|
||||
{
|
||||
std::set<RigCompletionData::CompletionType> fishbonesTypes = { RigCompletionData::FISHBONES_ICD,
|
||||
RigCompletionData::FISHBONES };
|
||||
std::set<RigCompletionData::CompletionType> fishbonesTypes = {RigCompletionData::FISHBONES_ICD,
|
||||
RigCompletionData::FISHBONES};
|
||||
generateCompsegTable( formatter, exportInfo, false, fishbonesTypes );
|
||||
if ( exportInfo.hasSubGridIntersections() )
|
||||
{
|
||||
@ -486,7 +484,7 @@ void RicWellPathExportMswCompletionsImpl::generateCompsegTables( RifTextDataTabl
|
||||
}
|
||||
|
||||
{
|
||||
std::set<RigCompletionData::CompletionType> fractureTypes = { RigCompletionData::FRACTURE };
|
||||
std::set<RigCompletionData::CompletionType> fractureTypes = {RigCompletionData::FRACTURE};
|
||||
generateCompsegTable( formatter, exportInfo, false, fractureTypes );
|
||||
if ( exportInfo.hasSubGridIntersections() )
|
||||
{
|
||||
@ -495,10 +493,10 @@ void RicWellPathExportMswCompletionsImpl::generateCompsegTables( RifTextDataTabl
|
||||
}
|
||||
|
||||
{
|
||||
std::set<RigCompletionData::CompletionType> perforationTypes = { RigCompletionData::PERFORATION,
|
||||
RigCompletionData::PERFORATION_ICD,
|
||||
RigCompletionData::PERFORATION_ICV,
|
||||
RigCompletionData::PERFORATION_AICD };
|
||||
std::set<RigCompletionData::CompletionType> perforationTypes = {RigCompletionData::PERFORATION,
|
||||
RigCompletionData::PERFORATION_ICD,
|
||||
RigCompletionData::PERFORATION_ICV,
|
||||
RigCompletionData::PERFORATION_AICD};
|
||||
generateCompsegTable( formatter, exportInfo, false, perforationTypes );
|
||||
if ( exportInfo.hasSubGridIntersections() )
|
||||
{
|
||||
@ -602,7 +600,7 @@ void RicWellPathExportMswCompletionsImpl::generateCompsegHeader( RifTextDataTabl
|
||||
}
|
||||
|
||||
{
|
||||
std::vector<RifTextDataTableColumn> header = { RifTextDataTableColumn( "Name" ) };
|
||||
std::vector<RifTextDataTableColumn> header = {RifTextDataTableColumn( "Name" )};
|
||||
formatter.header( header );
|
||||
formatter.add( exportInfo.wellPath()->completions()->wellNameForExport() );
|
||||
formatter.rowCompleted();
|
||||
@ -615,15 +613,15 @@ void RicWellPathExportMswCompletionsImpl::generateCompsegHeader( RifTextDataTabl
|
||||
allHeaders.push_back( RifTextDataTableColumn( "Grid" ) );
|
||||
}
|
||||
|
||||
std::vector<RifTextDataTableColumn> commonHeaders = { RifTextDataTableColumn( "I" ),
|
||||
RifTextDataTableColumn( "J" ),
|
||||
RifTextDataTableColumn( "K" ),
|
||||
RifTextDataTableColumn( "Branch no" ),
|
||||
RifTextDataTableColumn( "Start Length" ),
|
||||
RifTextDataTableColumn( "End Length" ),
|
||||
RifTextDataTableColumn( "Dir Pen" ),
|
||||
RifTextDataTableColumn( "End Range" ),
|
||||
RifTextDataTableColumn( "Connection Depth" ) };
|
||||
std::vector<RifTextDataTableColumn> commonHeaders = {RifTextDataTableColumn( "I" ),
|
||||
RifTextDataTableColumn( "J" ),
|
||||
RifTextDataTableColumn( "K" ),
|
||||
RifTextDataTableColumn( "Branch no" ),
|
||||
RifTextDataTableColumn( "Start Length" ),
|
||||
RifTextDataTableColumn( "End Length" ),
|
||||
RifTextDataTableColumn( "Dir Pen" ),
|
||||
RifTextDataTableColumn( "End Range" ),
|
||||
RifTextDataTableColumn( "Connection Depth" )};
|
||||
allHeaders.insert( allHeaders.end(), commonHeaders.begin(), commonHeaders.end() );
|
||||
formatter.header( allHeaders );
|
||||
}
|
||||
@ -711,27 +709,27 @@ void RicWellPathExportMswCompletionsImpl::generateWsegAicdTable( RifTextDataTabl
|
||||
if ( !foundValve )
|
||||
{
|
||||
std::vector<QString> columnDescriptions =
|
||||
{ "Well Name",
|
||||
"Segment Number",
|
||||
"Segment Number",
|
||||
"Strength of AICD",
|
||||
"Length of AICD",
|
||||
"Density of Calibration Fluid",
|
||||
"Viscosity of Calibration Fluid",
|
||||
"Critical water in liquid fraction for emulsions viscosity model",
|
||||
"Emulsion viscosity transition region",
|
||||
"Max ratio of emulsion viscosity to continuous phase viscosity",
|
||||
"Flow scaling factor method",
|
||||
"Maximum flowrate for AICD device",
|
||||
"Volume flow rate exponent, x",
|
||||
"Viscosity function exponent, y",
|
||||
"Device OPEN/SHUT",
|
||||
"Exponent of the oil flowing fraction in the density mixture calculation",
|
||||
"Exponent of the water flowing fraction in the density mixture calculation",
|
||||
"Exponent of the gas flowing fraction in the density mixture calculation",
|
||||
"Exponent of the oil flowing fraction in the density viscosity calculation",
|
||||
"Exponent of the water flowing fraction in the density viscosity calculation",
|
||||
"Exponent of the gas flowing fraction in the density viscosity calculation" };
|
||||
{"Well Name",
|
||||
"Segment Number",
|
||||
"Segment Number",
|
||||
"Strength of AICD",
|
||||
"Length of AICD",
|
||||
"Density of Calibration Fluid",
|
||||
"Viscosity of Calibration Fluid",
|
||||
"Critical water in liquid fraction for emulsions viscosity model",
|
||||
"Emulsion viscosity transition region",
|
||||
"Max ratio of emulsion viscosity to continuous phase viscosity",
|
||||
"Flow scaling factor method",
|
||||
"Maximum flowrate for AICD device",
|
||||
"Volume flow rate exponent, x",
|
||||
"Viscosity function exponent, y",
|
||||
"Device OPEN/SHUT",
|
||||
"Exponent of the oil flowing fraction in the density mixture calculation",
|
||||
"Exponent of the water flowing fraction in the density mixture calculation",
|
||||
"Exponent of the gas flowing fraction in the density mixture calculation",
|
||||
"Exponent of the oil flowing fraction in the density viscosity calculation",
|
||||
"Exponent of the water flowing fraction in the density viscosity calculation",
|
||||
"Exponent of the gas flowing fraction in the density viscosity calculation"};
|
||||
|
||||
tighterFormatter.keyword( "WSEGAICD" );
|
||||
tighterFormatter.comment( "Column Overview:" );
|
||||
@ -1011,7 +1009,7 @@ RicMswExportInfo RicWellPathExportMswCompletionsImpl::generateFracturesMswExport
|
||||
RicExportFractureCompletionsImpl::generateCompdatValues( caseToApply,
|
||||
wellPath->completions()->wellNameForExport(),
|
||||
wellPath->wellPathGeometry(),
|
||||
{ fracture },
|
||||
{fracture},
|
||||
nullptr,
|
||||
nullptr );
|
||||
|
||||
|
@ -164,7 +164,7 @@ void RicExportEclipseSectorModelFeature::executeCommand( RimEclipseView*
|
||||
QString fileName = dirPath.absoluteFilePath( keyword + ".GRDECL" );
|
||||
bool worked = RifEclipseInputFileTools::exportKeywords( fileName,
|
||||
view->eclipseCase()->eclipseCaseData(),
|
||||
{ keyword },
|
||||
{keyword},
|
||||
fileWriteMode,
|
||||
min,
|
||||
max,
|
||||
|
@ -136,8 +136,8 @@ class IjkBoundingBox
|
||||
|
||||
public:
|
||||
IjkBoundingBox()
|
||||
: m_min( { MAX_SIZE_T, MAX_SIZE_T, MAX_SIZE_T } )
|
||||
, m_max( { MAX_SIZE_T, MAX_SIZE_T, MAX_SIZE_T } )
|
||||
: m_min( {MAX_SIZE_T, MAX_SIZE_T, MAX_SIZE_T} )
|
||||
, m_max( {MAX_SIZE_T, MAX_SIZE_T, MAX_SIZE_T} )
|
||||
{
|
||||
}
|
||||
|
||||
@ -172,7 +172,7 @@ public:
|
||||
{
|
||||
if ( !isValid() )
|
||||
{
|
||||
m_min = m_max = { i, j, k };
|
||||
m_min = m_max = {i, j, k};
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -370,16 +370,16 @@ void RicExportLgrFeature::writeLgrs( QTextStream& stream, const std::vector<LgrI
|
||||
RifTextDataTableFormatter formatter( stream );
|
||||
formatter.comment( QString( "LGR: " ) + lgrInfo.name );
|
||||
formatter.keyword( "CARFIN" );
|
||||
formatter.header( { RifTextDataTableColumn( "Name" ),
|
||||
RifTextDataTableColumn( "I1" ),
|
||||
RifTextDataTableColumn( "I2" ),
|
||||
RifTextDataTableColumn( "J1" ),
|
||||
RifTextDataTableColumn( "J2" ),
|
||||
RifTextDataTableColumn( "K1" ),
|
||||
RifTextDataTableColumn( "K2" ),
|
||||
RifTextDataTableColumn( "NX" ),
|
||||
RifTextDataTableColumn( "NY" ),
|
||||
RifTextDataTableColumn( "NZ" ) } );
|
||||
formatter.header( {RifTextDataTableColumn( "Name" ),
|
||||
RifTextDataTableColumn( "I1" ),
|
||||
RifTextDataTableColumn( "I2" ),
|
||||
RifTextDataTableColumn( "J1" ),
|
||||
RifTextDataTableColumn( "J2" ),
|
||||
RifTextDataTableColumn( "K1" ),
|
||||
RifTextDataTableColumn( "K2" ),
|
||||
RifTextDataTableColumn( "NX" ),
|
||||
RifTextDataTableColumn( "NY" ),
|
||||
RifTextDataTableColumn( "NZ" )} );
|
||||
|
||||
formatter.add( lgrInfo.name );
|
||||
formatter.addOneBasedCellIndex( lgrInfo.mainGridStartCell.i() );
|
||||
@ -553,7 +553,7 @@ std::vector<LgrInfo>
|
||||
for ( const auto& intersectionCell : intersectingCells )
|
||||
{
|
||||
auto lgrName = lgrNameFactory.newName( "", lgrId );
|
||||
lgrs.push_back( buildLgr( lgrId++, lgrName, eclipseCase, wellPath->name(), { intersectionCell }, lgrSizes ) );
|
||||
lgrs.push_back( buildLgr( lgrId++, lgrName, eclipseCase, wellPath->name(), {intersectionCell}, lgrSizes ) );
|
||||
}
|
||||
return lgrs;
|
||||
}
|
||||
@ -944,9 +944,9 @@ const RigGridBase* RicExportLgrFeature::hostGrid( const RigMainGrid* mainGrid, s
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
LgrNameFactory::LgrNameFactory()
|
||||
{
|
||||
m_counters = { { RigCompletionData::FRACTURE, { "FRAC", 1 } },
|
||||
{ RigCompletionData::FISHBONES, { "FB", 1 } },
|
||||
{ RigCompletionData::PERFORATION, { "PERF", 1 } } };
|
||||
m_counters = {{RigCompletionData::FRACTURE, {"FRAC", 1}},
|
||||
{RigCompletionData::FISHBONES, {"FB", 1}},
|
||||
{RigCompletionData::PERFORATION, {"PERF", 1}}};
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -136,10 +136,10 @@ bool RicBoxManipulatorEventHandler::eventFilter( QObject* obj, QEvent* inputEven
|
||||
{
|
||||
QMouseEvent* mouseEvent = static_cast<QMouseEvent*>( inputEvent );
|
||||
|
||||
cvf::ref<cvf::RayIntersectSpec> rayIS =
|
||||
viewer->rayIntersectSpecFromWindowCoordinates( mouseEvent->pos().x(), mouseEvent->pos().y() );
|
||||
cvf::ref<cvf::RayIntersectSpec> rayIS = viewer->rayIntersectSpecFromWindowCoordinates( mouseEvent->pos().x(),
|
||||
mouseEvent->pos().y() );
|
||||
|
||||
if (rayIS.notNull())
|
||||
if ( rayIS.notNull() )
|
||||
{
|
||||
m_partManager->updateManipulatorFromRay( rayIS->ray() );
|
||||
|
||||
|
@ -52,7 +52,7 @@ public:
|
||||
explicit RicBoxManipulatorEventHandler( caf::Viewer* viewer );
|
||||
~RicBoxManipulatorEventHandler() override;
|
||||
|
||||
void registerInAdditionalViewer( caf::Viewer* viewer);
|
||||
void registerInAdditionalViewer( caf::Viewer* viewer );
|
||||
|
||||
void setOrigin( const cvf::Vec3d& origin );
|
||||
void setSize( const cvf::Vec3d& size );
|
||||
@ -67,7 +67,7 @@ protected:
|
||||
bool eventFilter( QObject* obj, QEvent* event ) override;
|
||||
|
||||
private:
|
||||
QPointer<caf::Viewer> m_viewer;
|
||||
QPointer<caf::Viewer> m_viewer;
|
||||
std::vector<QPointer<caf::Viewer>> m_otherViewers;
|
||||
|
||||
cvf::ref<caf::BoxManipulatorPartManager> m_partManager;
|
||||
|
@ -51,7 +51,7 @@ bool RicIntersectionBoxAtPosFeature::isCommandEnabled()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicIntersectionBoxAtPosFeature::onActionTriggered( bool isChecked )
|
||||
{
|
||||
RimGridView* activeView = RiaApplication::instance()->activeGridView();
|
||||
RimGridView* activeView = RiaApplication::instance()->activeGridView();
|
||||
RimGridView* activeMainOrComparisonView = RiaApplication::instance()->activeMainOrComparisonGridView();
|
||||
if ( activeMainOrComparisonView )
|
||||
{
|
||||
@ -70,7 +70,7 @@ void RicIntersectionBoxAtPosFeature::onActionTriggered( bool isChecked )
|
||||
coll->updateConnectedEditors();
|
||||
RiuMainWindow::instance()->selectAsCurrentItem( intersectionBox, false );
|
||||
|
||||
activeMainOrComparisonView->showGridCells(false);
|
||||
activeMainOrComparisonView->showGridCells( false );
|
||||
RiuMainWindow::instance()->refreshDrawStyleActions();
|
||||
|
||||
activeView->scheduleCreateDisplayModelAndRedraw();
|
||||
|
@ -53,7 +53,8 @@ bool RicIntersectionBoxXSliceFeature::isCommandEnabled()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicIntersectionBoxXSliceFeature::onActionTriggered( bool isChecked )
|
||||
{
|
||||
RicIntersectionFeatureImpl::createIntersectionBoxSlize("X-slice (Intersection box)", RimIntersectionBox::PLANE_STATE_X);
|
||||
RicIntersectionFeatureImpl::createIntersectionBoxSlize( "X-slice (Intersection box)",
|
||||
RimIntersectionBox::PLANE_STATE_X );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -53,7 +53,8 @@ bool RicIntersectionBoxYSliceFeature::isCommandEnabled()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicIntersectionBoxYSliceFeature::onActionTriggered( bool isChecked )
|
||||
{
|
||||
RicIntersectionFeatureImpl::createIntersectionBoxSlize("Y-slice (Intersection box)", RimIntersectionBox::PLANE_STATE_Y);
|
||||
RicIntersectionFeatureImpl::createIntersectionBoxSlize( "Y-slice (Intersection box)",
|
||||
RimIntersectionBox::PLANE_STATE_Y );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -53,7 +53,8 @@ bool RicIntersectionBoxZSliceFeature::isCommandEnabled()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicIntersectionBoxZSliceFeature::onActionTriggered( bool isChecked )
|
||||
{
|
||||
RicIntersectionFeatureImpl::createIntersectionBoxSlize("Z-slice (Intersection box)", RimIntersectionBox::PLANE_STATE_Z);
|
||||
RicIntersectionFeatureImpl::createIntersectionBoxSlize( "Z-slice (Intersection box)",
|
||||
RimIntersectionBox::PLANE_STATE_Z );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -28,18 +28,19 @@
|
||||
#include "RiuViewerCommands.h"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicIntersectionFeatureImpl::createIntersectionBoxSlize(const QString& name, RimIntersectionBox::SinglePlaneState plane)
|
||||
void RicIntersectionFeatureImpl::createIntersectionBoxSlize( const QString& name,
|
||||
RimIntersectionBox::SinglePlaneState plane )
|
||||
{
|
||||
RimGridView* activeView = RiaApplication::instance()->activeGridView();
|
||||
RimGridView* activeView = RiaApplication::instance()->activeGridView();
|
||||
RimGridView* activeMainOrComparisonView = RiaApplication::instance()->activeMainOrComparisonGridView();
|
||||
|
||||
if ( activeMainOrComparisonView )
|
||||
{
|
||||
RimIntersectionCollection* coll = activeMainOrComparisonView->crossSectionCollection();
|
||||
CVF_ASSERT( coll );
|
||||
|
||||
|
||||
cvf::Vec3d domainCoord = activeView->viewer()->viewerCommands()->lastPickPositionInDomainCoords();
|
||||
|
||||
RimIntersectionBox* intersectionBox = new RimIntersectionBox();
|
||||
@ -49,7 +50,7 @@ void RicIntersectionFeatureImpl::createIntersectionBoxSlize(const QString& name,
|
||||
intersectionBox->setToDefaultSizeSlice( plane, domainCoord );
|
||||
coll->updateConnectedEditors();
|
||||
|
||||
activeMainOrComparisonView->showGridCells(false);
|
||||
activeMainOrComparisonView->showGridCells( false );
|
||||
activeMainOrComparisonView->scheduleCreateDisplayModelAndRedraw();
|
||||
activeView->scheduleCreateDisplayModelAndRedraw();
|
||||
|
||||
|
@ -24,6 +24,6 @@ class QString;
|
||||
|
||||
class RicIntersectionFeatureImpl
|
||||
{
|
||||
public :
|
||||
static void createIntersectionBoxSlize(const QString& name, RimIntersectionBox::SinglePlaneState plane );
|
||||
public:
|
||||
static void createIntersectionBoxSlize( const QString& name, RimIntersectionBox::SinglePlaneState plane );
|
||||
};
|
||||
|
@ -21,9 +21,9 @@
|
||||
#include "RiaGuiApplication.h"
|
||||
|
||||
#include "Rim3dView.h"
|
||||
#include "RimGridView.h"
|
||||
#include "RimMeasurement.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimGridView.h"
|
||||
|
||||
#include "cafCmdFeatureManager.h"
|
||||
#include "cafPdmUiPropertyViewDialog.h"
|
||||
@ -124,7 +124,7 @@ Rim3dView* RicToggleMeasurementModeFeature::activeView() const
|
||||
{
|
||||
RiaApplication* app = RiaApplication::instance();
|
||||
CAF_ASSERT( app );
|
||||
auto view = dynamic_cast<Rim3dView*>(app->activeMainOrComparisonGridView());
|
||||
auto view = dynamic_cast<Rim3dView*>( app->activeMainOrComparisonGridView() );
|
||||
return view;
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ void RicGeoMechPropertyFilterFeatureImpl::addPropertyFilter( RimGeoMechPropertyF
|
||||
propertyFilterCollection->reservoirView()->scheduleCreateDisplayModelAndRedraw();
|
||||
|
||||
propertyFilterCollection->updateConnectedEditors();
|
||||
Riu3DMainWindowTools::selectAsCurrentItem( propertyFilter , false);
|
||||
Riu3DMainWindowTools::selectAsCurrentItem( propertyFilter, false );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -85,7 +85,7 @@ void RicGeoMechPropertyFilterFeatureImpl::insertPropertyFilter( RimGeoMechProper
|
||||
propertyFilterCollection->reservoirView()->scheduleCreateDisplayModelAndRedraw();
|
||||
|
||||
propertyFilterCollection->updateConnectedEditors();
|
||||
Riu3DMainWindowTools::selectAsCurrentItem( propertyFilter , false);
|
||||
Riu3DMainWindowTools::selectAsCurrentItem( propertyFilter, false );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -68,11 +68,11 @@ bool RicSelectColorResult::isCommandEnabled()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicSelectColorResult::onActionTriggered( bool isChecked )
|
||||
{
|
||||
Rim3dView* activeView = RiaApplication::instance()->activeMainOrComparisonGridView();
|
||||
bool isComparisonView = (activeView != RiaApplication::instance()->activeGridView());
|
||||
Rim3dView* activeView = RiaApplication::instance()->activeMainOrComparisonGridView();
|
||||
bool isComparisonView = ( activeView != RiaApplication::instance()->activeGridView() );
|
||||
|
||||
Rim2dIntersectionView* int2dView = dynamic_cast<Rim2dIntersectionView*>( activeView );
|
||||
RimGridView* gridView = nullptr;
|
||||
Rim2dIntersectionView* int2dView = dynamic_cast<Rim2dIntersectionView*>( activeView );
|
||||
RimGridView* gridView = nullptr;
|
||||
|
||||
if ( int2dView )
|
||||
gridView = gridViewFrom2dIntersectionView( int2dView );
|
||||
|
@ -287,7 +287,7 @@ void RicSummaryPlotFeatureImpl::createSummaryPlotsFromArgumentLine( const QStrin
|
||||
QStringList gridFileNames;
|
||||
QString ensembleColoringParameter;
|
||||
|
||||
std::set<QString> validOptions = { "-help", "-h", "-nl", "-s", "-n", "-e", "-c", "-cl" };
|
||||
std::set<QString> validOptions = {"-help", "-h", "-nl", "-s", "-n", "-e", "-c", "-cl"};
|
||||
|
||||
for ( int optionIdx = 0; optionIdx < arguments.size(); ++optionIdx )
|
||||
{
|
||||
|
@ -44,9 +44,9 @@ void RicCompareTo3dViewFeature::onActionTriggered( bool isChecked )
|
||||
RimGridView* activeView = RiaApplication::instance()->activeGridView();
|
||||
|
||||
QVariant userData = this->userData();
|
||||
auto view = static_cast<Rim3dView*>(userData.value<void*>());
|
||||
auto view = static_cast<Rim3dView*>( userData.value<void*>() );
|
||||
|
||||
if (view && activeView)
|
||||
if ( view && activeView )
|
||||
{
|
||||
activeView->setComparisonView( view );
|
||||
activeView->scheduleCreateDisplayModelAndRedraw();
|
||||
@ -60,15 +60,13 @@ void RicCompareTo3dViewFeature::setupActionLook( QAction* actionToSetup )
|
||||
{
|
||||
QVariant userData = actionToSetup->data();
|
||||
|
||||
auto view = static_cast<Rim3dView*>(userData.value<void*>());
|
||||
auto view = static_cast<Rim3dView*>( userData.value<void*>() );
|
||||
if ( view )
|
||||
{
|
||||
actionToSetup->setIcon(view->uiIconProvider().icon() );
|
||||
actionToSetup->setIcon( view->uiIconProvider().icon() );
|
||||
}
|
||||
else
|
||||
{
|
||||
actionToSetup->setIcon(QIcon(":/ComparisonView16x16.png"));
|
||||
actionToSetup->setIcon( QIcon( ":/ComparisonView16x16.png" ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -33,5 +33,3 @@ protected:
|
||||
void onActionTriggered( bool isChecked ) override;
|
||||
void setupActionLook( QAction* actionToSetup ) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -103,7 +103,10 @@ public:
|
||||
RicLinkVisibleViewsFeature::linkViews( m_viewsToLink );
|
||||
}
|
||||
|
||||
const std::vector<RimGridView*>& viewsToLink() { return m_viewsToLink;}
|
||||
const std::vector<RimGridView*>& viewsToLink()
|
||||
{
|
||||
return m_viewsToLink;
|
||||
}
|
||||
|
||||
private:
|
||||
std::vector<RimGridView*> m_viewsToLink;
|
||||
@ -138,7 +141,6 @@ void RicLinkViewFeature::setupActionLook( QAction* actionToSetup )
|
||||
RicLinkViewFeatureImpl cmdImpl;
|
||||
cmdImpl.prepareToExecute();
|
||||
|
||||
|
||||
if ( cmdImpl.viewsToLink().size() >= 2u )
|
||||
{
|
||||
actionToSetup->setText( "Link Selected Views" );
|
||||
@ -147,13 +149,13 @@ void RicLinkViewFeature::setupActionLook( QAction* actionToSetup )
|
||||
else
|
||||
{
|
||||
actionToSetup->setText( "Link View" );
|
||||
if (RiaApplication::instance()->project()->viewLinkerCollection()->viewLinker())
|
||||
if ( RiaApplication::instance()->project()->viewLinkerCollection()->viewLinker() )
|
||||
{
|
||||
actionToSetup->setIcon(QIcon(":/ControlledView16x16.png"));
|
||||
actionToSetup->setIcon( QIcon( ":/ControlledView16x16.png" ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
actionToSetup->setIcon(QIcon(":/MasterView16x16.png"));
|
||||
actionToSetup->setIcon( QIcon( ":/MasterView16x16.png" ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -85,5 +85,3 @@ void RicRemoveComparison3dViewFeature::setupActionLook( QAction* actionToSetup )
|
||||
actionToSetup->setText( "Remove Comparison" );
|
||||
actionToSetup->setIcon( QIcon( ":/RemoveComparisonView16x16.png" ) );
|
||||
}
|
||||
|
||||
|
||||
|
@ -33,5 +33,3 @@ protected:
|
||||
void onActionTriggered( bool isChecked ) override;
|
||||
void setupActionLook( QAction* actionToSetup ) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -30,8 +30,8 @@
|
||||
#include "cafCmdFeatureManager.h"
|
||||
#include "cafSelectionManager.h"
|
||||
|
||||
#include <QAction>
|
||||
#include "RimViewLinkerCollection.h"
|
||||
#include <QAction>
|
||||
|
||||
CAF_CMD_SOURCE_INIT( RicUnLinkViewFeature, "RicUnLinkViewFeature" );
|
||||
|
||||
@ -68,7 +68,8 @@ void RicUnLinkViewFeature::onActionTriggered( bool isChecked )
|
||||
{
|
||||
viewController->applyRangeFilterCollectionByUserChoice();
|
||||
delete viewController;
|
||||
viewLinker->removeViewController( nullptr ); // Remove the slots in the vector that was set to nullptr by the destructor
|
||||
viewLinker->removeViewController(
|
||||
nullptr ); // Remove the slots in the vector that was set to nullptr by the destructor
|
||||
}
|
||||
else if ( viewLinker )
|
||||
{
|
||||
@ -78,7 +79,7 @@ void RicUnLinkViewFeature::onActionTriggered( bool isChecked )
|
||||
|
||||
if ( firstControlledView )
|
||||
{
|
||||
viewLinker->setMasterView(firstControlledView);
|
||||
viewLinker->setMasterView( firstControlledView );
|
||||
|
||||
viewLinker->updateDependentViews();
|
||||
}
|
||||
@ -86,7 +87,7 @@ void RicUnLinkViewFeature::onActionTriggered( bool isChecked )
|
||||
{
|
||||
// Remove the view linker object from the view linker collection
|
||||
// viewLinkerCollection->viewLinker is a PdmChildField containing one RimViewLinker child object
|
||||
RiaApplication::instance()->project()->viewLinkerCollection->viewLinker.removeChildObject(viewLinker);
|
||||
RiaApplication::instance()->project()->viewLinkerCollection->viewLinker.removeChildObject( viewLinker );
|
||||
|
||||
delete viewLinker;
|
||||
}
|
||||
|
@ -237,7 +237,7 @@ void RicNewWellBoreStabilityPlotFeature::createParametersTrack( RimWellBoreStabi
|
||||
paramCurvesTrack->setChecked( false );
|
||||
std::vector<QString> resultNames = RiaDefines::wellPathStabilityParameterNames();
|
||||
|
||||
std::vector<cvf::Color3f> colors = { cvf::Color3f::CRIMSON, cvf::Color3f::DARK_YELLOW };
|
||||
std::vector<cvf::Color3f> colors = {cvf::Color3f::CRIMSON, cvf::Color3f::DARK_YELLOW};
|
||||
|
||||
for ( size_t i = 0; i < resultNames.size(); ++i )
|
||||
{
|
||||
@ -283,11 +283,11 @@ void RicNewWellBoreStabilityPlotFeature::createStabilityCurvesTrack( RimWellBore
|
||||
|
||||
std::vector<QString> resultNames = RiaDefines::wellPathStabilityResultNames();
|
||||
|
||||
std::vector<cvf::Color3f> colors = { cvf::Color3f::BLUE,
|
||||
cvf::Color3f::BROWN,
|
||||
cvf::Color3f::RED,
|
||||
cvf::Color3f::PURPLE,
|
||||
cvf::Color3f::DARK_GREEN };
|
||||
std::vector<cvf::Color3f> colors = {cvf::Color3f::BLUE,
|
||||
cvf::Color3f::BROWN,
|
||||
cvf::Color3f::RED,
|
||||
cvf::Color3f::PURPLE,
|
||||
cvf::Color3f::DARK_GREEN};
|
||||
|
||||
for ( size_t i = 0; i < resultNames.size(); ++i )
|
||||
{
|
||||
@ -327,9 +327,9 @@ void RicNewWellBoreStabilityPlotFeature::createAnglesTrack( RimWellBoreStability
|
||||
const double angleIncrement = 90.0;
|
||||
std::vector<QString> resultNames = RiaDefines::wellPathAngleResultNames();
|
||||
|
||||
std::vector<cvf::Color3f> colors = { cvf::Color3f::GREEN, cvf::Color3f::ORANGE };
|
||||
std::vector<cvf::Color3f> colors = {cvf::Color3f::GREEN, cvf::Color3f::ORANGE};
|
||||
|
||||
std::vector<RiuQwtPlotCurve::LineStyleEnum> lineStyles = { RiuQwtPlotCurve::STYLE_SOLID, RiuQwtPlotCurve::STYLE_DASH };
|
||||
std::vector<RiuQwtPlotCurve::LineStyleEnum> lineStyles = {RiuQwtPlotCurve::STYLE_SOLID, RiuQwtPlotCurve::STYLE_DASH};
|
||||
|
||||
for ( size_t i = 0; i < resultNames.size(); ++i )
|
||||
{
|
||||
|
@ -63,7 +63,7 @@ enum class CsvLineBasedColumnType
|
||||
ERROR_VALUE,
|
||||
COMMENTS
|
||||
};
|
||||
const std::vector<QString> CSV_LINE_BASED_COL_NAMES = { "DATE", "VECTOR", "VALUE", "ERROR", "COMMENTS" };
|
||||
const std::vector<QString> CSV_LINE_BASED_COL_NAMES = {"DATE", "VECTOR", "VALUE", "ERROR", "COMMENTS"};
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
@ -59,10 +59,10 @@ std::set<RifEclipseRftAddress> RifReaderEnsembleStatisticsRft::eclipseRftAddress
|
||||
}
|
||||
else if ( regularAddress.wellLogChannel() == RifEclipseRftAddress::PRESSURE )
|
||||
{
|
||||
std::set<RifEclipseRftAddress::RftWellLogChannelType> statChannels = { RifEclipseRftAddress::PRESSURE_P10,
|
||||
RifEclipseRftAddress::PRESSURE_P50,
|
||||
RifEclipseRftAddress::PRESSURE_P90,
|
||||
RifEclipseRftAddress::PRESSURE_MEAN };
|
||||
std::set<RifEclipseRftAddress::RftWellLogChannelType> statChannels = {RifEclipseRftAddress::PRESSURE_P10,
|
||||
RifEclipseRftAddress::PRESSURE_P50,
|
||||
RifEclipseRftAddress::PRESSURE_P90,
|
||||
RifEclipseRftAddress::PRESSURE_MEAN};
|
||||
for ( auto channel : statChannels )
|
||||
{
|
||||
statisticsAddresses.insert(
|
||||
|
@ -330,7 +330,7 @@ std::set<QDateTime> RifReaderFmuRft::availableTimeSteps( const QString& wellName
|
||||
auto it = m_allWellObservations.find( wellName );
|
||||
if ( it != m_allWellObservations.end() )
|
||||
{
|
||||
return { it->second.dateTime };
|
||||
return {it->second.dateTime};
|
||||
}
|
||||
return {};
|
||||
}
|
||||
@ -362,7 +362,7 @@ std::set<RifEclipseRftAddress::RftWellLogChannelType> RifReaderFmuRft::available
|
||||
|
||||
if ( !m_allWellObservations.empty() )
|
||||
{
|
||||
return { RifEclipseRftAddress::TVD, RifEclipseRftAddress::MD, RifEclipseRftAddress::PRESSURE };
|
||||
return {RifEclipseRftAddress::TVD, RifEclipseRftAddress::MD, RifEclipseRftAddress::PRESSURE};
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
@ -225,7 +225,7 @@ void RimAnnotationCollection::updateViewAnnotationCollections()
|
||||
|
||||
for ( const auto* view : views )
|
||||
{
|
||||
if (view->annotationCollection())
|
||||
if ( view->annotationCollection() )
|
||||
{
|
||||
view->annotationCollection()->onGlobalCollectionChanged( this );
|
||||
}
|
||||
|
@ -787,7 +787,7 @@ QString RimFlowCharacteristicsPlot::curveDataAsText() const
|
||||
|
||||
std::vector<QDateTime> timeStepDates = m_case->timeStepDates();
|
||||
|
||||
std::vector<double> storageCapacitySamplingValues = { 0.08, 0.1, 0.2, 0.3, 0.4 };
|
||||
std::vector<double> storageCapacitySamplingValues = {0.08, 0.1, 0.2, 0.3, 0.4};
|
||||
size_t sampleCount = storageCapacitySamplingValues.size();
|
||||
|
||||
for ( const auto& timeIndex : m_currentlyPlottedTimeSteps )
|
||||
|
@ -130,7 +130,7 @@ RimWellPltPlot::RimWellPltPlot()
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_phases, "Phases", "Phases", "", "", "" );
|
||||
m_phases.uiCapability()->setUiEditorTypeName( caf::PdmUiTreeSelectionEditor::uiEditorTypeName() );
|
||||
m_phases = std::vector<caf::AppEnum<FlowPhase>>( { FLOW_PHASE_OIL, FLOW_PHASE_GAS, FLOW_PHASE_WATER } );
|
||||
m_phases = std::vector<caf::AppEnum<FlowPhase>>( {FLOW_PHASE_OIL, FLOW_PHASE_GAS, FLOW_PHASE_WATER} );
|
||||
m_phases.uiCapability()->setUiLabelPosition( caf::PdmUiItemInfo::HIDDEN );
|
||||
|
||||
m_nameConfig->setCustomName( "PLT Plot" );
|
||||
@ -139,7 +139,7 @@ RimWellPltPlot::RimWellPltPlot()
|
||||
m_doInitAfterLoad = false;
|
||||
m_isOnLoad = true;
|
||||
|
||||
setAvailableDepthTypes( { RimWellLogPlot::MEASURED_DEPTH } );
|
||||
setAvailableDepthTypes( {RimWellLogPlot::MEASURED_DEPTH} );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -342,7 +342,7 @@ void RimWellRftPlot::updateEditorsFromCurves()
|
||||
selectedSources.insert( curveDef.address() );
|
||||
|
||||
auto newTimeStepMap = std::map<QDateTime, std::set<RifDataSourceForRftPlt>>{
|
||||
{ curveDef.timeStep(), std::set<RifDataSourceForRftPlt>{ curveDef.address() } } };
|
||||
{curveDef.timeStep(), std::set<RifDataSourceForRftPlt>{curveDef.address()}}};
|
||||
RimWellPlotTools::addTimeStepsToMap( selectedTimeStepsMap, newTimeStepMap );
|
||||
selectedTimeSteps.insert( curveDef.timeStep() );
|
||||
}
|
||||
@ -1170,12 +1170,12 @@ void RimWellRftPlot::defineCurveColorsAndSymbols( const std::set<RiaRftPltCurveD
|
||||
std::vector<cvf::Color3f> colorTable;
|
||||
RiaColorTables::summaryCurveDefaultPaletteColors().color3fArray().toStdVector( &colorTable );
|
||||
|
||||
std::vector<RiuQwtSymbol::PointSymbolEnum> symbolTable = { RiuQwtSymbol::SYMBOL_ELLIPSE,
|
||||
RiuQwtSymbol::SYMBOL_RECT,
|
||||
RiuQwtSymbol::SYMBOL_DIAMOND,
|
||||
RiuQwtSymbol::SYMBOL_CROSS,
|
||||
RiuQwtSymbol::SYMBOL_XCROSS,
|
||||
RiuQwtSymbol::SYMBOL_STAR1 };
|
||||
std::vector<RiuQwtSymbol::PointSymbolEnum> symbolTable = {RiuQwtSymbol::SYMBOL_ELLIPSE,
|
||||
RiuQwtSymbol::SYMBOL_RECT,
|
||||
RiuQwtSymbol::SYMBOL_DIAMOND,
|
||||
RiuQwtSymbol::SYMBOL_CROSS,
|
||||
RiuQwtSymbol::SYMBOL_XCROSS,
|
||||
RiuQwtSymbol::SYMBOL_STAR1};
|
||||
|
||||
// Add new curves
|
||||
for ( const RiaRftPltCurveDefinition& curveDefToAdd : allCurveDefs )
|
||||
|
@ -1023,7 +1023,7 @@ void RimGridCrossPlot::setShowInfoBox( bool enable )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::set<RimPlotAxisPropertiesInterface*> RimGridCrossPlot::allPlotAxes() const
|
||||
{
|
||||
return { m_xAxisProperties, m_yAxisProperties };
|
||||
return {m_xAxisProperties, m_yAxisProperties};
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -943,10 +943,10 @@ QList<caf::PdmOptionItemInfo>
|
||||
}
|
||||
else if ( fieldNeedingOptions == &m_grouping )
|
||||
{
|
||||
std::set<RigGridCrossPlotCurveGrouping> validOptions = { NO_GROUPING,
|
||||
GROUP_BY_TIME,
|
||||
GROUP_BY_FORMATION,
|
||||
GROUP_BY_RESULT };
|
||||
std::set<RigGridCrossPlotCurveGrouping> validOptions = {NO_GROUPING,
|
||||
GROUP_BY_TIME,
|
||||
GROUP_BY_FORMATION,
|
||||
GROUP_BY_RESULT};
|
||||
if ( !hasMultipleTimeSteps() )
|
||||
{
|
||||
validOptions.erase( GROUP_BY_TIME );
|
||||
|
@ -562,7 +562,7 @@ QString Rim3dOverlayInfoConfig::caseInfoText( RimEclipseView* eclipseView )
|
||||
QString totCellCount = QString::number( contourMap->contourMapProjection()->numberOfCells() );
|
||||
cvf::uint validCellCount = contourMap->contourMapProjection()->numberOfValidCells();
|
||||
QString activeCellCountText = QString::number( validCellCount );
|
||||
QString aggregationType = contourMap->contourMapProjection()->resultAggregationText();
|
||||
QString aggregationType = contourMap->contourMapProjection()->resultAggregationText();
|
||||
QString weightingParameterString;
|
||||
if ( contourMap->contourMapProjection()->weightingParameter() != "None" )
|
||||
{
|
||||
@ -630,7 +630,7 @@ QString Rim3dOverlayInfoConfig::caseInfoText( RimGeoMechView* geoMechView )
|
||||
QString totCellCount = QString::number( contourMap->contourMapProjection()->numberOfCells() );
|
||||
cvf::uint validCellCount = contourMap->contourMapProjection()->numberOfValidCells();
|
||||
QString activeCellCountText = QString::number( validCellCount );
|
||||
QString aggregationType = contourMap->contourMapProjection()->resultAggregationText();
|
||||
QString aggregationType = contourMap->contourMapProjection()->resultAggregationText();
|
||||
|
||||
infoText += QString( "<p><b>-- Contour Map: %1 --</b><p> "
|
||||
"<b>Sample Count. Total:</b> %2 <b>Valid Results:</b> %3 <br>"
|
||||
|
@ -272,7 +272,7 @@ private:
|
||||
|
||||
// Pure private methods : Override viewer and comparison view
|
||||
|
||||
void setOverrideViewer( RiuViewer* overrideViewer );
|
||||
void setOverrideViewer( RiuViewer* overrideViewer );
|
||||
Rim3dView* prepareComparisonView();
|
||||
void restoreComparisonView();
|
||||
|
||||
|
@ -222,7 +222,7 @@ void RimEclipseContourMapView::defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiT
|
||||
void RimEclipseContourMapView::onUpdateDisplayModelForCurrentTimeStep()
|
||||
{
|
||||
static_cast<RimEclipsePropertyFilterCollection*>( nativePropertyFilterCollection() )->updateFromCurrentTimeStep();
|
||||
|
||||
|
||||
m_contourMapProjection->clearGeometry();
|
||||
updateGeometry();
|
||||
}
|
||||
|
@ -145,4 +145,3 @@ cvf::Vec3st RimEclipseGeometrySelectionItem::cellIJK() const
|
||||
|
||||
return IJK;
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ public:
|
||||
RimEclipseCase* eclipseCase() const;
|
||||
size_t gridIndex() const;
|
||||
size_t cellIndex() const;
|
||||
cvf::Vec3st cellIJK() const;
|
||||
cvf::Vec3st cellIJK() const;
|
||||
|
||||
private:
|
||||
caf::PdmPtrField<RimEclipseCase*> m_eclipseCase;
|
||||
|
@ -1169,9 +1169,9 @@ void RimEclipseView::onUpdateLegends()
|
||||
{
|
||||
std::vector<RimLegendConfig*> legendConfs = this->legendConfigs();
|
||||
|
||||
for (auto legendConf : legendConfs)
|
||||
for ( auto legendConf : legendConfs )
|
||||
{
|
||||
nativeOrOverrideViewer()->removeColorLegend(legendConf->titledOverlayFrame());
|
||||
nativeOrOverrideViewer()->removeColorLegend( legendConf->titledOverlayFrame() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -442,9 +442,9 @@ void RimGeoMechView::onUpdateLegends()
|
||||
{
|
||||
std::vector<RimLegendConfig*> legendConfs = this->legendConfigs();
|
||||
|
||||
for (auto legendConf : legendConfs)
|
||||
for ( auto legendConf : legendConfs )
|
||||
{
|
||||
nativeOrOverrideViewer()->removeColorLegend(legendConf->titledOverlayFrame());
|
||||
nativeOrOverrideViewer()->removeColorLegend( legendConf->titledOverlayFrame() );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -25,8 +25,8 @@
|
||||
#include "cafPdmProxyValueField.h"
|
||||
#include "cafPdmPtrField.h"
|
||||
|
||||
#include <memory>
|
||||
#include "SummaryPlotCommands/RicSummaryPlotFeatureImpl.h"
|
||||
#include <memory>
|
||||
|
||||
class RigMainGrid;
|
||||
class RimEclipseCase;
|
||||
@ -65,8 +65,8 @@ public:
|
||||
|
||||
RigGridCellResultAddress resultAddress();
|
||||
|
||||
QString quantityName() const;
|
||||
QString caseName() const;
|
||||
QString quantityName() const;
|
||||
QString caseName() const;
|
||||
RimCase* gridCase() const;
|
||||
|
||||
protected:
|
||||
|
@ -87,7 +87,7 @@ RimGridView::~RimGridView( void )
|
||||
if ( proj && this->isMasterView() )
|
||||
{
|
||||
RimViewLinker* viewLinker = this->assosiatedViewLinker();
|
||||
viewLinker->setMasterView(nullptr);
|
||||
viewLinker->setMasterView( nullptr );
|
||||
|
||||
delete proj->viewLinkerCollection->viewLinker();
|
||||
proj->viewLinkerCollection->viewLinker = nullptr;
|
||||
|
@ -313,9 +313,9 @@ void RimIntersectionBox::fieldChangedByUi( const caf::PdmFieldHandle* changedFie
|
||||
|
||||
Rim3dView* rimView = nullptr;
|
||||
this->firstAncestorOrThisOfType( rimView );
|
||||
for (Rim3dView * mainView : rimView->viewsUsingThisAsComparisonView())
|
||||
for ( Rim3dView* mainView : rimView->viewsUsingThisAsComparisonView() )
|
||||
{
|
||||
m_boxManipulator->registerInAdditionalViewer( mainView->viewer());
|
||||
m_boxManipulator->registerInAdditionalViewer( mainView->viewer() );
|
||||
}
|
||||
|
||||
connect( m_boxManipulator, SIGNAL( notifyRedraw() ), this, SLOT( slotScheduleRedraw() ) );
|
||||
|
@ -177,7 +177,7 @@ QString RimOilField::uniqueShortNameForCase( RimSummaryCase* summaryCase )
|
||||
}
|
||||
}
|
||||
|
||||
int autoNumber = 0;
|
||||
int autoNumber = 0;
|
||||
|
||||
while ( !foundUnique )
|
||||
{
|
||||
|
@ -124,7 +124,7 @@ public:
|
||||
std::vector<RimSummaryCaseCollection*> summaryGroups() const;
|
||||
RimSummaryCaseMainCollection* firstSummaryCaseMainCollection() const;
|
||||
|
||||
void allViews(std::vector<Rim3dView*>& views) const;
|
||||
void allViews( std::vector<Rim3dView*>& views ) const;
|
||||
void allVisibleViews( std::vector<Rim3dView*>& views ) const;
|
||||
void allVisibleGridViews( std::vector<RimGridView*>& views ) const;
|
||||
void allNotLinkedViews( std::vector<RimGridView*>& views );
|
||||
|
@ -87,8 +87,8 @@ RimViewLinker::~RimViewLinker()
|
||||
|
||||
m_viewControllers.deleteAllChildObjects();
|
||||
RimGridView* masterView = m_masterView;
|
||||
m_masterView = nullptr;
|
||||
if (masterView) masterView->updateHolder();
|
||||
m_masterView = nullptr;
|
||||
if ( masterView ) masterView->updateHolder();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -278,7 +278,7 @@ void RimViewLinker::allViewsForCameraSync( const RimGridView* source, std::vecto
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimViewLinker::updateDependentViews()
|
||||
{
|
||||
if (m_viewControllers.empty()) return;
|
||||
if ( m_viewControllers.empty() ) return;
|
||||
|
||||
updateOverrides();
|
||||
updateCellResult();
|
||||
@ -308,7 +308,7 @@ QString RimViewLinker::displayNameForView( RimGridView* view )
|
||||
void RimViewLinker::setMasterView( RimGridView* view )
|
||||
{
|
||||
RimViewController* previousViewController = nullptr;
|
||||
if (view) previousViewController = view->viewController();
|
||||
if ( view ) previousViewController = view->viewController();
|
||||
|
||||
// Remove the view as dependent view
|
||||
if ( previousViewController )
|
||||
@ -414,8 +414,8 @@ void RimViewLinker::updateUiNameAndIcon()
|
||||
{
|
||||
caf::QIconProvider iconProvider;
|
||||
RimViewLinker::findNameAndIconFromView( &m_name.v(), &iconProvider, m_masterView );
|
||||
|
||||
if (m_masterView) m_masterView->updateHolder();
|
||||
|
||||
if ( m_masterView ) m_masterView->updateHolder();
|
||||
|
||||
setUiIcon( iconProvider );
|
||||
}
|
||||
@ -644,7 +644,7 @@ void RimViewLinker::addViewControllers( caf::PdmUiTreeOrdering& uiTreeOrdering )
|
||||
{
|
||||
for ( const auto& viewController : m_viewControllers )
|
||||
{
|
||||
if (viewController) uiTreeOrdering.add( viewController );
|
||||
if ( viewController ) uiTreeOrdering.add( viewController );
|
||||
}
|
||||
}
|
||||
|
||||
@ -679,11 +679,11 @@ void RimViewLinker::removeViewController( RimViewController* viewController )
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimGridView* RimViewLinker::firstControlledView()
|
||||
{
|
||||
if (m_viewControllers.empty()) return nullptr;
|
||||
if ( m_viewControllers.empty() ) return nullptr;
|
||||
|
||||
return m_viewControllers[0]->managedView();
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ public:
|
||||
|
||||
void updateCursorPosition( const RimGridView* sourceView, const cvf::Vec3d& domainCoord );
|
||||
|
||||
void notifyManagedViewChange(RimGridView* oldManagedView, RimGridView* newManagedView);
|
||||
void notifyManagedViewChange( RimGridView* oldManagedView, RimGridView* newManagedView );
|
||||
|
||||
protected:
|
||||
caf::PdmFieldHandle* userDescriptionField() override
|
||||
@ -108,8 +108,7 @@ protected:
|
||||
QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions,
|
||||
bool* useOptionsOnly ) override;
|
||||
|
||||
|
||||
virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
||||
virtual void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
||||
|
||||
private:
|
||||
static QString displayNameForView( RimGridView* view );
|
||||
|
@ -758,7 +758,7 @@ QList<caf::PdmOptionItemInfo>
|
||||
}
|
||||
}
|
||||
std::vector<RimWellLogExtractionCurve::TrajectoryType> trajectoryTypes =
|
||||
{ RimWellLogExtractionCurve::WELL_PATH, RimWellLogExtractionCurve::SIMULATION_WELL };
|
||||
{RimWellLogExtractionCurve::WELL_PATH, RimWellLogExtractionCurve::SIMULATION_WELL};
|
||||
for ( RimWellLogExtractionCurve::TrajectoryType trajectoryType : trajectoryTypes )
|
||||
{
|
||||
caf::PdmOptionItemInfo item( caf::AppEnum<RimWellLogExtractionCurve::TrajectoryType>::uiText( trajectoryType ),
|
||||
|
@ -106,8 +106,8 @@ RimWellLogPlot::RimWellLogPlot()
|
||||
m_nameConfig.uiCapability()->setUiTreeChildrenHidden( true );
|
||||
m_nameConfig = new RimWellLogPlotNameConfig();
|
||||
|
||||
m_availableDepthUnits = { RiaDefines::UNIT_METER, RiaDefines::UNIT_FEET };
|
||||
m_availableDepthTypes = { MEASURED_DEPTH, TRUE_VERTICAL_DEPTH };
|
||||
m_availableDepthUnits = {RiaDefines::UNIT_METER, RiaDefines::UNIT_FEET};
|
||||
m_availableDepthTypes = {MEASURED_DEPTH, TRUE_VERTICAL_DEPTH};
|
||||
|
||||
m_minAvailableDepth = HUGE_VAL;
|
||||
m_maxAvailableDepth = -HUGE_VAL;
|
||||
|
@ -2253,7 +2253,7 @@ void RimWellLogTrack::updateCurveDataRegionsOnPlot()
|
||||
caf::ColorTable colorTable( RimRegularLegendConfig::colorArrayFromColorType( m_colorShadingPalette() ) );
|
||||
|
||||
std::vector<QString> sourceNames =
|
||||
{ "", "PP=Grid", "PP=Las-File", "PP=Element Property Table", "", "PP=Hydrostatic" };
|
||||
{"", "PP=Grid", "PP=Las-File", "PP=Element Property Table", "", "PP=Hydrostatic"};
|
||||
curveData.data = ppValues;
|
||||
|
||||
std::vector<QString> sourceNamesToPlot;
|
||||
@ -2277,12 +2277,12 @@ void RimWellLogTrack::updateCurveDataRegionsOnPlot()
|
||||
caf::ColorTable colorTable( RimRegularLegendConfig::colorArrayFromColorType( m_colorShadingPalette() ) );
|
||||
|
||||
std::vector<QString> sourceNames =
|
||||
{ "",
|
||||
"",
|
||||
"Poisson=Las-File",
|
||||
"Poisson=Element Property Table",
|
||||
QString( "Poisson=%1" ).arg( wellBoreStabilityPlot->userDefinedPoissonRatio() ),
|
||||
"" };
|
||||
{"",
|
||||
"",
|
||||
"Poisson=Las-File",
|
||||
"Poisson=Element Property Table",
|
||||
QString( "Poisson=%1" ).arg( wellBoreStabilityPlot->userDefinedPoissonRatio() ),
|
||||
""};
|
||||
curveData.data = poissonValues;
|
||||
|
||||
std::vector<QString> sourceNamesToPlot;
|
||||
@ -2305,12 +2305,12 @@ void RimWellLogTrack::updateCurveDataRegionsOnPlot()
|
||||
{
|
||||
caf::ColorTable colorTable( RimRegularLegendConfig::colorArrayFromColorType( m_colorShadingPalette() ) );
|
||||
|
||||
std::vector<QString> sourceNames = { "",
|
||||
"",
|
||||
"UCS=Las-File",
|
||||
"UCS=Element Property Table",
|
||||
QString( "UCS=%1" ).arg( wellBoreStabilityPlot->userDefinedUcs() ),
|
||||
"" };
|
||||
std::vector<QString> sourceNames = {"",
|
||||
"",
|
||||
"UCS=Las-File",
|
||||
"UCS=Element Property Table",
|
||||
QString( "UCS=%1" ).arg( wellBoreStabilityPlot->userDefinedUcs() ),
|
||||
""};
|
||||
|
||||
curveData.data = ucsValues;
|
||||
|
||||
@ -2380,16 +2380,16 @@ void RimWellLogTrack::updateWellPathAttributesOnPlot()
|
||||
}
|
||||
}
|
||||
|
||||
const std::map<RiaDefines::WellPathComponentType, int> sortIndices = { { RiaDefines::WELL_PATH, 0 },
|
||||
{ RiaDefines::CASING, 1 },
|
||||
{ RiaDefines::LINER, 2 },
|
||||
{ RiaDefines::PERFORATION_INTERVAL, 3 },
|
||||
{ RiaDefines::FISHBONES, 4 },
|
||||
{ RiaDefines::FRACTURE, 5 },
|
||||
{ RiaDefines::PACKER, 6 },
|
||||
{ RiaDefines::ICD, 7 },
|
||||
{ RiaDefines::AICD, 8 },
|
||||
{ RiaDefines::ICV, 9 } };
|
||||
const std::map<RiaDefines::WellPathComponentType, int> sortIndices = {{RiaDefines::WELL_PATH, 0},
|
||||
{RiaDefines::CASING, 1},
|
||||
{RiaDefines::LINER, 2},
|
||||
{RiaDefines::PERFORATION_INTERVAL, 3},
|
||||
{RiaDefines::FISHBONES, 4},
|
||||
{RiaDefines::FRACTURE, 5},
|
||||
{RiaDefines::PACKER, 6},
|
||||
{RiaDefines::ICD, 7},
|
||||
{RiaDefines::AICD, 8},
|
||||
{RiaDefines::ICV, 9}};
|
||||
|
||||
std::stable_sort( allWellPathComponents.begin(),
|
||||
allWellPathComponents.end(),
|
||||
|
@ -160,22 +160,22 @@ std::set<double> RimWellPathAttribute::supportedDiameters( RiaDefines::WellPathC
|
||||
std::set<double> values;
|
||||
if ( type == RiaDefines::CASING )
|
||||
{
|
||||
values = { MAX_DIAMETER_IN_INCHES,
|
||||
26.0,
|
||||
22.0,
|
||||
20.0,
|
||||
18.0 + 5.0 / 8.0,
|
||||
16.0,
|
||||
14.0,
|
||||
13.0 + 3.0 / 8.0,
|
||||
10.0 + 3.0 / 4.0,
|
||||
9.0 + 7.0 / 8.0,
|
||||
9.0 + 5.0 / 8.0,
|
||||
MIN_DIAMETER_IN_INCHES };
|
||||
values = {MAX_DIAMETER_IN_INCHES,
|
||||
26.0,
|
||||
22.0,
|
||||
20.0,
|
||||
18.0 + 5.0 / 8.0,
|
||||
16.0,
|
||||
14.0,
|
||||
13.0 + 3.0 / 8.0,
|
||||
10.0 + 3.0 / 4.0,
|
||||
9.0 + 7.0 / 8.0,
|
||||
9.0 + 5.0 / 8.0,
|
||||
MIN_DIAMETER_IN_INCHES};
|
||||
}
|
||||
else
|
||||
{
|
||||
values = { 9.0 + 7.0 / 8.0, 9.0 + 5.0 / 8.0, 7.0, 5.5, 5.0, 4.5, 3.5 };
|
||||
values = {9.0 + 7.0 / 8.0, 9.0 + 5.0 / 8.0, 7.0, 5.5, 5.0, 4.5, 3.5};
|
||||
}
|
||||
return values;
|
||||
}
|
||||
@ -197,9 +197,9 @@ QList<caf::PdmOptionItemInfo> RimWellPathAttribute::calculateValueOptions( const
|
||||
QList<caf::PdmOptionItemInfo> options;
|
||||
if ( fieldNeedingOptions == &m_type )
|
||||
{
|
||||
std::set<RiaDefines::WellPathComponentType> supportedTypes = { RiaDefines::CASING,
|
||||
RiaDefines::LINER,
|
||||
RiaDefines::PACKER };
|
||||
std::set<RiaDefines::WellPathComponentType> supportedTypes = {RiaDefines::CASING,
|
||||
RiaDefines::LINER,
|
||||
RiaDefines::PACKER};
|
||||
for ( RiaDefines::WellPathComponentType type : supportedTypes )
|
||||
{
|
||||
options.push_back( caf::PdmOptionItemInfo( CompletionTypeEnum::uiText( type ), type ) );
|
||||
|
@ -31,7 +31,7 @@ RimCalculatedSummaryCase::RimCalculatedSummaryCase()
|
||||
CAF_PDM_InitObject( "Calculated", ":/SummaryCase48x48.png", "", "" );
|
||||
|
||||
m_calculatedCurveReader = nullptr;
|
||||
m_shortName = "Calculated";
|
||||
m_shortName = "Calculated";
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -633,7 +633,7 @@ void RimEnsembleCurveSet::defineUiOrdering( QString uiConfigName, caf::PdmUiOrde
|
||||
caf::PdmUiGroup* curveDataGroup = uiOrdering.addNewGroup( "Summary Vector Y" );
|
||||
curveDataGroup->add( &m_yValuesSummaryCaseCollection );
|
||||
curveDataGroup->add( &m_yValuesSummaryAddressUiField );
|
||||
curveDataGroup->add( &m_yPushButtonSelectSummaryAddress, { false, 1, 0 } );
|
||||
curveDataGroup->add( &m_yPushButtonSelectSummaryAddress, {false, 1, 0} );
|
||||
curveDataGroup->add( &m_plotAxis );
|
||||
}
|
||||
|
||||
|
@ -637,10 +637,10 @@ void RimSummaryCurve::defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering
|
||||
QString curveDataGroupName = "Summary Vector";
|
||||
if ( isCrossPlotCurve() ) curveDataGroupName += " Y";
|
||||
caf::PdmUiGroup* curveDataGroup = uiOrdering.addNewGroupWithKeyword( curveDataGroupName, "Summary Vector Y" );
|
||||
curveDataGroup->add( &m_yValuesSummaryCase, { true, 3, 1 } );
|
||||
curveDataGroup->add( &m_yValuesSummaryAddressUiField, { true, 2, 1 } );
|
||||
curveDataGroup->add( &m_yPushButtonSelectSummaryAddress, { false, 1, 0 } );
|
||||
curveDataGroup->add( &m_plotAxis, { true, 3, 1 } );
|
||||
curveDataGroup->add( &m_yValuesSummaryCase, {true, 3, 1} );
|
||||
curveDataGroup->add( &m_yValuesSummaryAddressUiField, {true, 2, 1} );
|
||||
curveDataGroup->add( &m_yPushButtonSelectSummaryAddress, {false, 1, 0} );
|
||||
curveDataGroup->add( &m_plotAxis, {true, 3, 1} );
|
||||
|
||||
if ( isCrossPlotCurve() )
|
||||
m_showErrorBars = false;
|
||||
@ -651,9 +651,9 @@ void RimSummaryCurve::defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering
|
||||
if ( isCrossPlotCurve() )
|
||||
{
|
||||
caf::PdmUiGroup* curveDataGroup = uiOrdering.addNewGroup( "Summary Vector X" );
|
||||
curveDataGroup->add( &m_xValuesSummaryCase, { true, 3, 1 } );
|
||||
curveDataGroup->add( &m_xValuesSummaryAddressUiField, { true, 2, 1 } );
|
||||
curveDataGroup->add( &m_xPushButtonSelectSummaryAddress, { false, 1, 0 } );
|
||||
curveDataGroup->add( &m_xValuesSummaryCase, {true, 3, 1} );
|
||||
curveDataGroup->add( &m_xValuesSummaryAddressUiField, {true, 2, 1} );
|
||||
curveDataGroup->add( &m_xPushButtonSelectSummaryAddress, {false, 1, 0} );
|
||||
}
|
||||
|
||||
caf::PdmUiGroup* appearanceGroup = uiOrdering.addNewGroup( "Appearance" );
|
||||
|
@ -539,7 +539,7 @@ RiuQwtSymbol::PointSymbolEnum RimSummaryCurveAppearanceCalculator::cycledSymbol(
|
||||
int RimSummaryCurveAppearanceCalculator::cycledLineThickness( int index )
|
||||
{
|
||||
static const int thicknessCount = 3;
|
||||
static const int thicknesses[] = { 1, 3, 5 };
|
||||
static const int thicknesses[] = {1, 3, 5};
|
||||
|
||||
if ( index < 0 ) return 1;
|
||||
return ( thicknesses[( index ) % thicknessCount] );
|
||||
|
@ -62,7 +62,7 @@ private:
|
||||
caf::PdmField<bool> m_showLegend;
|
||||
|
||||
// Filter fields
|
||||
caf::PdmChildField<RimSummaryFilter_OBSOLETE*> m_summaryFilter;
|
||||
caf::PdmChildField<RimSummaryFilter_OBSOLETE*> m_summaryFilter;
|
||||
caf::PdmField<std::vector<RifEclipseSummaryAddress>> m_uiFilterResultMultiSelection;
|
||||
|
||||
caf::PdmChildField<RimSummaryCurveAutoName*> m_curveNameConfig;
|
||||
|
@ -36,7 +36,9 @@ void caf::AppEnum<RimSummaryFilter_OBSOLETE::SummaryFilterType>::setUp()
|
||||
addItem( RimSummaryFilter_OBSOLETE::SUM_FILTER_REGION, "SUM_FILTER_REGION", "Region" );
|
||||
addItem( RimSummaryFilter_OBSOLETE::SUM_FILTER_REGION_2_REGION, "SUM_FILTER_REGION_2_REGION", "Region-Region" );
|
||||
addItem( RimSummaryFilter_OBSOLETE::SUM_FILTER_WELL_LGR, "SUM_FILTER_WELL_LGR", "Lgr-Well" );
|
||||
addItem( RimSummaryFilter_OBSOLETE::SUM_FILTER_WELL_COMPLETION_LGR, "SUM_FILTER_WELL_COMPLETION_LGR", "Lgr-Completion" );
|
||||
addItem( RimSummaryFilter_OBSOLETE::SUM_FILTER_WELL_COMPLETION_LGR,
|
||||
"SUM_FILTER_WELL_COMPLETION_LGR",
|
||||
"Lgr-Completion" );
|
||||
addItem( RimSummaryFilter_OBSOLETE::SUM_FILTER_BLOCK_LGR, "SUM_FILTER_BLOCK_LGR", "Lgr-Block" );
|
||||
addItem( RimSummaryFilter_OBSOLETE::SUM_FILTER_MISC, "SUM_FILTER_MISC", "Misc" );
|
||||
addItem( RimSummaryFilter_OBSOLETE::SUM_FILTER_AQUIFER, "SUM_FILTER_AQUIFER", "Aquifer" );
|
||||
@ -325,8 +327,8 @@ bool RimSummaryFilter_OBSOLETE::isIncludedByFilter( const RifEclipseSummaryAddre
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimSummaryFilter_OBSOLETE::isSumVarTypeMatchingFilterType( SummaryFilterType sumFilterType,
|
||||
RifEclipseSummaryAddress::SummaryVarCategory sumVarType )
|
||||
bool RimSummaryFilter_OBSOLETE::isSumVarTypeMatchingFilterType( SummaryFilterType sumFilterType,
|
||||
RifEclipseSummaryAddress::SummaryVarCategory sumVarType )
|
||||
{
|
||||
if ( sumVarType == RifEclipseSummaryAddress::SUMMARY_INVALID ) return false;
|
||||
if ( sumFilterType == SUM_FILTER_ANY || sumFilterType == SUM_FILTER_VAR_STRING ) return true;
|
||||
@ -505,8 +507,8 @@ void RimSummaryFilter_OBSOLETE::defineUiOrdering( QString uiConfigName, caf::Pdm
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryFilter_OBSOLETE::fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
||||
const QVariant& oldValue,
|
||||
const QVariant& newValue )
|
||||
const QVariant& oldValue,
|
||||
const QVariant& newValue )
|
||||
{
|
||||
caf::PdmObject* parent = dynamic_cast<caf::PdmObject*>( this->parentField()->ownerObject() );
|
||||
|
||||
|
@ -331,7 +331,7 @@ QString RimSummaryPlot::asciiDataForSummaryPlotExport( DateTimePeriod resampling
|
||||
populateTimeHistoryCurvesData( m_gridTimeHistoryCurves.childObjects(), &timeHistoryCurvesData );
|
||||
|
||||
// Export observed data
|
||||
appendToExportData( out, { summaryCurvesObsData }, showTimeAsLongString );
|
||||
appendToExportData( out, {summaryCurvesObsData}, showTimeAsLongString );
|
||||
|
||||
std::vector<CurvesData> exportData( 2 );
|
||||
|
||||
@ -353,7 +353,7 @@ QString RimSummaryPlot::asciiDataForSummaryPlotExport( DateTimePeriod resampling
|
||||
CurvesData asciiCurvesData;
|
||||
populateAsciiDataCurvesData( m_asciiDataCurves.childObjects(), &asciiCurvesData );
|
||||
|
||||
appendToExportData( out, { asciiCurvesData }, showTimeAsLongString );
|
||||
appendToExportData( out, {asciiCurvesData}, showTimeAsLongString );
|
||||
}
|
||||
|
||||
return out;
|
||||
@ -1176,7 +1176,7 @@ void RimSummaryPlot::addCurveNoUpdate( RimSummaryCurve* curve )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryPlot::deleteCurve( RimSummaryCurve* curve )
|
||||
{
|
||||
deleteCurves( { curve } );
|
||||
deleteCurves( {curve} );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -1497,7 +1497,7 @@ void RimSummaryPlot::updateZoomFromQwt()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::set<RimPlotAxisPropertiesInterface*> RimSummaryPlot::allPlotAxes() const
|
||||
{
|
||||
return { m_timeAxisProperties, m_bottomAxisProperties, m_leftYAxisProperties, m_rightYAxisProperties };
|
||||
return {m_timeAxisProperties, m_bottomAxisProperties, m_leftYAxisProperties, m_rightYAxisProperties};
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -2097,13 +2097,13 @@ void populateTimeHistoryCurvesData( std::vector<RimGridTimeHistoryCurve*> curves
|
||||
if ( curveCaseName == curvesData->caseNames[i] ) casePosInList = i;
|
||||
}
|
||||
|
||||
CurveData curveData = { curve->curveExportDescription(), RifEclipseSummaryAddress(), curve->yValues() };
|
||||
CurveData curveData = {curve->curveExportDescription(), RifEclipseSummaryAddress(), curve->yValues()};
|
||||
|
||||
if ( casePosInList == cvf::UNDEFINED_SIZE_T )
|
||||
{
|
||||
curvesData->caseNames.push_back( curveCaseName );
|
||||
curvesData->timeSteps.push_back( curve->timeStepValues() );
|
||||
curvesData->allCurveData.push_back( std::vector<CurveData>( { curveData } ) );
|
||||
curvesData->allCurveData.push_back( std::vector<CurveData>( {curveData} ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -2129,13 +2129,13 @@ void populateAsciiDataCurvesData( std::vector<RimAsciiDataCurve*> curves, Curves
|
||||
|
||||
size_t casePosInList = cvf::UNDEFINED_SIZE_T;
|
||||
|
||||
CurveData curveData = { curve->curveExportDescription(), RifEclipseSummaryAddress(), curve->yValues() };
|
||||
CurveData curveData = {curve->curveExportDescription(), RifEclipseSummaryAddress(), curve->yValues()};
|
||||
|
||||
if ( casePosInList == cvf::UNDEFINED_SIZE_T )
|
||||
{
|
||||
curvesData->caseNames.push_back( "" );
|
||||
curvesData->timeSteps.push_back( curve->timeSteps() );
|
||||
curvesData->allCurveData.push_back( std::vector<CurveData>( { curveData } ) );
|
||||
curvesData->allCurveData.push_back( std::vector<CurveData>( {curveData} ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -2171,7 +2171,7 @@ void populateSummaryCurvesData( std::vector<RimSummaryCurve*> curves, SummaryCur
|
||||
if ( curveCaseName == curvesData->caseNames[i] ) casePosInList = i;
|
||||
}
|
||||
|
||||
CurveData curveData = { curve->curveExportDescription(), curve->summaryAddressY(), curve->valuesY() };
|
||||
CurveData curveData = {curve->curveExportDescription(), curve->summaryAddressY(), curve->valuesY()};
|
||||
CurveData errorCurveData;
|
||||
|
||||
// Error data
|
||||
@ -2187,7 +2187,7 @@ void populateSummaryCurvesData( std::vector<RimSummaryCurve*> curves, SummaryCur
|
||||
|
||||
if ( casePosInList == cvf::UNDEFINED_SIZE_T )
|
||||
{
|
||||
auto curveDataList = std::vector<CurveData>( { curveData } );
|
||||
auto curveDataList = std::vector<CurveData>( {curveData} );
|
||||
if ( hasErrorData ) curveDataList.push_back( errorCurveData );
|
||||
|
||||
curvesData->caseNames.push_back( curveCaseName );
|
||||
|
@ -1117,12 +1117,12 @@ size_t RigCaseCellResultsData::findOrLoadKnownScalarResult( const RigEclipseResu
|
||||
}
|
||||
else if ( resVarAddr.m_resultCatType == RiaDefines::UNDEFINED )
|
||||
{
|
||||
std::vector<RiaDefines::ResultCatType> searchOrder = { RiaDefines::STATIC_NATIVE,
|
||||
RiaDefines::DYNAMIC_NATIVE,
|
||||
RiaDefines::SOURSIMRL,
|
||||
RiaDefines::GENERATED,
|
||||
RiaDefines::INPUT_PROPERTY,
|
||||
RiaDefines::FORMATION_NAMES };
|
||||
std::vector<RiaDefines::ResultCatType> searchOrder = {RiaDefines::STATIC_NATIVE,
|
||||
RiaDefines::DYNAMIC_NATIVE,
|
||||
RiaDefines::SOURSIMRL,
|
||||
RiaDefines::GENERATED,
|
||||
RiaDefines::INPUT_PROPERTY,
|
||||
RiaDefines::FORMATION_NAMES};
|
||||
|
||||
size_t scalarResultIndex = this->findOrLoadKnownScalarResultByResultTypeOrder( resVarAddr, searchOrder );
|
||||
|
||||
@ -1370,12 +1370,12 @@ size_t RigCaseCellResultsData::findOrLoadKnownScalarResult( const RigEclipseResu
|
||||
size_t RigCaseCellResultsData::findOrLoadKnownScalarResultByResultTypeOrder(
|
||||
const RigEclipseResultAddress& resVarAddr, const std::vector<RiaDefines::ResultCatType>& resultCategorySearchOrder )
|
||||
{
|
||||
std::set<RiaDefines::ResultCatType> otherResultTypesToSearch = { RiaDefines::STATIC_NATIVE,
|
||||
RiaDefines::DYNAMIC_NATIVE,
|
||||
RiaDefines::SOURSIMRL,
|
||||
RiaDefines::INPUT_PROPERTY,
|
||||
RiaDefines::GENERATED,
|
||||
RiaDefines::FORMATION_NAMES };
|
||||
std::set<RiaDefines::ResultCatType> otherResultTypesToSearch = {RiaDefines::STATIC_NATIVE,
|
||||
RiaDefines::DYNAMIC_NATIVE,
|
||||
RiaDefines::SOURSIMRL,
|
||||
RiaDefines::INPUT_PROPERTY,
|
||||
RiaDefines::GENERATED,
|
||||
RiaDefines::FORMATION_NAMES};
|
||||
|
||||
for ( const auto& resultType : resultCategorySearchOrder )
|
||||
{
|
||||
|
@ -97,14 +97,14 @@ bool RigCellGeometryTools::estimateHexOverlapWithBoundingBox( const std::array<c
|
||||
|
||||
std::array<cvf::Vec3d, 8> overlapCorners = hexCorners;
|
||||
|
||||
std::vector<cvf::Vec3d> uniqueTopPoints = { hexCorners[0], hexCorners[1], hexCorners[2], hexCorners[3] };
|
||||
std::vector<cvf::Vec3d> uniqueTopPoints = {hexCorners[0], hexCorners[1], hexCorners[2], hexCorners[3]};
|
||||
uniqueTopPoints.erase( std::unique( uniqueTopPoints.begin(), uniqueTopPoints.end() ), uniqueTopPoints.end() );
|
||||
if ( uniqueTopPoints.size() < 3 ) return false;
|
||||
|
||||
cvf::Plane topPlane;
|
||||
if ( !topPlane.setFromPoints( uniqueTopPoints[0], uniqueTopPoints[1], uniqueTopPoints[2] ) ) return false;
|
||||
|
||||
std::vector<cvf::Vec3d> uniqueBottomPoints = { hexCorners[4], hexCorners[5], hexCorners[6], hexCorners[7] };
|
||||
std::vector<cvf::Vec3d> uniqueBottomPoints = {hexCorners[4], hexCorners[5], hexCorners[6], hexCorners[7]};
|
||||
uniqueBottomPoints.erase( std::unique( uniqueBottomPoints.begin(), uniqueBottomPoints.end() ),
|
||||
uniqueBottomPoints.end() );
|
||||
if ( uniqueBottomPoints.size() < 3 ) return false;
|
||||
@ -256,7 +256,7 @@ void RigCellGeometryTools::simplifyPolygon( std::vector<cvf::Vec3d>* vertices, d
|
||||
}
|
||||
else
|
||||
{
|
||||
std::vector<cvf::Vec3d> newVertices = { vertices->front(), vertices->back() };
|
||||
std::vector<cvf::Vec3d> newVertices = {vertices->front(), vertices->back()};
|
||||
*vertices = newVertices;
|
||||
}
|
||||
}
|
||||
@ -654,7 +654,7 @@ std::pair<cvf::Vec3d, cvf::Vec3d> RigCellGeometryTools::getLineThroughBoundingBo
|
||||
}
|
||||
|
||||
std::pair<cvf::Vec3d, cvf::Vec3d> line;
|
||||
line = { startPoint, endPoint };
|
||||
line = {startPoint, endPoint};
|
||||
return line;
|
||||
}
|
||||
|
||||
|
@ -98,7 +98,7 @@ void RigGeoMechWellLogExtractor::performCurveDataSmoothing( int
|
||||
|
||||
if ( !mds->empty() && !values->empty() )
|
||||
{
|
||||
std::vector<std::vector<double>*> dependentValues = { tvds, &interfaceShValuesDbl, &interfacePorePressuresDbl };
|
||||
std::vector<std::vector<double>*> dependentValues = {tvds, &interfaceShValuesDbl, &interfacePorePressuresDbl};
|
||||
|
||||
std::vector<unsigned char> smoothOrFilterSegments = determineFilteringOrSmoothing( interfacePorePressuresDbl );
|
||||
filterShortSegments( mds, values, &smoothOrFilterSegments, dependentValues );
|
||||
@ -625,7 +625,7 @@ void RigGeoMechWellLogExtractor::setWellLogMdAndPoissonRatio( const std::vector<
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::set<RigGeoMechWellLogExtractor::WbsParameterSource> RigGeoMechWellLogExtractor::supportedSourcesForPorePressure()
|
||||
{
|
||||
return { AUTO, GRID, LAS_FILE, ELEMENT_PROPERTY_TABLE, HYDROSTATIC_PP };
|
||||
return {AUTO, GRID, LAS_FILE, ELEMENT_PROPERTY_TABLE, HYDROSTATIC_PP};
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -633,7 +633,7 @@ std::set<RigGeoMechWellLogExtractor::WbsParameterSource> RigGeoMechWellLogExtrac
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::set<RigGeoMechWellLogExtractor::WbsParameterSource> RigGeoMechWellLogExtractor::supportedSourcesForPoissonRatio()
|
||||
{
|
||||
return { AUTO, LAS_FILE, ELEMENT_PROPERTY_TABLE, USER_DEFINED };
|
||||
return {AUTO, LAS_FILE, ELEMENT_PROPERTY_TABLE, USER_DEFINED};
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -641,7 +641,7 @@ std::set<RigGeoMechWellLogExtractor::WbsParameterSource> RigGeoMechWellLogExtrac
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::set<RigGeoMechWellLogExtractor::WbsParameterSource> RigGeoMechWellLogExtractor::supportedSourcesForUcs()
|
||||
{
|
||||
return { AUTO, LAS_FILE, ELEMENT_PROPERTY_TABLE, USER_DEFINED };
|
||||
return {AUTO, LAS_FILE, ELEMENT_PROPERTY_TABLE, USER_DEFINED};
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -856,10 +856,10 @@ void RigMainGrid::setDualPorosity( bool enable )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::array<double, 6> RigMainGrid::defaultMapAxes()
|
||||
{
|
||||
const double origin[2] = { 0.0, 0.0 };
|
||||
const double xPoint[2] = { 1.0, 0.0 };
|
||||
const double yPoint[2] = { 0.0, 1.0 };
|
||||
const double origin[2] = {0.0, 0.0};
|
||||
const double xPoint[2] = {1.0, 0.0};
|
||||
const double yPoint[2] = {0.0, 1.0};
|
||||
|
||||
// Order (see Elipse Reference Manual for keyword MAPAXES): Y_x, Y_y, O_x, O_y, X_x, X_y
|
||||
return { yPoint[0], yPoint[1], origin[0], origin[1], xPoint[0], xPoint[1] };
|
||||
return {yPoint[0], yPoint[1], origin[0], origin[1], xPoint[0], xPoint[1]};
|
||||
}
|
||||
|
@ -887,9 +887,9 @@ private:
|
||||
else // if ( endToGrow > 1 )
|
||||
{
|
||||
m_branchLines.push_back( std::make_pair( false,
|
||||
std::deque<size_t>{ branchList.front(),
|
||||
cellWithNeighborsPair.first,
|
||||
neighbour } ) );
|
||||
std::deque<size_t>{branchList.front(),
|
||||
cellWithNeighborsPair.first,
|
||||
neighbour} ) );
|
||||
auto newBranchLineIt = std::prev( m_branchLines.end() );
|
||||
growBranchListEnd( newBranchLineIt );
|
||||
if ( newBranchLineIt->second.size() == 3 )
|
||||
@ -987,11 +987,11 @@ private:
|
||||
{
|
||||
if ( prevCell == cvf::UNDEFINED_SIZE_T )
|
||||
{
|
||||
m_branchLines.push_back( std::make_pair( false, std::deque<size_t>{ startCell, nb } ) );
|
||||
m_branchLines.push_back( std::make_pair( false, std::deque<size_t>{startCell, nb} ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
m_branchLines.push_back( std::make_pair( false, std::deque<size_t>{ prevCell, startCell, nb } ) );
|
||||
m_branchLines.push_back( std::make_pair( false, std::deque<size_t>{prevCell, startCell, nb} ) );
|
||||
}
|
||||
|
||||
m_unusedWellCellIndices.erase( nb );
|
||||
|
@ -55,7 +55,7 @@ bool RiuCadNavigation::handleInputEvent( QInputEvent* inputEvent )
|
||||
|
||||
if ( me->button() == Qt::MidButton && me->modifiers() == Qt::NoModifier && isRotationEnabled() )
|
||||
{
|
||||
this->pickAndSetPointOfInterest(me->x(), me->y());
|
||||
this->pickAndSetPointOfInterest( me->x(), me->y() );
|
||||
|
||||
m_trackball->startNavigation( cvf::ManipulatorTrackball::ROTATE, translatedMousePosX, translatedMousePosY );
|
||||
m_isNavigating = true;
|
||||
|
@ -68,8 +68,7 @@ bool RiuComparisonViewMover::eventFilter( QObject* watched, QEvent* event )
|
||||
m_viewer->setComparisonViewVisibleNormalizedRect(
|
||||
cvf::Rectf( normMousePos.x(),
|
||||
orgCompViewWindow.min().y(),
|
||||
( orgCompViewWindow.min().x() + orgCompViewWindow.width() ) -
|
||||
normMousePos.x(),
|
||||
( orgCompViewWindow.min().x() + orgCompViewWindow.width() ) - normMousePos.x(),
|
||||
orgCompViewWindow.height() ) );
|
||||
|
||||
return true;
|
||||
|
@ -55,7 +55,7 @@ bool RiuGeoQuestNavigation::handleInputEvent( QInputEvent* inputEvent )
|
||||
|
||||
if ( me->button() == Qt::LeftButton && isRotationEnabled() )
|
||||
{
|
||||
this->pickAndSetPointOfInterest(me->x(), me->y());
|
||||
this->pickAndSetPointOfInterest( me->x(), me->y() );
|
||||
|
||||
m_trackball->startNavigation( cvf::ManipulatorTrackball::ROTATE, translatedMousePosX, translatedMousePosY );
|
||||
m_isNavigating = true;
|
||||
|
@ -482,7 +482,7 @@ void RiuGridPlotWindow::dropEvent( QDropEvent* event )
|
||||
|
||||
if ( insertAfter != plotToMove )
|
||||
{
|
||||
m_plotDefinition->movePlotsToThis( { plotToMove }, insertAfter );
|
||||
m_plotDefinition->movePlotsToThis( {plotToMove}, insertAfter );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -574,7 +574,7 @@ void RiuPlotMainWindow::updateGridPlotWindowToolBar()
|
||||
RimGridPlotWindow* plotWindow = dynamic_cast<RimGridPlotWindow*>( m_activePlotViewWindow.p() );
|
||||
if ( plotWindow )
|
||||
{
|
||||
std::vector<caf::PdmFieldHandle*> toolBarFields = { plotWindow->columnCountField() };
|
||||
std::vector<caf::PdmFieldHandle*> toolBarFields = {plotWindow->columnCountField()};
|
||||
m_gridPlotWindowToolBarEditor->setFields( toolBarFields );
|
||||
m_gridPlotWindowToolBarEditor->updateUi();
|
||||
m_gridPlotWindowToolBarEditor->show();
|
||||
|
@ -75,7 +75,7 @@ void RiuQwtPlotTools::setCommonPlotBehaviour( QwtPlot* plot )
|
||||
plot->setAxisFont( QwtPlot::yRight, axisFont );
|
||||
|
||||
// Axis title font
|
||||
std::vector<QwtPlot::Axis> axes = { QwtPlot::xBottom, QwtPlot::xTop, QwtPlot::yLeft, QwtPlot::yRight };
|
||||
std::vector<QwtPlot::Axis> axes = {QwtPlot::xBottom, QwtPlot::xTop, QwtPlot::yLeft, QwtPlot::yRight};
|
||||
|
||||
for ( QwtPlot::Axis axis : axes )
|
||||
{
|
||||
@ -139,14 +139,14 @@ void RiuQwtPlotTools::enableDateBasedBottomXAxis( QwtPlot*
|
||||
{
|
||||
QwtDateScaleDraw* scaleDraw = new QwtDateScaleDraw( Qt::UTC );
|
||||
|
||||
std::set<QwtDate::IntervalType> intervals = { QwtDate::Year,
|
||||
QwtDate::Month,
|
||||
QwtDate::Week,
|
||||
QwtDate::Day,
|
||||
QwtDate::Hour,
|
||||
QwtDate::Minute,
|
||||
QwtDate::Second,
|
||||
QwtDate::Millisecond };
|
||||
std::set<QwtDate::IntervalType> intervals = {QwtDate::Year,
|
||||
QwtDate::Month,
|
||||
QwtDate::Week,
|
||||
QwtDate::Day,
|
||||
QwtDate::Hour,
|
||||
QwtDate::Minute,
|
||||
QwtDate::Second,
|
||||
QwtDate::Millisecond};
|
||||
|
||||
for ( QwtDate::IntervalType interval : intervals )
|
||||
{
|
||||
|
@ -647,7 +647,7 @@ RiuWidgetStyleSheet RiuQwtPlotWidget::createCanvasStyleSheet() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuQwtPlotWidget::setDefaults()
|
||||
{
|
||||
setEnabledAxes( { QwtPlot::xTop, QwtPlot::yLeft } );
|
||||
setEnabledAxes( {QwtPlot::xTop, QwtPlot::yLeft} );
|
||||
RiuQwtPlotTools::setCommonPlotBehaviour( this );
|
||||
}
|
||||
|
||||
@ -789,7 +789,7 @@ void RiuQwtPlotWidget::highlightCurve( const QwtPlotCurve* closestCurve )
|
||||
symbol->setPen( blendedSymbolLineColor, symbol->pen().width(), symbol->pen().style() );
|
||||
}
|
||||
}
|
||||
CurveColors curveColors = { curveColor, symbolColor, symbolLineColor };
|
||||
CurveColors curveColors = {curveColor, symbolColor, symbolLineColor};
|
||||
m_originalCurveColors.insert( std::make_pair( plotCurve, curveColors ) );
|
||||
m_originalCurveColors.insert( std::make_pair( plotCurve, curveColors ) );
|
||||
m_originalZValues.insert( std::make_pair( plotCurve, zValue ) );
|
||||
|
@ -55,7 +55,7 @@ bool RiuRmsNavigation::handleInputEvent( QInputEvent* inputEvent )
|
||||
|
||||
if ( me->button() == Qt::MidButton && isRotationEnabled() )
|
||||
{
|
||||
this->pickAndSetPointOfInterest(me->x(), me->y());
|
||||
this->pickAndSetPointOfInterest( me->x(), me->y() );
|
||||
|
||||
m_trackball->startNavigation( cvf::ManipulatorTrackball::ROTATE, translatedMousePosX, translatedMousePosY );
|
||||
m_isNavigating = true;
|
||||
|
@ -92,55 +92,55 @@ private:
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuSummaryCurveDefSelection::RiuSummaryCurveDefSelection()
|
||||
: m_identifierFieldsMap( {
|
||||
{ RifEclipseSummaryAddress::SUMMARY_FIELD,
|
||||
{ { new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME ) } } },
|
||||
{ RifEclipseSummaryAddress::SUMMARY_AQUIFER,
|
||||
{ { new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_AQUIFER_NUMBER ) },
|
||||
{ new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME ) } } },
|
||||
{ RifEclipseSummaryAddress::SUMMARY_NETWORK,
|
||||
{ { new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME ) } } },
|
||||
{ RifEclipseSummaryAddress::SUMMARY_MISC,
|
||||
{ { new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME ) } } },
|
||||
{ RifEclipseSummaryAddress::SUMMARY_REGION,
|
||||
{ { new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_REGION_NUMBER ) },
|
||||
{ new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME ) } } },
|
||||
{ RifEclipseSummaryAddress::SUMMARY_REGION_2_REGION,
|
||||
{ { new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_REGION_2_REGION ) },
|
||||
{ new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME ) } } },
|
||||
{ RifEclipseSummaryAddress::SUMMARY_WELL_GROUP,
|
||||
{ { new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_WELL_GROUP_NAME ) },
|
||||
{ new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME ) } } },
|
||||
{ RifEclipseSummaryAddress::SUMMARY_WELL,
|
||||
{ { new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_WELL_NAME ) },
|
||||
{ new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME ) } } },
|
||||
{ RifEclipseSummaryAddress::SUMMARY_WELL_COMPLETION,
|
||||
{ { new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_WELL_NAME ) },
|
||||
{ new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_CELL_IJK ) },
|
||||
{ new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME ) } } },
|
||||
{ RifEclipseSummaryAddress::SUMMARY_WELL_COMPLETION_LGR,
|
||||
{ { new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_LGR_NAME ) },
|
||||
{ new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_WELL_NAME ) },
|
||||
{ new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_CELL_IJK ) },
|
||||
{ new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME ) } } },
|
||||
{ RifEclipseSummaryAddress::SUMMARY_WELL_LGR,
|
||||
{ { new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_LGR_NAME ) },
|
||||
{ new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_WELL_NAME ) },
|
||||
{ new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME ) } } },
|
||||
{ RifEclipseSummaryAddress::SUMMARY_WELL_SEGMENT,
|
||||
{ { new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_WELL_NAME ) },
|
||||
{ new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_SEGMENT_NUMBER ) },
|
||||
{ new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME ) } } },
|
||||
{ RifEclipseSummaryAddress::SUMMARY_BLOCK,
|
||||
{ { new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_CELL_IJK ) },
|
||||
{ new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME ) } } },
|
||||
{ RifEclipseSummaryAddress::SUMMARY_BLOCK_LGR,
|
||||
{ { new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_LGR_NAME ) },
|
||||
{ new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_CELL_IJK ) },
|
||||
{ new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME ) } } },
|
||||
{ RifEclipseSummaryAddress::SUMMARY_CALCULATED,
|
||||
{ { new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME ) } } },
|
||||
{ RifEclipseSummaryAddress::SUMMARY_IMPORTED,
|
||||
{ { new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME ) } } },
|
||||
{RifEclipseSummaryAddress::SUMMARY_FIELD,
|
||||
{{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME )}}},
|
||||
{RifEclipseSummaryAddress::SUMMARY_AQUIFER,
|
||||
{{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_AQUIFER_NUMBER )},
|
||||
{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME )}}},
|
||||
{RifEclipseSummaryAddress::SUMMARY_NETWORK,
|
||||
{{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME )}}},
|
||||
{RifEclipseSummaryAddress::SUMMARY_MISC,
|
||||
{{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME )}}},
|
||||
{RifEclipseSummaryAddress::SUMMARY_REGION,
|
||||
{{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_REGION_NUMBER )},
|
||||
{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME )}}},
|
||||
{RifEclipseSummaryAddress::SUMMARY_REGION_2_REGION,
|
||||
{{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_REGION_2_REGION )},
|
||||
{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME )}}},
|
||||
{RifEclipseSummaryAddress::SUMMARY_WELL_GROUP,
|
||||
{{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_WELL_GROUP_NAME )},
|
||||
{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME )}}},
|
||||
{RifEclipseSummaryAddress::SUMMARY_WELL,
|
||||
{{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_WELL_NAME )},
|
||||
{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME )}}},
|
||||
{RifEclipseSummaryAddress::SUMMARY_WELL_COMPLETION,
|
||||
{{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_WELL_NAME )},
|
||||
{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_CELL_IJK )},
|
||||
{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME )}}},
|
||||
{RifEclipseSummaryAddress::SUMMARY_WELL_COMPLETION_LGR,
|
||||
{{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_LGR_NAME )},
|
||||
{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_WELL_NAME )},
|
||||
{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_CELL_IJK )},
|
||||
{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME )}}},
|
||||
{RifEclipseSummaryAddress::SUMMARY_WELL_LGR,
|
||||
{{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_LGR_NAME )},
|
||||
{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_WELL_NAME )},
|
||||
{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME )}}},
|
||||
{RifEclipseSummaryAddress::SUMMARY_WELL_SEGMENT,
|
||||
{{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_WELL_NAME )},
|
||||
{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_SEGMENT_NUMBER )},
|
||||
{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME )}}},
|
||||
{RifEclipseSummaryAddress::SUMMARY_BLOCK,
|
||||
{{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_CELL_IJK )},
|
||||
{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME )}}},
|
||||
{RifEclipseSummaryAddress::SUMMARY_BLOCK_LGR,
|
||||
{{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_LGR_NAME )},
|
||||
{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_CELL_IJK )},
|
||||
{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME )}}},
|
||||
{RifEclipseSummaryAddress::SUMMARY_CALCULATED,
|
||||
{{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME )}}},
|
||||
{RifEclipseSummaryAddress::SUMMARY_IMPORTED,
|
||||
{{new SummaryIdentifierAndField( RifEclipseSummaryAddress::INPUT_VECTOR_NAME )}}},
|
||||
} )
|
||||
{
|
||||
CAF_PDM_InitFieldNoDefault( &m_selectedSources, "SummaryCases", "Cases", "", "", "" );
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -182,7 +182,7 @@ RiuViewer::RiuViewer( const QGLFormat& format, QWidget* parent )
|
||||
m_scaleLegend->setOrientation( caf::OverlayScaleLegend::HORIZONTAL );
|
||||
|
||||
m_comparisonWindowMover = new RiuComparisonViewMover( this );
|
||||
this->setComparisonViewToFollowAnimation(false);
|
||||
this->setComparisonViewToFollowAnimation( false );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -313,7 +313,7 @@ void RiuViewer::slotSetCurrentFrame( int frameIndex )
|
||||
|
||||
// Update views using this as comparison
|
||||
Rim3dView* view = dynamic_cast<Rim3dView*>( m_rimView.p() );
|
||||
if (view)
|
||||
if ( view )
|
||||
{
|
||||
std::set<Rim3dView*> containingViews = view->viewsUsingThisAsComparisonView();
|
||||
|
||||
@ -356,7 +356,7 @@ void RiuViewer::setOwnerReservoirView( RiuViewerToViewInterface* owner )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuViewer::paintOverlayItems( QPainter* painter )
|
||||
{
|
||||
// Update the legend layout on every redraw as the legends stores their own position,
|
||||
// Update the legend layout on every redraw as the legends stores their own position,
|
||||
// and when they are shared between views the positions are overwritten.
|
||||
updateLegendLayout();
|
||||
|
||||
@ -987,7 +987,7 @@ void RiuViewer::setAxisLabels( const cvf::String& xLabel, const cvf::String& yLa
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuViewerCommands* RiuViewer::viewerCommands() const
|
||||
{
|
||||
|
@ -1356,15 +1356,15 @@ void RiuViewerCommands::handleTextPicking( int winPosX, int winPosY, cvf::HitIte
|
||||
{
|
||||
for ( size_t pIdx = 0; pIdx < partCollection.size(); ++pIdx )
|
||||
{
|
||||
DrawableText* textDrawable = dynamic_cast<DrawableText*>(partCollection[pIdx]->drawable());
|
||||
DrawableText* textDrawable = dynamic_cast<DrawableText*>( partCollection[pIdx]->drawable() );
|
||||
if ( textDrawable )
|
||||
{
|
||||
cvf::Vec3d ppoint;
|
||||
if ( textDrawable->rayIntersect(*ray, *(m_viewer->mainCamera()), &ppoint) )
|
||||
if ( textDrawable->rayIntersect( *ray, *( m_viewer->mainCamera() ), &ppoint ) )
|
||||
{
|
||||
cvf::ref<HitItem> hitItem = new HitItem(0, ppoint);
|
||||
hitItem->setPart(partCollection[pIdx].p());
|
||||
hitItems->add(hitItem.p());
|
||||
cvf::ref<HitItem> hitItem = new HitItem( 0, ppoint );
|
||||
hitItem->setPart( partCollection[pIdx].p() );
|
||||
hitItems->add( hitItem.p() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user