Qt3DExtras::QSphereGeometryView Class
class Qt3DExtras::QSphereGeometryViewUna maglia sferica. Per saperne di più...
| Intestazione: | #include <Qt3DExtras/QSphereGeometryView> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| In QML: | SphereGeometryView |
| Eredita da: | Qt3DCore::QGeometryView |
| Stato: | Obsoleta |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel codice nuovo.
Proprietà
- generateTangents : bool
- radius : float
- rings : int
- slices : int
Funzioni pubbliche
| QSphereGeometryView(Qt3DCore::QNode *parent = nullptr) | |
| bool | generateTangents() const |
| float | radius() const |
| int | rings() const |
| int | slices() const |
Slot pubblici
| void | setGenerateTangents(bool gen) |
| void | setRadius(float radius) |
| void | setRings(int rings) |
| void | setSlices(int slices) |
Segnali
| void | generateTangentsChanged(bool generateTangents) |
| void | radiusChanged(float radius) |
| void | ringsChanged(int rings) |
| void | slicesChanged(int slices) |
Documentazione delle proprietà
generateTangents : bool
Contiene il valore del flag relativo alla generazione automatica dei vettori tangenti. I vettori tangenti sono ortogonali ai vettori normali.
Funzioni di accesso:
| bool | generateTangents() const |
| void | setGenerateTangents(bool gen) |
Segnale di notifica:
| void | generateTangentsChanged(bool generateTangents) |
radius : float
Contiene il raggio della sfera.
Funzioni di accesso:
| float | radius() const |
| void | setRadius(float radius) |
Segnale di notifica:
| void | radiusChanged(float radius) |
rings : int
Contiene il numero di anelli presenti nella maglia.
Funzioni di accesso:
| int | rings() const |
| void | setRings(int rings) |
Segnale di notifica:
| void | ringsChanged(int rings) |
slices : int
Contiene il numero di segmenti della mesh.
Funzioni di accesso:
| int | slices() const |
| void | setSlices(int slices) |
Segnale di notifica:
| void | slicesChanged(int slices) |
Documentazione delle funzioni membro
[explicit] QSphereGeometryView::QSphereGeometryView(Qt3DCore::QNode *parent = nullptr)
Crea un nuovo oggetto `QSphereGeometryView` con ` parent`.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.