(#657) Wired up UI to viz model generation for cross sections

This commit is contained in:
Magne Sjaastad
2015-11-19 11:41:16 +01:00
parent 5ac3dea46d
commit 9c2b1b44a6
11 changed files with 205 additions and 63 deletions

View File

@@ -28,6 +28,7 @@
#include "RimProject.h"
#include "RimWellPath.h"
#include "RivCrossSectionPartMgr.h"
namespace caf {
@@ -78,7 +79,14 @@ RimCrossSection::RimCrossSection()
//--------------------------------------------------------------------------------------------------
void RimCrossSection::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
{
m_crossSectionPartMgr = NULL;
RimView* rimView = NULL;
this->firstAnchestorOrThisOfType(rimView);
if (rimView)
{
rimView->scheduleCreateDisplayModelAndRedraw();
}
}
//--------------------------------------------------------------------------------------------------
@@ -213,3 +221,13 @@ std::vector< std::vector <cvf::Vec3d> > RimCrossSection::polyLines() const
return line;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RivCrossSectionPartMgr* RimCrossSection::crossSectionPartMgr()
{
if (m_crossSectionPartMgr.isNull()) m_crossSectionPartMgr = new RivCrossSectionPartMgr(this);
return m_crossSectionPartMgr.p();
}