Qt3DExtras::QPlaneGeometry Class
class Qt3DExtras::QPlaneGeometryDie Klasse „QPlaneGeometry“ ermöglicht die Erstellung einer Ebene im 3D-Raum. Mehr...
| Header: | #include <Qt3DExtras/QPlaneGeometry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| In QML: | PlaneGeometry |
| Erbt von: | Qt3DCore::QGeometry |
| Status: | Veraltet |
Diese Klasse ist veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.
Eigenschaften
|
|
Öffentliche Funktionen
| QPlaneGeometry(Qt3DCore::QNode *parent = nullptr) | |
| float | height() const |
| Qt3DCore::QAttribute * | indexAttribute() const |
| bool | mirrored() const |
| Qt3DCore::QAttribute * | normalAttribute() const |
| Qt3DCore::QAttribute * | positionAttribute() const |
| QSize | resolution() const |
| Qt3DCore::QAttribute * | tangentAttribute() const |
| Qt3DCore::QAttribute * | texCoordAttribute() const |
| void | updateIndices() |
| void | updateVertices() |
| float | width() const |
Öffentliche Slots
| void | setHeight(float height) |
| void | setMirrored(bool mirrored) |
| void | setResolution(const QSize &resolution) |
| void | setWidth(float width) |
Signale
| void | heightChanged(float height) |
| void | mirroredChanged(bool mirrored) |
| void | resolutionChanged(const QSize &resolution) |
| void | widthChanged(float width) |
Ausführliche Beschreibung
Die Klasse „QPlaneGeometry“ wird am häufigsten intern von der „ QPlaneMesh “ verwendet, kann aber auch in benutzerdefinierten Unterklassen von „ Qt3DRender::QGeometryRenderer “ eingesetzt werden.
Dokumentation zu den Eigenschaften
height : float
Hält die Flugfläche.
Zugriffsfunktionen:
| float | height() const |
| void | setHeight(float height) |
Benachrichtigungssignal:
| void | heightChanged(float height) |
[read-only] indexAttribute : Qt3DCore::QAttribute* const
Enthält das Attribut „Geometrieindex“.
Zugriffsfunktionen:
| Qt3DCore::QAttribute * | indexAttribute() const |
mirrored : bool
Legt fest, ob die UV-Koordinaten der Ebene vertikal gespiegelt werden sollen.
Zugriffsfunktionen:
| bool | mirrored() const |
| void | setMirrored(bool mirrored) |
Benachrichtigungssignal:
| void | mirroredChanged(bool mirrored) |
[read-only] normalAttribute : Qt3DCore::QAttribute* const
Enthält das Attribut „Geometrie-Normale“.
Zugriffsfunktionen:
| Qt3DCore::QAttribute * | normalAttribute() const |
[read-only] positionAttribute : Qt3DCore::QAttribute* const
Enthält das Attribut „Geometrieposition“.
Zugriffsfunktionen:
| Qt3DCore::QAttribute * | positionAttribute() const |
resolution : QSize
Behält die Ebenenauflösung bei.
Zugriffsfunktionen:
| QSize | resolution() const |
| void | setResolution(const QSize &resolution) |
Benachrichtigungssignal:
| void | resolutionChanged(const QSize &resolution) |
[read-only] tangentAttribute : Qt3DCore::QAttribute* const
Enthält das Attribut „Geometrie-Tangente“.
Zugriffsfunktionen:
| Qt3DCore::QAttribute * | tangentAttribute() const |
[read-only] texCoordAttribute : Qt3DCore::QAttribute* const
Enthält das Attribut für die Geometrie-Texturkoordinaten.
Zugriffsfunktionen:
| Qt3DCore::QAttribute * | texCoordAttribute() const |
width : float
Enthält die Breite der Ebene.
Zugriffsfunktionen:
| float | width() const |
| void | setWidth(float width) |
Benachrichtigungssignal:
| void | widthChanged(float width) |
Dokumentation der Member-Funktionen
[explicit] QPlaneGeometry::QPlaneGeometry(Qt3DCore::QNode *parent = nullptr)
Erstellt eine neue `QPlaneGeometry` mit ` parent`.
void QPlaneGeometry::updateIndices()
Aktualisiert Indizes basierend auf der Gitterauflösung.
void QPlaneGeometry::updateVertices()
Aktualisiert die Eckpunkte basierend auf den Eigenschaften „Mesh-Auflösung“, „Breite“ und „Höhe“.
© 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.