#6171 Fracture Model Plot: Use "Step Left" interpolation for stress gradient.

This commit is contained in:
Kristian Bendiksen 2020-07-08 09:25:07 +02:00
parent fcb99b1987
commit 56cbf6b5df
3 changed files with 13 additions and 0 deletions

View File

@ -478,6 +478,10 @@ void RicNewFractureModelPlotFeature::createStressTrack( RimFractureModelPlot*
curve->setLineThickness( 2 ); curve->setLineThickness( 2 );
curve->setUiName( trackName ); curve->setUiName( trackName );
curve->setAutoNameComponents( false, false, false, false, false ); curve->setAutoNameComponents( false, false, false, false, false );
if ( propertyType == RiaDefines::CurveProperty::STRESS_GRADIENT )
{
curve->setInterpolation( RiuQwtPlotCurve::INTERPOLATION_STEP_LEFT );
}
plotTrack->addCurve( curve ); plotTrack->addCurve( curve );
plotTrack->setAutoScaleXEnabled( true ); plotTrack->setAutoScaleXEnabled( true );

View File

@ -890,6 +890,14 @@ void RimPlotCurve::setSymbol( RiuQwtSymbol::PointSymbolEnum symbolStyle )
m_pointSymbol = symbolStyle; m_pointSymbol = symbolStyle;
} }
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimPlotCurve::setInterpolation( RiuQwtPlotCurve::CurveInterpolationEnum curveInterpolation )
{
m_curveInterpolation = curveInterpolation;
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@ -69,6 +69,7 @@ public:
cvf::Color3f color() const { return m_curveColor; } cvf::Color3f color() const { return m_curveColor; }
void setLineStyle( RiuQwtPlotCurve::LineStyleEnum lineStyle ); void setLineStyle( RiuQwtPlotCurve::LineStyleEnum lineStyle );
void setSymbol( RiuQwtSymbol::PointSymbolEnum symbolStyle ); void setSymbol( RiuQwtSymbol::PointSymbolEnum symbolStyle );
void setInterpolation( RiuQwtPlotCurve::CurveInterpolationEnum );
RiuQwtSymbol::PointSymbolEnum symbol(); RiuQwtSymbol::PointSymbolEnum symbol();
int symbolSize() const; int symbolSize() const;
cvf::Color3f symbolEdgeColor() const; cvf::Color3f symbolEdgeColor() const;