<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Camera Controller - Disable Rotations in 3D View in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/camera-controller-disable-rotations-in-3d-view/m-p/102929#M504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/361353"&gt;Selim Ozel&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Yes, I think there should be a way to do this. Can you provide some more information so I can better understand the workflow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, do you want to disable manual interactions like mouse and touch&amp;nbsp;events on the SceneView, or&amp;nbsp;are you just looking for something that will restrict the camera's pitch and roll?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, are you using the C++ or the QML Api?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 May 2019 17:55:55 GMT</pubDate>
    <dc:creator>JamesBallard1</dc:creator>
    <dc:date>2019-05-17T17:55:55Z</dc:date>
    <item>
      <title>Camera Controller - Disable Rotations in 3D View</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/camera-controller-disable-rotations-in-3d-view/m-p/102928#M503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wondering if there is an option to disable 3D rotations for the camera in a scene. What I eventually want to achieve is to have a 2D top-down view, where 3D rotations of the camera are not allowed and another isometric view where 3D rotations of camera are allowed.&lt;BR /&gt;&lt;BR /&gt;Best,&lt;/P&gt;&lt;P&gt;Selim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 16:31:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/camera-controller-disable-rotations-in-3d-view/m-p/102928#M503</guid>
      <dc:creator>SelimOzel</dc:creator>
      <dc:date>2019-05-17T16:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Camera Controller - Disable Rotations in 3D View</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/camera-controller-disable-rotations-in-3d-view/m-p/102929#M504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/361353"&gt;Selim Ozel&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Yes, I think there should be a way to do this. Can you provide some more information so I can better understand the workflow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, do you want to disable manual interactions like mouse and touch&amp;nbsp;events on the SceneView, or&amp;nbsp;are you just looking for something that will restrict the camera's pitch and roll?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, are you using the C++ or the QML Api?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 17:55:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/camera-controller-disable-rotations-in-3d-view/m-p/102929#M504</guid>
      <dc:creator>JamesBallard1</dc:creator>
      <dc:date>2019-05-17T17:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Camera Controller - Disable Rotations in 3D View</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/camera-controller-disable-rotations-in-3d-view/m-p/102930#M505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I am using C++, not qml. I would like to disable camera pitch motion. I want to avoid using filters for mouse clicks. Because I don't want to write code specific for each input device.&lt;BR /&gt;&lt;BR /&gt;Let me know if you need more context.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 18:08:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/camera-controller-disable-rotations-in-3d-view/m-p/102930#M505</guid>
      <dc:creator>SelimOzel</dc:creator>
      <dc:date>2019-05-17T18:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Camera Controller - Disable Rotations in 3D View</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/camera-controller-disable-rotations-in-3d-view/m-p/102931#M506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/361353"&gt;Selim Ozel&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Thanks for the extra info. You shouldn't have to filter all events. Depending on what type of devices you're targeting this should work. This should cover all mouse scenarios where all the pitch and roll changes are done with the right mouse button. You can selectively discard those, as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;  &lt;/SPAN&gt;connect(m_sceneView,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #aaaaaa;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #50ff35;"&gt;SceneQuickView&lt;/SPAN&gt;::mouseMoved,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ffff55;"&gt;this&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;[&lt;SPAN style="color: #ffff55;"&gt;this&lt;/SPAN&gt;](&lt;SPAN style="color: #50ff35;"&gt;QMouseEvent&lt;/SPAN&gt;&amp;amp;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;mouseEvent)&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;  &lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;//&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;"accept"&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;throw&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;away&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;move&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;events&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;when&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;the&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;button&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;pressed&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;to&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;//&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;disable&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;changing&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;the&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;pitch&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;of&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;the&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #55ffff;"&gt;SceneView&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #ffff55;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;((mouseEvent.buttons()&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #00677c;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #50ff35;"&gt;Qt&lt;/SPAN&gt;::&lt;SPAN style="color: #55ff55;"&gt;RightButton&lt;/SPAN&gt;)&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #aaaaaa;"&gt;!=&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff55ff;"&gt;0&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;      &lt;/SPAN&gt;mouseEvent.accept();&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;  &lt;/SPAN&gt;});&lt;/PRE&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;P&gt;Another approach would be to consider a 2D MapView instead of the SceneView. If you want to restrict all interactions to make it appear in "2D" mode, then perhaps a Map would suffice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We actually have a sample for doing just that. Please see here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-qt/tree/master/ArcGISRuntimeSDKQt_CppSamples/Scenes/SyncMapViewSceneView"&gt;https://github.com/Esri/arcgis-runtime-samples-qt/tree/master/ArcGISRuntimeSDKQt_CppSamples/Scenes/SyncMapViewSceneView&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 19:57:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/camera-controller-disable-rotations-in-3d-view/m-p/102931#M506</guid>
      <dc:creator>JamesBallard1</dc:creator>
      <dc:date>2019-05-17T19:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Camera Controller - Disable Rotations in 3D View</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/camera-controller-disable-rotations-in-3d-view/m-p/102932#M507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again! I might actually use this in other places as well.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 20:48:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/camera-controller-disable-rotations-in-3d-view/m-p/102932#M507</guid>
      <dc:creator>SelimOzel</dc:creator>
      <dc:date>2019-05-17T20:48:48Z</dc:date>
    </item>
  </channel>
</rss>

