IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QPlaneGeometry Class

The QPlaneGeometry class allows creation of a plane in 3D space. * * * * The QPlaneGeometry class is most commonly used internally by the QPlaneMesh * but can also be used in custom Qt3DRender::QGeometryRenderer subclasses.

This class was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QPlaneGeometry Class▲

  • Header: Qt3DExtras/QPlaneGeometry

  • Since: Qt 5.7

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3dextras)

    target_link_libraries(mytarget PRIVATE Qt6::3dextras)

  • qmake: QT += 3dextras

  • Inherited By:

  • Instantiated By: qml-qt3d-extras-planegeometry.xml

  • Inherits: Qt3DCore::QGeometry

  • Group: QPlaneGeometry is part of qt3d-extras-geometries, geometries

Detailed Description▲

* * * *

Property Documentation▲

 

height : float▲

Holds the plane height.

Access functions:

  • float height() const

  • void setHeight(float height)

Notifier signal:

  • void heightChanged(float height)

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

Holds the geometry index attribute.

Access functions:

  • *indexAttribute() const

[since 5.9] mirrored : bool▲

Controls if the UV coordinates of the plane should be flipped vertically.

This property was introduced in Qt 5.9.

Access functions:

  • bool mirrored() const

  • void setMirrored(bool mirrored)

Notifier signal:

  • void mirroredChanged(bool mirrored)

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

Holds the geometry normal attribute.

Access functions:

  • *normalAttribute() const

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

Holds the geometry position attribute.

Access functions:

  • *positionAttribute() const

resolution : QSize▲

Holds the plane resolution.

Access functions:

  • resolution() const

  • void setResolution(const &resolution)

Notifier signal:

  • void resolutionChanged(const &resolution)

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

Holds the geometry tangent attribute.

Access functions:

  • *tangentAttribute() const

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

Holds the geometry texture coordinate attribute.

Access functions:

  • *texCoordAttribute() const

width : float▲

Holds the plane width.

Access functions:

  • float width() const

  • void setWidth(float width)

Notifier signal:

  • void widthChanged(float width)

Member Function Documentation▲

 

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

Constructs a new QPlaneGeometry with parent.

void QPlaneGeometry::updateIndices()▲

Updates indices based on mesh resolution.

void QPlaneGeometry::updateVertices()▲

Updates vertices based on mesh resolution, width, and height properties.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+