Select to view content in your preferred language

Does SceneGraphicsView Emits scale changed signal?

459
3
12-11-2019 03:28 AM
GirishchandraY
Emerging Contributor

Hello Team,

I have previously used map scale changed on MapGraphicsView which is working fine.

But if I want to do same on SceneGraphicsView option is not there.

Can you please check.

Thanks,
0 Kudos
3 Replies
LucasDanzinger
Esri Frequent Contributor

Did you try setting mouseTracking on the view? The following works for me:

m_sceneView = new SceneGraphicsView(scene, this);

m_sceneView->setMouseTracking(true);

connect(m_sceneView, &SceneGraphicsView::mouseMoved, this, [this](QMouseEvent e)
{
  qDebug() << e.x() << e.y();
});
0 Kudos
GirishchandraY
Emerging Contributor

Thank you for mouseMoved option.

Actually I had changed question later to 

Does SceneGraphicsView Emits scale changed signal?

I have previously used map scale changed on MapGraphicsView which is working fine.

 

But if I want to do same on SceneGraphicsView option is not there.

Can you please check.
0 Kudos
LucasDanzinger
Esri Frequent Contributor

In SceneView, you will need to connect to viewpointChanged - SceneGraphicsView Class | ArcGIS for Developers 

And then when that emits, access SceneView::currentViewpointCamera - SceneView Class | ArcGIS for Developers 

0 Kudos