Refactored addition of well path models

Well path models can now be added to geo mech models. Moved code that
adds well path models to a scene from RimEclipseView to
RimView::addWellPathsToScene(). This new function is now used by both
RimEclipseView and RimGeoMechView. Made sure that it is not needed to
load a result before well paths appear. TODO: Compute characteristic hex
element size for geo mech models.
This commit is contained in:
Stein Dale
2015-06-11 13:44:21 +02:00
parent 3d0e0ace7a
commit b59695f352
4 changed files with 68 additions and 37 deletions

View File

@@ -32,6 +32,8 @@ class RimCellRangeFilterCollection;
namespace cvf
{
class BoundingBox;
class Scene;
class Transform;
}
@@ -108,6 +110,7 @@ public:
protected:
void setDefaultView();
void addWellPathsToScene(cvf::Scene* scene, const cvf::Vec3d& displayModelOffset, double characteristicCellSize, const cvf::BoundingBox& boundingBox, cvf::Transform* scaleTransform);
virtual void createDisplayModel() = 0;
virtual void updateDisplayModelVisibility() = 0;