mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 17:00:05 +00:00
Add ability to install event handlers from mouse picking
This commit is contained in:
parent
ff882f5c06
commit
b3e035c53d
26 changed files with 222 additions and 76 deletions
|
|
@ -274,14 +274,25 @@ void OverlayLayer::Deinitialize()
|
|||
}
|
||||
|
||||
bool OverlayLayer::RunMousePicking(
|
||||
const QMapLibreGL::CustomLayerRenderParameters& /* params */,
|
||||
const QPointF& /* mouseLocalPos */,
|
||||
const QPointF& /* mouseGlobalPos */,
|
||||
const glm::vec2& /* mouseCoords */,
|
||||
const common::Coordinate& /* mouseGeoCoords */)
|
||||
const QMapLibreGL::CustomLayerRenderParameters& params,
|
||||
const QPointF& mouseLocalPos,
|
||||
const QPointF& mouseGlobalPos,
|
||||
const glm::vec2& mouseCoords,
|
||||
const common::Coordinate& mouseGeoCoords,
|
||||
std::shared_ptr<types::EventHandler>& eventHandler)
|
||||
{
|
||||
// If sweep time was picked, don't process additional items
|
||||
return p->sweepTimePicked_;
|
||||
if (p->sweepTimePicked_)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return DrawLayer::RunMousePicking(params,
|
||||
mouseLocalPos,
|
||||
mouseGlobalPos,
|
||||
mouseCoords,
|
||||
mouseGeoCoords,
|
||||
eventHandler);
|
||||
}
|
||||
|
||||
void OverlayLayer::UpdateSweepTimeNextFrame()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue