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

QPlaneMesh Class

A square planar mesh.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QPlaneMesh Class

  • Header: Qt3DExtras/QPlaneMesh

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3dextras)

    target_link_libraries(mytarget PRIVATE Qt6::3dextras)

  • qmake: QT += 3dextras

  • Inherited By:

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

  • Inherits: Qt3DRender::QGeometryRenderer

  • Group: QPlaneMesh is part of qt3d-extras-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)

meshResolution : QSize

Holds the plane resolution. The width and height values of this property specify the number of vertices generated for the mesh in the respective dimensions.

Access functions:

  • meshResolution() const

  • void setMeshResolution(const &resolution)

Notifier signal:

  • void meshResolutionChanged(const &meshResolution)

[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)

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] QPlaneMesh::QPlaneMesh(Qt3DCore::QNode *parent = nullptr)

Constructs a new QPlaneMesh with parent.

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