File: surface_model_numpy.rst

package info (click to toggle)
pyside6 6.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 45,904 kB
  • sloc: python: 202,640; cpp: 91,160; xml: 18,402; javascript: 1,182; ansic: 178; sh: 163; makefile: 87
file content (24 lines) | stat: -rw-r--r-- 880 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Surface Example
===============

Using Q3DSurface in a widget application.

The surface example shows how to make a simple 3D surface graph using
Q3DSurface and combining the use of widgets for adjusting several adjustable
qualities. This example demonstrates the following features:

* How to set up a QItemModelSurfaceDataProxy with a QAbstractTableModel
  backed by a numpy array.
* How to use QHeightMapSurfaceDataProxy for showing 3D height maps.
* Three different selection modes for studying the graph.
* Axis range usage for displaying selected portions of the graph.
* Changing theme.
* How to set a custom surface gradient.

For instructions about how to interact with the graph, see `this page`_.

.. image:: surface_mountain.png
   :width: 400
   :alt: Surface Example Screenshot

.. _`this page`: https://doc.qt.io/qt-6/qtdatavisualization-interacting-with-data.html