mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3580 Improve visualisation of faults in Contour Map
This commit is contained in:
parent
4d924e2d17
commit
12fbd968ad
@ -27,6 +27,7 @@
|
|||||||
#include "RimContourMapNameConfig.h"
|
#include "RimContourMapNameConfig.h"
|
||||||
#include "RimContourMapProjection.h"
|
#include "RimContourMapProjection.h"
|
||||||
#include "RimEclipseCellColors.h"
|
#include "RimEclipseCellColors.h"
|
||||||
|
#include "RimEclipseFaultColors.h"
|
||||||
#include "RimEclipsePropertyFilterCollection.h"
|
#include "RimEclipsePropertyFilterCollection.h"
|
||||||
#include "RimFaultInViewCollection.h"
|
#include "RimFaultInViewCollection.h"
|
||||||
#include "RimGridCollection.h"
|
#include "RimGridCollection.h"
|
||||||
@ -55,10 +56,8 @@ RimContourMapView::RimContourMapView()
|
|||||||
|
|
||||||
CAF_PDM_InitField(&m_showAxisLines, "ShowAxisLines", true, "Show Axis Lines", "", "", "");
|
CAF_PDM_InitField(&m_showAxisLines, "ShowAxisLines", true, "Show Axis Lines", "", "", "");
|
||||||
|
|
||||||
m_overlayInfoConfig->setIsActive(false);
|
|
||||||
m_gridCollection->setActive(false); // This is also not added to the tree view, so cannot be enabled.
|
m_gridCollection->setActive(false); // This is also not added to the tree view, so cannot be enabled.
|
||||||
wellCollection()->isActive = false;
|
setFaultVisParameters();
|
||||||
faultCollection()->showFaultCollection = false;
|
|
||||||
|
|
||||||
CAF_PDM_InitFieldNoDefault(&m_nameConfig, "NameConfig", "", "", "", "");
|
CAF_PDM_InitFieldNoDefault(&m_nameConfig, "NameConfig", "", "", "", "");
|
||||||
m_nameConfig = new RimContourMapNameConfig(this);
|
m_nameConfig = new RimContourMapNameConfig(this);
|
||||||
@ -143,6 +142,7 @@ void RimContourMapView::initAfterRead()
|
|||||||
setShowGridBox(false);
|
setShowGridBox(false);
|
||||||
meshMode.setValue(NO_MESH);
|
meshMode.setValue(NO_MESH);
|
||||||
surfaceMode.setValue(FAULTS);
|
surfaceMode.setValue(FAULTS);
|
||||||
|
setFaultVisParameters();
|
||||||
scheduleCreateDisplayModelAndRedraw();
|
scheduleCreateDisplayModelAndRedraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -218,6 +218,18 @@ void RimContourMapView::updateCurrentTimeStep()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RimContourMapView::setFaultVisParameters()
|
||||||
|
{
|
||||||
|
faultCollection()->setShowFaultsOutsideFilter(false);
|
||||||
|
faultCollection()->showOppositeFaultFaces = true;
|
||||||
|
faultCollection()->faultResult = RimFaultInViewCollection::FAULT_NO_FACE_CULLING;
|
||||||
|
faultResultSettings()->showCustomFaultResult = true;
|
||||||
|
faultResultSettings()->customFaultResult()->setResultVariable("None");
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -41,6 +41,7 @@ protected:
|
|||||||
void defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName = "") override;
|
void defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName = "") override;
|
||||||
void updateCurrentTimeStep() override;
|
void updateCurrentTimeStep() override;
|
||||||
|
|
||||||
|
void setFaultVisParameters();
|
||||||
void appendContourMapProjectionToModel();
|
void appendContourMapProjectionToModel();
|
||||||
|
|
||||||
void updateLegends() override;
|
void updateLegends() override;
|
||||||
|
Loading…
Reference in New Issue
Block a user