Qt3DExtras::QCuboidGeometry Class
class Qt3DExtras::QCuboidGeometryDie Klasse „QCuboidGeometry“ ermöglicht die Erstellung eines Quaders im 3D-Raum. Mehr...
| Header: | #include <Qt3DExtras/QCuboidGeometry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| In QML: | CuboidGeometry |
| Erbt von: | Qt3DCore::QGeometry |
| Status: | Veraltet |
Diese Klasse ist veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.
Eigenschaften
|
|
Öffentliche Funktionen
| QCuboidGeometry(Qt3DCore::QNode *parent = nullptr) | |
| Qt3DCore::QAttribute * | indexAttribute() const |
| Qt3DCore::QAttribute * | normalAttribute() const |
| Qt3DCore::QAttribute * | positionAttribute() const |
| Qt3DCore::QAttribute * | tangentAttribute() const |
| Qt3DCore::QAttribute * | texCoordAttribute() const |
| void | updateIndices() |
| void | updateVertices() |
| float | xExtent() const |
| QSize | xyMeshResolution() const |
| QSize | xzMeshResolution() const |
| float | yExtent() const |
| QSize | yzMeshResolution() const |
| float | zExtent() const |
Öffentliche Slots
| void | setXExtent(float xExtent) |
| void | setXYMeshResolution(const QSize &resolution) |
| void | setXZMeshResolution(const QSize &resolution) |
| void | setYExtent(float yExtent) |
| void | setYZMeshResolution(const QSize &resolution) |
| void | setZExtent(float zExtent) |
Signale
| void | xExtentChanged(float xExtent) |
| void | xyMeshResolutionChanged(const QSize &xyMeshResolution) |
| void | xzMeshResolutionChanged(const QSize &xzMeshResolution) |
| void | yExtentChanged(float yExtent) |
| void | yzMeshResolutionChanged(const QSize &yzMeshResolution) |
| void | zExtentChanged(float zExtent) |
Ausführliche Beschreibung
Die Klasse „QCuboidGeometry“ wird intern am häufigsten von der „ QCuboidMesh “ verwendet, kann aber auch in benutzerdefinierten Unterklassen von „ Qt3DRender::QGeometryRenderer “ eingesetzt werden.
Dokumentation der Eigenschaften
[read-only] indexAttribute : Qt3DCore::QAttribute* const
Enthält das Attribut „Geometrieindex“.
Zugriffsfunktionen:
| Qt3DCore::QAttribute * | indexAttribute() const |
[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 |
[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 |
xExtent : float
Enthält die x-Ausdehnung der Geometrie.
Zugriffsfunktionen:
| float | xExtent() const |
| void | setXExtent(float xExtent) |
Benachrichtigungssignal:
| void | xExtentChanged(float xExtent) |
xyMeshResolution : QSize
Legt die x-y-Auflösung fest. Die Werte für Breite und Höhe dieser Eigenschaft geben die Anzahl der Eckpunkte an, die für die x-y-Flächen des Netzes generiert werden.
Zugriffsfunktionen:
| QSize | xyMeshResolution() const |
| void | setXYMeshResolution(const QSize &resolution) |
Benachrichtigungssignal:
| void | xyMeshResolutionChanged(const QSize &xyMeshResolution) |
xzMeshResolution : QSize
Legt die x-z-Auflösung fest. Die Werte für Breite und Höhe dieser Eigenschaft geben die Anzahl der Scheitelpunkte an, die für die x-z-Flächen des Netzes erzeugt werden.
Zugriffsfunktionen:
| QSize | xzMeshResolution() const |
| void | setXZMeshResolution(const QSize &resolution) |
Benachrichtigungssignal:
| void | xzMeshResolutionChanged(const QSize &xzMeshResolution) |
yExtent : float
Enthält die y-Ausdehnung der Geometrie.
Zugriffsfunktionen:
| float | yExtent() const |
| void | setYExtent(float yExtent) |
Benachrichtigungssignal:
| void | yExtentChanged(float yExtent) |
yzMeshResolution : QSize
Legt die y-z-Auflösung fest. Die Werte für Breite und Höhe dieser Eigenschaft geben die Anzahl der Eckpunkte an, die für die y-z-Flächen des Netzes generiert werden.
Zugriffsfunktionen:
| QSize | yzMeshResolution() const |
| void | setYZMeshResolution(const QSize &resolution) |
Benachrichtigungssignal:
| void | yzMeshResolutionChanged(const QSize &yzMeshResolution) |
zExtent : float
Enthält die z-Ausdehnung der Geometrie.
Zugriffsfunktionen:
| float | zExtent() const |
| void | setZExtent(float zExtent) |
Benachrichtigungssignal:
| void | zExtentChanged(float zExtent) |
Dokumentation der Mitgliedsfunktionen
[explicit] QCuboidGeometry::QCuboidGeometry(Qt3DCore::QNode *parent = nullptr)
Erstellt eine neue „QCuboidGeometry“ mit „ parent “.
void QCuboidGeometry::updateIndices()
Aktualisiert Indizes auf Basis der Gitterauflösungen.
void QCuboidGeometry::updateVertices()
Aktualisiert die Eckpunkte entsprechend der Netzauflösung.
© 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.