QPlaneGeometry Class

class Qt3DExtras::QPlaneGeometry

Die Klasse QPlaneGeometry ermöglicht die Erstellung einer Ebene im 3D-Raum. Mehr...

Kopfzeile: #include <Qt3DExtras/QPlaneGeometry>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
In QML: PlaneGeometry
Vererbt: Qt3DCore::QGeometry
Status: Veraltet

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)

Detaillierte Beschreibung

Die Klasse QPlaneGeometry wird am häufigsten intern von QPlaneMesh verwendet, kann aber auch in benutzerdefinierten Qt3DRender::QGeometryRenderer Unterklassen verwendet werden.

Dokumentation der Eigenschaften

height : float

Enthält die Höhe der Ebene.

Zugriffsfunktionen:

float height() const
void setHeight(float height)

Melder-Signal:

void heightChanged(float height)

[read-only] indexAttribute : Qt3DCore::QAttribute* const

Enthält das Geometrie-Index-Attribut.

Zugriffsfunktionen:

Qt3DCore::QAttribute *indexAttribute() const

mirrored : bool

Steuert, ob die UV-Koordinaten der Ebene vertikal gespiegelt werden sollen.

Zugriffsfunktionen:

bool mirrored() const
void setMirrored(bool mirrored)

Melder-Signal:

void mirroredChanged(bool mirrored)

[read-only] normalAttribute : Qt3DCore::QAttribute* const

Enthält das Attribut "Geometrienormal".

Zugriffsfunktionen:

Qt3DCore::QAttribute *normalAttribute() const

[read-only] positionAttribute : Qt3DCore::QAttribute* const

Enthält das Positionsattribut der Geometrie.

Zugriffsfunktionen:

Qt3DCore::QAttribute *positionAttribute() const

resolution : QSize

Enthält die Auflösung der Ebene.

Zugriffsfunktionen:

QSize resolution() const
void setResolution(const QSize &resolution)

Melder-Signal:

void resolutionChanged(const QSize &resolution)

[read-only] tangentAttribute : Qt3DCore::QAttribute* const

Enthält das Geometrietangenten-Attribut.

Zugriffsfunktionen:

Qt3DCore::QAttribute *tangentAttribute() const

[read-only] texCoordAttribute : Qt3DCore::QAttribute* const

Enthält das Koordinatenattribut für die Geometrietextur.

Zugriffsfunktionen:

Qt3DCore::QAttribute *texCoordAttribute() const

width : float

Enthält die Breite der Ebene.

Zugriffsfunktionen:

float width() const
void setWidth(float width)

Melder-Signal:

void widthChanged(float width)

Member Function Dokumentation

[explicit] QPlaneGeometry::QPlaneGeometry(Qt3DCore::QNode *parent = nullptr)

Konstruiert eine neue QPlaneGeometry mit parent.

void QPlaneGeometry::updateIndices()

Aktualisiert Indizes basierend auf der Netzauflösung.

void QPlaneGeometry::updateVertices()

Aktualisiert Scheitelpunkte basierend auf den Eigenschaften Netzauflösung, Breite und Höhe.

© 2025 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.