In questa pagina

Qt3DExtras::QCuboidGeometry Class

class Qt3DExtras::QCuboidGeometry

La classe QCuboidGeometry consente di creare un parallelepipedo nello spazio 3D. Per saperne di più...

Intestazione: #include <Qt3DExtras/QCuboidGeometry>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
In QML: CuboidGeometry
Eredita da: Qt3DCore::QGeometry
Stato: Obsoleta

Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.

Proprietà

Funzioni pubbliche

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

Slot pubblici

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)

Segnali

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)

Descrizione dettagliata

La classe QCuboidGeometry viene utilizzata principalmente internamente dall'QCuboidMesh, ma può essere impiegata anche nelle sottoclassi personalizzate di Qt3DRender::QGeometryRenderer.

Documentazione delle proprietà

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

Contiene l'attributo dell'indice geometrico.

Funzioni di accesso:

Qt3DCore::QAttribute *indexAttribute() const

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

Contiene l'attributo "normale" della geometria.

Funzioni di accesso:

Qt3DCore::QAttribute *normalAttribute() const

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

Contiene l'attributo relativo alla posizione geometrica.

Funzioni di accesso:

Qt3DCore::QAttribute *positionAttribute() const

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

Contiene l'attributo "tangente" della geometria.

Funzioni di accesso:

Qt3DCore::QAttribute *tangentAttribute() const

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

Contiene l'attributo delle coordinate della texture geometrica.

Funzioni di accesso:

Qt3DCore::QAttribute *texCoordAttribute() const

xExtent : float

Contiene l'estensione x della geometria.

Funzioni di accesso:

float xExtent() const
void setXExtent(float xExtent)

Segnale di notifica:

void xExtentChanged(float xExtent)

xyMeshResolution : QSize

Definisce la risoluzione x-y. I valori di larghezza e altezza di questa proprietà specificano il numero di vertici generati per le facce x-y della mesh.

Funzioni di accesso:

QSize xyMeshResolution() const
void setXYMeshResolution(const QSize &resolution)

Segnale di notifica:

void xyMeshResolutionChanged(const QSize &xyMeshResolution)

xzMeshResolution : QSize

Determina la risoluzione x-z. I valori di larghezza e altezza di questa proprietà specificano il numero di vertici generati per le facce x-z della mesh.

Funzioni di accesso:

QSize xzMeshResolution() const
void setXZMeshResolution(const QSize &resolution)

Segnale di notifica:

void xzMeshResolutionChanged(const QSize &xzMeshResolution)

yExtent : float

Contiene l'estensione y della geometria.

Funzioni di accesso:

float yExtent() const
void setYExtent(float yExtent)

Segnale di notifica:

void yExtentChanged(float yExtent)

yzMeshResolution : QSize

Determina la risoluzione y-z. I valori di larghezza e altezza di questa proprietà specificano il numero di vertici generati per le facce y-z della mesh.

Funzioni di accesso:

QSize yzMeshResolution() const
void setYZMeshResolution(const QSize &resolution)

Segnale di notifica:

void yzMeshResolutionChanged(const QSize &yzMeshResolution)

zExtent : float

Contiene l'estensione z della geometria.

Funzioni di accesso:

float zExtent() const
void setZExtent(float zExtent)

Segnale di notifica:

void zExtentChanged(float zExtent)

Documentazione delle funzioni membro

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

Crea un nuovo oggetto `QCuboidGeometry` con ` parent`.

void QCuboidGeometry::updateIndices()

Aggiorna gli indici in base alle risoluzioni della mesh.

void QCuboidGeometry::updateVertices()

Aggiorna i vertici in base alle risoluzioni della mesh.

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