(#396) Setting default curve color on creation

This commit is contained in:
Pål Hagen
2015-09-03 10:55:54 +02:00
parent bcab7f2248
commit 9a6221b7e8
4 changed files with 59 additions and 7 deletions

View File

@@ -43,6 +43,7 @@
//==================================================================================================
CAF_PDM_SOURCE_INIT(RimWellLogExtractionCurve, "WellLogEclipseCurve");
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@@ -68,7 +69,6 @@ RimWellLogExtractionCurve::RimWellLogExtractionCurve()
m_geomResultDefinition = new RimGeoMechResultDefinition;
CAF_PDM_InitField(&m_timeStep, "CurveTimeStep", 0,"Time Step", "", "", "");
}
//--------------------------------------------------------------------------------------------------
@@ -140,6 +140,7 @@ void RimWellLogExtractionCurve::updatePlotData()
if (isNeedingUpdate)
{
m_plotCurve->setSamples(values.data(), depthValues.data(), (int)depthValues.size());
m_plotCurve->setPen(QPen(QColor(m_curveColor.value().rByte(), m_curveColor.value().gByte(), m_curveColor.value().bByte())));
RimWellLogPlot* wellLogPlot;
firstAnchestorOrThisOfType(wellLogPlot);