#1335 Connection arrows for all cross-flows also. Made ready for options to show straight arrows, and adjusted a bit.

This commit is contained in:
Jacob Støren
2017-03-17 18:11:06 +01:00
parent c77741f3ab
commit 2fb35af7a6
4 changed files with 137 additions and 34 deletions

View File

@@ -23,6 +23,7 @@
#include "cafPdmPointer.h"
#include "cvfVector3.h"
#include "cvfColor4.h"
#include <list>
#include <vector>
@@ -32,6 +33,7 @@ namespace cvf
{
class ModelBasicList;
class DrawableGeo;
class Part;
}
class RivPipeGeometryGenerator;
@@ -48,8 +50,16 @@ public:
~RivWellConnectionsPartMgr();
void appendDynamicGeometryPartsToModel(cvf::ModelBasicList* model, size_t frameIndex);
private:
cvf::ref<cvf::Part> createArrowPart(const cvf::Vec3f& startPoint,
const cvf::Vec3f& endPoint,
float width,
bool isProducer,
const cvf::Color4f& arrowColor,
bool enableLighting);
cvf::ref< cvf::DrawableGeo> createArrowGeometry(const cvf::Vec3f& startPoint,
const cvf::Vec3f& endPoint,
double width,
@@ -57,5 +67,7 @@ private:
private:
caf::PdmPointer<RimEclipseView> m_rimReservoirView;
caf::PdmPointer<RimEclipseWell> m_rimWell;
caf::PdmPointer<RimEclipseWell> m_rimWell;
bool m_useCurvedArrows;
};