mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user