#3934 Improve picking speed on contour map

This commit is contained in:
Gaute Lindkvist 2019-01-09 09:57:47 +01:00
parent 1a5fdec2d3
commit 225f190f4b
3 changed files with 14 additions and 1 deletions

View File

@ -74,7 +74,7 @@ bool RicContourMapPickEventHandler::handlePickEvent(const Ric3DPickEvent& eventO
RiuMainWindow::instance()->setResultInfo(curveText);
contourMap->setPickPoint(pickedPoint);
view->updateCurrentTimeStepAndRedraw();
view->updatePickPointAndRedraw();
return true;
}
contourMap->setPickPoint(cvf::Vec2d::UNDEFINED);

View File

@ -382,6 +382,18 @@ void RimContourMapView::updateViewFollowingRangeFilterUpdates()
scheduleCreateDisplayModelAndRedraw();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimContourMapView::updatePickPointAndRedraw()
{
appendPickPointVisToModel();
if (m_viewer)
{
m_viewer->update();
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -34,6 +34,7 @@ public:
QString createAutoName() const override;
void setDefaultCustomName();
void updatePickPointAndRedraw();
protected:
void initAfterRead() override;