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

QGeometry Class

Encapsulates geometry.

This class was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QGeometry Class

Detailed Description

A Qt3DRender::QGeometry class is used to group a list of Qt3DRender::QAttribute objects together to form a geometric shape Qt3D is able to render using Qt3DRender::QGeometryRenderer. Special attribute can be set in order to calculate bounding volume of the shape.

Property Documentation

 

boundingVolumePositionAttribute : Qt3DRender::QAttribute*

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

If unspecified, the system will look for the attribute using the name returned by QAttribute::defaultPositionAttributeName.

Access functions:

  • *boundingVolumePositionAttribute() const

  • void setBoundingVolumePositionAttribute( *boundingVolumePositionAttribute)

Notifier signal:

  • void boundingVolumePositionAttributeChanged( *boundingVolumePositionAttribute)

See Also

Member Function Documentation

 

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

Constructs a new QGeometry with parent.

void QGeometry::addAttribute(Qt3DRender::QAttribute *attribute)

Adds an attribute to this geometry.

QVector<Qt3DRender::QAttribute *> QGeometry::attributes() const

Returns the list of attributes in this geometry.

void QGeometry::removeAttribute(Qt3DRender::QAttribute *attribute)

Removes the given attribute from this geometry.

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