mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
#3934 Improve picking speed on contour map
This commit is contained in:
1 parent
1a5fdec2d3
commit
225f190f4b
3 files changed
+14
-1
No files matched your search
@@ -74,7 +74,7 @@ bool RicContourMapPickEventHandler::handlePickEvent(const Ric3DPickEvent& eventO
|
|||||||
RiuMainWindow::instance()->setResultInfo(curveText);
|
RiuMainWindow::instance()->setResultInfo(curveText);
|
||||||
|
|
||||||
contourMap->setPickPoint(pickedPoint);
|
contourMap->setPickPoint(pickedPoint);
|
||||||
view->updateCurrentTimeStepAndRedraw();
|
view->updatePickPointAndRedraw();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
contourMap->setPickPoint(cvf::Vec2d::UNDEFINED);
|
contourMap->setPickPoint(cvf::Vec2d::UNDEFINED);
|
||||||
|
|||||||
@@ -382,6 +382,18 @@ void RimContourMapView::updateViewFollowingRangeFilterUpdates()
|
|||||||
scheduleCreateDisplayModelAndRedraw();
|
scheduleCreateDisplayModelAndRedraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RimContourMapView::updatePickPointAndRedraw()
|
||||||
|
{
|
||||||
|
appendPickPointVisToModel();
|
||||||
|
if (m_viewer)
|
||||||
|
{
|
||||||
|
m_viewer->update();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ public:
|
|||||||
|
|
||||||
QString createAutoName() const override;
|
QString createAutoName() const override;
|
||||||
void setDefaultCustomName();
|
void setDefaultCustomName();
|
||||||
|
void updatePickPointAndRedraw();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void initAfterRead() override;
|
void initAfterRead() override;
|
||||||
|
|||||||
Reference in new issue
Block a user