-
Notifications
You must be signed in to change notification settings - Fork 3
DataViz
guillaume charbonnier edited this page Mar 9, 2019
·
4 revisions

| 😅 (difficulty) | ⌛ (time-Box) | 🔗 (related to) |
|---|---|---|
| 2️⃣ / 5️⃣ | 15 - 30 mn | DataViz |
See how easy it is to show a basic Digital Terrain Model with DataViz
- Use a Surface3D to display a elevation from an heightMap (or from another model if you prefer)
- use a texture
- modify the theme (will you be able to deactivate all the labels ?)
- control the camera position
- explore other area of the API (scatter, bar graph)
- an heightmap and satellite photo around Firenze are available within the project :
- .res/Firenze.png (screenshot from google map)
- .res/heightmap.png (generated thanks to terrain party)
- unlike most of the QtModule, QtDataVisualization is not available in LGPL (but GPL v3)
Warning : Spoilers !!!
| QML types | Module | Useful for... |
|---|---|---|
| Surface3D | QtDataVisualization | container of the graph |
| Surface3DSeries | QtDataVisualization | A graph creating a surface for every element if the data proxy |
| HeightMapSurfaceDataProxy | QtDataVisualization | load a heightmap image (where elevation is determine from grey shade of every pixel of the given image) |
| ItemModelSurfaceDataProxy | QtDataVisualization | use a model (such as a ListModel) as proxy data for the Surface3DSeries |