In questa pagina

Qt3DExtras::QPlaneGeometry Class

class Qt3DExtras::QPlaneGeometry

La classe QPlaneGeometry consente di creare un piano nello spazio 3D. Per saperne di più...

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

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

Proprietà

Funzioni pubbliche

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

Slot pubblici

void setHeight(float height)
void setMirrored(bool mirrored)
void setResolution(const QSize &resolution)
void setWidth(float width)

Segnali

void heightChanged(float height)
void mirroredChanged(bool mirrored)
void resolutionChanged(const QSize &resolution)
void widthChanged(float width)

Descrizione dettagliata

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

Documentazione delle proprietà

height : float

Mantiene l'altezza del piano.

Funzioni di accesso:

float height() const
void setHeight(float height)

Segnale di notifica:

void heightChanged(float height)

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

Contiene l'attributo dell'indice geometrico.

Funzioni di accesso:

Qt3DCore::QAttribute *indexAttribute() const

mirrored : bool

Determina se le coordinate UV del piano devono essere capovolte verticalmente.

Funzioni di accesso:

bool mirrored() const
void setMirrored(bool mirrored)

Segnale di notifica:

void mirroredChanged(bool mirrored)

[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

resolution : QSize

Contiene la risoluzione del piano.

Funzioni di accesso:

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

Segnale di notifica:

void resolutionChanged(const QSize &resolution)

[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

width : float

Contiene la larghezza del piano.

Funzioni di accesso:

float width() const
void setWidth(float width)

Segnale di notifica:

void widthChanged(float width)

Documentazione delle funzioni membro

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

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

void QPlaneGeometry::updateIndices()

Aggiorna gli indici in base alla risoluzione della mesh.

void QPlaneGeometry::updateVertices()

Aggiorna i vertici in base alle proprietà di risoluzione, larghezza e altezza 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.