QCuboidGeometry Class
class Qt3DExtras::QCuboidGeometryDie Klasse QCuboidGeometry ermöglicht die Erstellung eines Quaders im 3D-Raum. Mehr...
Kopfzeile: | #include <Qt3DExtras/QCuboidGeometry> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
qmake: | QT += 3dextras |
In QML: | CuboidGeometry |
Vererbt: | Qt3DCore::QGeometry |
Status: | Veraltet |
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) |
Detaillierte Beschreibung
Die Klasse QCuboidGeometry wird am häufigsten intern von QCuboidMesh verwendet, kann aber auch in benutzerdefinierten Qt3DRender::QGeometryRenderer Unterklassen verwendet werden.
Dokumentation der Eigenschaften
[read-only]
indexAttribute : Qt3DCore::QAttribute* const
Enthält das Geometrie-Index-Attribut.
Zugriffsfunktionen:
Qt3DCore::QAttribute * | indexAttribute() const |
[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 |
[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 |
xExtent : float
Enthält die x-Ausdehnung der Geometrie.
Zugriffsfunktionen:
float | xExtent() const |
void | setXExtent(float xExtent) |
Melder-Signal:
void | xExtentChanged(float xExtent) |
xyMeshResolution : QSize
Enthält die x-y-Auflösung. Die Werte für Breite und Höhe dieser Eigenschaft geben die Anzahl der Scheitelpunkte an, die für die x-y-Flächen des Netzes erzeugt werden.
Zugriffsfunktionen:
QSize | xyMeshResolution() const |
void | setXYMeshResolution(const QSize &resolution) |
Benachrichtigungssignal:
void | xyMeshResolutionChanged(const QSize &xyMeshResolution) |
xzMeshResolution : QSize
Enthält die x-z-Auflösung. 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) |
Melder-Signal:
void | yExtentChanged(float yExtent) |
yzMeshResolution : QSize
Enthält die y-z-Auflösung. Die Werte für Breite und Höhe dieser Eigenschaft geben die Anzahl der Scheitelpunkte an, die für die y-z-Flächen des Netzes erzeugt 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) |
Member Function Dokumentation
[explicit]
QCuboidGeometry::QCuboidGeometry(Qt3DCore::QNode *parent = nullptr)
Konstruiert eine neue QCuboidGeometry mit parent.
void QCuboidGeometry::updateIndices()
Aktualisiert Indizes auf der Grundlage von Netzauflösungen.
void QCuboidGeometry::updateVertices()
Aktualisiert Scheitelpunkte auf der Grundlage von Netzauflösungen.
© 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.