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,
Did you try setting mouseTracking on the view? The following works for me:
m_sceneView <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token function">SceneGraphicsView</SPAN><SPAN class="punctuation token">(</SPAN>scene<SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> m_sceneView<SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN><SPAN class="token function">setMouseTracking</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="token boolean">true</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="token function">connect</SPAN><SPAN class="punctuation token">(</SPAN>m_sceneView<SPAN class="punctuation token">,</SPAN> <SPAN class="operator token">&</SPAN>SceneGraphicsView<SPAN class="operator token">::</SPAN>mouseMoved<SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">(</SPAN>QMouseEvent e<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN> <SPAN class="token function">qDebug</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="operator token"><<</SPAN> e<SPAN class="punctuation token">.</SPAN><SPAN class="token function">x</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="operator token"><<</SPAN> e<SPAN class="punctuation token">.</SPAN><SPAN class="token function">y</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Thank you for mouseMoved option.
Actually I had changed question later to
Can you please check.
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
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.