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

@@ -114,7 +114,7 @@ void Riv3dWellLogPlanePartMgr::append3dWellLogCurvesToModel(cvf::ModelBasicList*
continue;
}
caf::MeshEffectGenerator meshEffectGen(curveColor(colorIndex));
caf::MeshEffectGenerator meshEffectGen(rim3dWellLogCurve->color());
meshEffectGen.setLineWidth(2.0f);
cvf::ref<cvf::Effect> effect = meshEffectGen.generateCachedEffect();
@@ -193,14 +193,6 @@ double Riv3dWellLogPlanePartMgr::planeWidth() const
return cellSize * 1.0;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
cvf::Color3f Riv3dWellLogPlanePartMgr::curveColor(size_t index)
{
return RiaColorTables::wellLogPlotPaletteColors().cycledColor3f(index);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -74,8 +74,6 @@ private:
double wellPathCenterToPlotStartOffset(Rim3dWellLogCurveCollection::PlanePosition planePosition) const;
double planeWidth() const;
cvf::Color3f curveColor(size_t index);
private:
cvf::ref<Riv3dWellLogCurveGeometryGenerator> m_3dWellLogCurveGeometryGenerator;
cvf::ref<Riv3dWellLogGridGeometryGenerator> m_3dWellLogGridGeometryGenerator;