mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Copy changes from dev-branch into main
History of main branch was difficult to merge. Take a copy of dev-branch, and merge both ways between dev and main after the release.
This commit is contained in:
@@ -195,15 +195,15 @@ void RimGeoMechContourMapView::onCreateDisplayModel()
|
||||
{
|
||||
RimGeoMechView::onCreateDisplayModel();
|
||||
|
||||
if ( !this->isTimeStepDependentDataVisible() )
|
||||
if ( !isTimeStepDependentDataVisible() )
|
||||
{
|
||||
// Need to add geometry even if it hasn't happened during dynamic time step update.
|
||||
updateGeometry();
|
||||
}
|
||||
|
||||
if ( this->viewer()->mainCamera()->viewMatrix() == sm_defaultViewMatrix )
|
||||
if ( viewer()->mainCamera()->viewMatrix() == sm_defaultViewMatrix )
|
||||
{
|
||||
this->zoomAll();
|
||||
zoomAll();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -213,8 +213,8 @@ void RimGeoMechContourMapView::onCreateDisplayModel()
|
||||
void RimGeoMechContourMapView::defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering )
|
||||
{
|
||||
caf::PdmUiGroup* viewGroup = uiOrdering.addNewGroup( "Viewer" );
|
||||
viewGroup->add( this->userDescriptionField() );
|
||||
viewGroup->add( this->backgroundColorField() );
|
||||
viewGroup->add( userDescriptionField() );
|
||||
viewGroup->add( backgroundColorField() );
|
||||
viewGroup->add( &m_showAxisLines );
|
||||
viewGroup->add( &m_showScaleLegend );
|
||||
|
||||
@@ -305,7 +305,7 @@ void RimGeoMechContourMapView::appendContourMapProjectionToModel()
|
||||
cvf::ref<cvf::ModelBasicList> contourMapProjectionModelBasicList = new cvf::ModelBasicList;
|
||||
contourMapProjectionModelBasicList->setName( name );
|
||||
|
||||
cvf::ref<caf::DisplayCoordTransform> transForm = this->displayCoordTransform();
|
||||
cvf::ref<caf::DisplayCoordTransform> transForm = displayCoordTransform();
|
||||
|
||||
m_contourMapProjectionPartMgr->appendProjectionToModel( contourMapProjectionModelBasicList.p(), transForm.p() );
|
||||
contourMapProjectionModelBasicList->updateBoundingBoxesRecursive();
|
||||
@@ -330,7 +330,7 @@ void RimGeoMechContourMapView::appendContourLinesToModel()
|
||||
cvf::ref<cvf::ModelBasicList> contourMapLabelModelBasicList = new cvf::ModelBasicList;
|
||||
contourMapLabelModelBasicList->setName( name );
|
||||
|
||||
cvf::ref<caf::DisplayCoordTransform> transForm = this->displayCoordTransform();
|
||||
cvf::ref<caf::DisplayCoordTransform> transForm = displayCoordTransform();
|
||||
|
||||
m_contourMapProjectionPartMgr->appendContourLinesToModel( viewer()->mainCamera(), contourMapLabelModelBasicList.p(), transForm.p() );
|
||||
contourMapLabelModelBasicList->updateBoundingBoxesRecursive();
|
||||
@@ -355,7 +355,7 @@ void RimGeoMechContourMapView::appendPickPointVisToModel()
|
||||
cvf::ref<cvf::ModelBasicList> contourMapProjectionModelBasicList = new cvf::ModelBasicList;
|
||||
contourMapProjectionModelBasicList->setName( name );
|
||||
|
||||
cvf::ref<caf::DisplayCoordTransform> transForm = this->displayCoordTransform();
|
||||
cvf::ref<caf::DisplayCoordTransform> transForm = displayCoordTransform();
|
||||
|
||||
m_contourMapProjectionPartMgr->appendPickPointVisToModel( contourMapProjectionModelBasicList.p(), transForm.p() );
|
||||
contourMapProjectionModelBasicList->updateBoundingBoxesRecursive();
|
||||
|
||||
Reference in New Issue
Block a user