mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add polygon classes
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include "RigFormationNames.h"
|
||||
#include "RigGeoMechCaseData.h"
|
||||
|
||||
#include "Polygons/RimPolygonInViewCollection.h"
|
||||
#include "Rim3dOverlayInfoConfig.h"
|
||||
#include "RimCellFilterCollection.h"
|
||||
#include "RimEclipseResultDefinition.h"
|
||||
@@ -153,7 +154,7 @@ void RimGeoMechView::onLoadDataAndUpdate()
|
||||
|
||||
onUpdateScaleTransform();
|
||||
|
||||
updateSurfacesInViewTreeItems();
|
||||
updateViewTreeItems( RiaDefines::ItemIn3dView::ALL );
|
||||
|
||||
if ( m_geomechCase )
|
||||
{
|
||||
@@ -319,6 +320,12 @@ void RimGeoMechView::onCreateDisplayModel()
|
||||
m_seismicSectionCollection->appendPartsToModel( this, m_seismicVizModel.p(), transform.p(), femBBox );
|
||||
nativeOrOverrideViewer()->addStaticModelOnce( m_seismicVizModel.p(), isUsingOverrideViewer() );
|
||||
|
||||
// Polygons
|
||||
|
||||
m_polygonVizModel->removeAllParts();
|
||||
m_polygonCollection->appendPartsToModel( m_polygonVizModel.p(), transform.p(), femBBox );
|
||||
nativeOrOverrideViewer()->addStaticModelOnce( m_polygonVizModel.p(), isUsingOverrideViewer() );
|
||||
|
||||
// Surfaces
|
||||
|
||||
m_surfaceVizModel->removeAllParts();
|
||||
@@ -1043,6 +1050,8 @@ void RimGeoMechView::defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrderin
|
||||
if ( surfaceInViewCollection() ) uiTreeOrdering.add( surfaceInViewCollection() );
|
||||
if ( seismicSectionCollection()->shouldBeVisibleInTree() ) uiTreeOrdering.add( seismicSectionCollection() );
|
||||
|
||||
uiTreeOrdering.add( m_polygonCollection );
|
||||
|
||||
uiTreeOrdering.skipRemainingChildren( true );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user