3D Well Log Curves (#2669): Implement control of single color.

* Set a cycled default whenever a curve is added to a collection.
This commit is contained in:
Gaute Lindkvist
2018-04-17 08:38:13 +02:00
parent 501e80b1ad
commit 1180c199b4
5 changed files with 28 additions and 14 deletions

View File

@@ -77,6 +77,8 @@ void Rim3dWellLogCurveCollection::add3dWellLogCurve(Rim3dWellLogCurve* curve)
{
if (curve)
{
size_t index = m_3dWellLogCurves.size();
curve->setColor(RiaColorTables::wellLogPlotPaletteColors().cycledColor3f(index));
m_3dWellLogCurves.push_back(curve);
}
}