Select to view content in your preferred language

SetViewPointGeometry for SceneView

841
1
06-28-2020 07:08 AM
AnatBen_Israel
Emerging Contributor

Hi,

I'm using Qt C++ SDK.

I need to change the viewPoint (center and scale) to center around a specific point, and include another point.

I found the SetViewPointGeometry, which seemed to fit, but it's only available for MapView and not for SceneView.

How can I do something similar with my scene?

Thanks

Tags (2)
0 Kudos
1 Reply
LucasDanzinger
Esri Frequent Contributor

In 3D, you'll want to use a Camera. You can either use the Camera directly into a setViewpoint call, or you can create a Viewpoint from one of the constructors that takes in a Camera.

Here is an example of one workflow we use in a sample - arcgis-runtime-samples-qt/BasicSceneView.cpp at master · Esri/arcgis-runtime-samples-qt · GitHub 

0 Kudos