Qt3DExtras::QCuboidGeometry Class
class Qt3DExtras::QCuboidGeometryA classe QCuboidGeometry permite a criação de um paralelepípedo no espaço 3D. Mais...
| Cabeçalho: | #include <Qt3DExtras/QCuboidGeometry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| No QML: | CuboidGeometry |
| Herdado de: | Qt3DCore::QGeometry |
| Status: | Obsoleta |
Esta classe está obsoleta. Recomendamos enfaticamente que não seja usada em código novo.
Propriedades
|
|
Funções públicas
| 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 |
Slots públicos
| 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) |
Sinais
| 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) |
Descrição detalhada
A classe `QCuboidGeometry` é mais comumente usada internamente pelo ` QCuboidMesh `, mas também pode ser utilizada em subclasses personalizadas de ` Qt3DRender::QGeometryRenderer `.
Documentação das Propriedades
[read-only] indexAttribute : Qt3DCore::QAttribute* const
Contém o atributo de índice geométrico.
Funções de acesso:
| Qt3DCore::QAttribute * | indexAttribute() const |
[read-only] normalAttribute : Qt3DCore::QAttribute* const
Contém o atributo de normal da geometria.
Funções de acesso:
| Qt3DCore::QAttribute * | normalAttribute() const |
[read-only] positionAttribute : Qt3DCore::QAttribute* const
Contém o atributo de posição da geometria.
Funções de acesso:
| Qt3DCore::QAttribute * | positionAttribute() const |
[read-only] tangentAttribute : Qt3DCore::QAttribute* const
Contém o atributo “tangente” da geometria.
Funções de acesso:
| Qt3DCore::QAttribute * | tangentAttribute() const |
[read-only] texCoordAttribute : Qt3DCore::QAttribute* const
Contém o atributo de coordenadas de textura da geometria.
Funções de acesso:
| Qt3DCore::QAttribute * | texCoordAttribute() const |
xExtent : float
Armazena a extensão x da geometria.
Funções de acesso:
| float | xExtent() const |
| void | setXExtent(float xExtent) |
Sinal do notificador:
| void | xExtentChanged(float xExtent) |
xyMeshResolution : QSize
Define a resolução x-y. Os valores de largura e altura desta propriedade especificam o número de vértices gerados para as faces x-y da malha.
Funções de acesso:
| QSize | xyMeshResolution() const |
| void | setXYMeshResolution(const QSize &resolution) |
Sinal de notificação:
| void | xyMeshResolutionChanged(const QSize &xyMeshResolution) |
xzMeshResolution : QSize
Define a resolução x-z. Os valores de largura e altura desta propriedade especificam o número de vértices gerados para as faces x-z da malha.
Funções de acesso:
| QSize | xzMeshResolution() const |
| void | setXZMeshResolution(const QSize &resolution) |
Sinal de notificação:
| void | xzMeshResolutionChanged(const QSize &xzMeshResolution) |
yExtent : float
Armazena a extensão no eixo y da geometria.
Funções de acesso:
| float | yExtent() const |
| void | setYExtent(float yExtent) |
Sinal do notificador:
| void | yExtentChanged(float yExtent) |
yzMeshResolution : QSize
Define a resolução y-z. Os valores de largura e altura desta propriedade especificam o número de vértices gerados para as faces y-z da malha.
Funções de acesso:
| QSize | yzMeshResolution() const |
| void | setYZMeshResolution(const QSize &resolution) |
Sinal de notificação:
| void | yzMeshResolutionChanged(const QSize &yzMeshResolution) |
zExtent : float
Armazena a extensão z da geometria.
Funções de acesso:
| float | zExtent() const |
| void | setZExtent(float zExtent) |
Sinal do notificador:
| void | zExtentChanged(float zExtent) |
Documentação das funções de membro
[explicit] QCuboidGeometry::QCuboidGeometry(Qt3DCore::QNode *parent = nullptr)
Cria uma nova instância de `QCuboidGeometry` com ` parent`.
void QCuboidGeometry::updateIndices()
Atualiza os índices com base nas resoluções da malha.
void QCuboidGeometry::updateVertices()
Atualiza os vértices com base nas resoluções da malha.
© 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.