mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-23 23:13:39 -06:00
#2585 Fix linux build
This commit is contained in:
parent
d72d5ba343
commit
62a2ddfe82
@ -41,9 +41,9 @@ Riv3dWellLogPlanePartMgr::Riv3dWellLogPlanePartMgr(RigWellPath* wellPathGeometry
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void Riv3dWellLogPlanePartMgr::append3dWellLogCurvesToModel(cvf::ModelBasicList* model,
|
void Riv3dWellLogPlanePartMgr::append3dWellLogCurvesToModel(cvf::ModelBasicList* model,
|
||||||
const caf::DisplayCoordTransform* displayCoordTransform,
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
||||||
std::vector<Rim3dWellLogCurve*>* rim3dWellLogCurves)
|
std::vector<Rim3dWellLogCurve*> rim3dWellLogCurves)
|
||||||
{
|
{
|
||||||
if (rim3dWellLogCurves->empty()) return;
|
if (rim3dWellLogCurves.empty()) return;
|
||||||
|
|
||||||
m_3dWellLogCurveGeometryGenerator = new Riv3dWellLogCurveGeometryGenerator;
|
m_3dWellLogCurveGeometryGenerator = new Riv3dWellLogCurveGeometryGenerator;
|
||||||
|
|
||||||
@ -71,8 +71,10 @@ void Riv3dWellLogPlanePartMgr::append3dWellLogCurvesToModel(cvf::ModelBasicList*
|
|||||||
if (i % 2 == 0) counter++;
|
if (i % 2 == 0) counter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Rim3dWellLogCurve* rim3dWellLogCurve : *rim3dWellLogCurves)
|
|
||||||
|
for (Rim3dWellLogCurve* rim3dWellLogCurve : rim3dWellLogCurves)
|
||||||
{
|
{
|
||||||
|
std::vector<cvf::Vec3f> vertices = createCurveVertices(rim3dWellLogCurve);
|
||||||
cvf::ref<cvf::Drawable> drawable = m_3dWellLogCurveGeometryGenerator->createDrawable(vertices, indices);
|
cvf::ref<cvf::Drawable> drawable = m_3dWellLogCurveGeometryGenerator->createDrawable(vertices, indices);
|
||||||
|
|
||||||
caf::SurfaceEffectGenerator surfaceGen(cvf::Color4f(255, 0, 0, 0.5), caf::PO_1);
|
caf::SurfaceEffectGenerator surfaceGen(cvf::Color4f(255, 0, 0, 0.5), caf::PO_1);
|
||||||
|
@ -44,7 +44,7 @@ public:
|
|||||||
|
|
||||||
void append3dWellLogCurvesToModel(cvf::ModelBasicList* model,
|
void append3dWellLogCurvesToModel(cvf::ModelBasicList* model,
|
||||||
const caf::DisplayCoordTransform* displayCoordTransform,
|
const caf::DisplayCoordTransform* displayCoordTransform,
|
||||||
std::vector<Rim3dWellLogCurve*>* rim3dWellLogCurves);
|
std::vector<Rim3dWellLogCurve*> rim3dWellLogCurves);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cvf::ref<Riv3dWellLogCurveGeometryGenerator> m_3dWellLogCurveGeometryGenerator;
|
cvf::ref<Riv3dWellLogCurveGeometryGenerator> m_3dWellLogCurveGeometryGenerator;
|
||||||
|
@ -419,7 +419,7 @@ void RivWellPathPartMgr::appendDynamicGeometryPartsToModel(cvf::ModelBasicList*
|
|||||||
appendPerforationsToModel(timeStamp, model, displayCoordTransform, characteristicCellSize);
|
appendPerforationsToModel(timeStamp, model, displayCoordTransform, characteristicCellSize);
|
||||||
|
|
||||||
m_3dWellLogCurvePartMgr = new Riv3dWellLogPlanePartMgr(m_rimWellPath->wellPathGeometry());
|
m_3dWellLogCurvePartMgr = new Riv3dWellLogPlanePartMgr(m_rimWellPath->wellPathGeometry());
|
||||||
m_3dWellLogCurvePartMgr->append3dWellLogCurvesToModel(model, displayCoordTransform, &m_rimWellPath->vectorOf3dWellLogCurves());
|
m_3dWellLogCurvePartMgr->append3dWellLogCurvesToModel(model, displayCoordTransform, m_rimWellPath->vectorOf3dWellLogCurves());
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user