QMeshData Class
(Qt3D::QMeshData)Public Types
enum | PrimitiveType { Points, Lines, LineLoop, LineStrip, ..., Patches } |
Public Functions
QMeshData(PrimitiveType primitiveType = Triangles) | |
virtual | ~QMeshData() |
void | addAttribute(const QString & name, const QAbstractAttributePtr & attr) |
QAbstractAttributePtr | attributeByName(const QString & name) const |
QStringList | attributeNames() const |
QAxisAlignedBoundingBox | boundingBox() const |
QList<QAbstractBufferPtr> | buffers() const |
void | computeBoundsFromAttribute(const QString & name) |
QAbstractAttributePtr | indexAttribute() const |
int | primitiveCount() const |
int | primitiveType() const |
void | setBoundingBox(const QAxisAlignedBoundingBox & bbox) |
void | setIndexAttribute(const QAbstractAttributePtr & attr) |
void | setPrimitiveType(PrimitiveType primitiveType) |
void | setVerticesPerPatch(int verticesPerPatch) |
int | verticesPerPatch() const |
Static Public Members
QString | defaultColorAttributeName() |
QString | defaultNormalAttributeName() |
QString | defaultPositionAttributeName() |
QString | defaultTangentAttributeName() |
QString | defaultTextureCoordinateAttributeName() |
Member Function Documentation
QMeshData::QMeshData(PrimitiveType primitiveType = Triangles)
[virtual]
QMeshData::~QMeshData()
void QMeshData::addAttribute(const QString & name, const QAbstractAttributePtr & attr)
QAbstractAttributePtr QMeshData::attributeByName(const QString & name) const
QStringList QMeshData::attributeNames() const
QAxisAlignedBoundingBox QMeshData::boundingBox() const
See also setBoundingBox().
QList<QAbstractBufferPtr> QMeshData::buffers() const
void QMeshData::computeBoundsFromAttribute(const QString & name)
[static]
QString QMeshData::defaultColorAttributeName()
[static]
QString QMeshData::defaultNormalAttributeName()
[static]
QString QMeshData::defaultPositionAttributeName()
[static]
QString QMeshData::defaultTangentAttributeName()
[static]
QString QMeshData::defaultTextureCoordinateAttributeName()
QAbstractAttributePtr QMeshData::indexAttribute() const
See also setIndexAttribute().
int QMeshData::primitiveCount() const
int QMeshData::primitiveType() const
See also setPrimitiveType().
void QMeshData::setBoundingBox(const QAxisAlignedBoundingBox & bbox)
See also boundingBox().
void QMeshData::setIndexAttribute(const QAbstractAttributePtr & attr)
See also indexAttribute().
void QMeshData::setPrimitiveType(PrimitiveType primitiveType)
See also primitiveType().
void QMeshData::setVerticesPerPatch(int verticesPerPatch)
See also verticesPerPatch().
int QMeshData::verticesPerPatch() const
See also setVerticesPerPatch().
© 2016 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.