Minor tweaks after review.

This commit is contained in:
Kristian Bendiksen 2020-09-28 11:08:41 +02:00
parent 9f92f15279
commit 412df0f33b
2 changed files with 8 additions and 29 deletions

View File

@ -263,22 +263,13 @@ void RicNewFractureModelPlotFeature::createFaciesTrack( RimFractureModelPlot* pl
RimEclipseCase* eclipseCase )
{
RimFractureModelTemplate* fractureModelTemplate = fractureModel->fractureModelTemplate();
if ( !fractureModelTemplate )
{
return;
}
if ( !fractureModelTemplate ) return;
RimFaciesProperties* faciesProperties = fractureModelTemplate->faciesProperties();
if ( !faciesProperties )
{
return;
}
if ( !faciesProperties ) return;
const RimEclipseResultDefinition* faciesDefinition = faciesProperties->faciesDefinition();
if ( !faciesDefinition )
{
return;
}
if ( !faciesDefinition ) return;
RimWellLogTrack* faciesTrack = RicNewWellLogPlotFeatureImpl::createWellLogPlotTrack( false, "Facies", plot );
faciesTrack->setFormationWellPath( fractureModel->thicknessDirectionWellPath() );
@ -291,10 +282,7 @@ void RicNewFractureModelPlotFeature::createFaciesTrack( RimFractureModelPlot* pl
faciesTrack->setPlotTitleVisible( true );
RimColorLegend* faciesColors = faciesProperties->colorLegend();
if ( faciesColors )
{
faciesTrack->setColorShadingLegend( faciesColors );
}
if ( faciesColors ) faciesTrack->setColorShadingLegend( faciesColors );
faciesTrack->setVisibleXRange( 0.0, 0.0 );
faciesTrack->setColSpan( RimPlot::ONE );
@ -341,22 +329,13 @@ void RicNewFractureModelPlotFeature::createLayersTrack( RimFractureModelPlot* pl
faciesTrack->setPlotTitleVisible( true );
RimFractureModelTemplate* fractureModelTemplate = fractureModel->fractureModelTemplate();
if ( !fractureModelTemplate )
{
return;
}
if ( !fractureModelTemplate ) return;
RimFaciesProperties* faciesProperties = fractureModelTemplate->faciesProperties();
if ( !faciesProperties )
{
return;
}
if ( !faciesProperties ) return;
RimColorLegend* faciesColors = faciesProperties->colorLegend();
if ( faciesColors )
{
faciesTrack->setColorShadingLegend( faciesColors );
}
if ( faciesColors ) faciesTrack->setColorShadingLegend( faciesColors );
faciesTrack->setVisibleXRange( 0.0, 0.0 );
faciesTrack->setColSpan( RimPlot::ONE );

View File

@ -101,6 +101,7 @@ protected:
QString uiConfigName,
caf::PdmUiEditorAttribute* attribute ) override;
private:
static RimEclipseCase* getEclipseCase();
static RigEclipseCaseData* getEclipseCaseData();
@ -108,7 +109,6 @@ protected:
static double computeDefaultStressDepth();
protected:
caf::PdmField<int> m_id;
caf::PdmField<double> m_defaultPorosity;
caf::PdmField<double> m_defaultPermeability;