BaseGeometryLoader Class
(Qt3DRender::BaseGeometryLoader)Inherits: | Qt3DRender::QGeometryLoaderInterface |
Public Functions
BaseGeometryLoader() | |
bool | hasNormals() const |
bool | hasTangents() const |
bool | hasTextureCoordinates() const |
QVector<unsigned int> | indices() const |
bool | isLoadTextureCoordinatesEnabled() const |
bool | isMeshCenteringEnabled() const |
bool | isTangentGenerationEnabled() const |
QVector<QVector3D> | normals() const |
void | setLoadTextureCoordinatesEnabled(bool b) |
void | setMeshCenteringEnabled(bool b) |
void | setTangentGenerationEnabled(bool b) |
QVector<QVector4D> | tangents() const |
QVector<QVector2D> | textureCoordinates() const |
QVector<QVector3D> | vertices() const |
Reimplemented Public Functions
virtual QGeometry * | geometry() const |
virtual bool | load(QIODevice *ioDev, const QString &subMesh = QString()) |
- 2 public functions inherited from Qt3DRender::QGeometryLoaderInterface
- 32 public functions inherited from QObject
Protected Functions
void | center(QVector<QVector3D> &points) |
virtual bool | doLoad(QIODevice *ioDev, const QString &subMesh = QString()) = 0 |
void | generateAveragedNormals(const QVector<QVector3D> &points, QVector<QVector3D> &normals, const QVector<unsigned int> &faces) const |
void | generateGeometry() |
void | generateTangents(const QVector<QVector3D> &points, const QVector<QVector3D> &normals, const QVector<unsigned int> &faces, const QVector<QVector2D> &texCoords, QVector<QVector4D> &tangents) const |
- 9 protected functions inherited from QObject
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 2 signals inherited from QObject
- 11 static public members inherited from QObject
Member Function Documentation
BaseGeometryLoader::BaseGeometryLoader()
Default constructs an instance of BaseGeometryLoader.
[protected]
void BaseGeometryLoader::center(QVector<QVector3D> &points)
[pure virtual protected]
bool BaseGeometryLoader::doLoad(QIODevice *ioDev, const QString &subMesh = QString())
[protected]
void BaseGeometryLoader::generateAveragedNormals(const QVector<QVector3D> &points, QVector<QVector3D> &normals, const QVector<unsigned int> &faces) const
[protected]
void BaseGeometryLoader::generateGeometry()
[protected]
void BaseGeometryLoader::generateTangents(const QVector<QVector3D> &points, const QVector<QVector3D> &normals, const QVector<unsigned int> &faces, const QVector<QVector2D> &texCoords, QVector<QVector4D> &tangents) const
[virtual]
QGeometry *BaseGeometryLoader::geometry() const
bool BaseGeometryLoader::hasNormals() const
bool BaseGeometryLoader::hasTangents() const
bool BaseGeometryLoader::hasTextureCoordinates() const
QVector<unsigned int> BaseGeometryLoader::indices() const
bool BaseGeometryLoader::isLoadTextureCoordinatesEnabled() const
bool BaseGeometryLoader::isMeshCenteringEnabled() const
bool BaseGeometryLoader::isTangentGenerationEnabled() const
[virtual]
bool BaseGeometryLoader::load(QIODevice *ioDev, const QString &subMesh = QString())
QVector<QVector3D> BaseGeometryLoader::normals() const
void BaseGeometryLoader::setLoadTextureCoordinatesEnabled(bool b)
See also isLoadTextureCoordinatesEnabled().
void BaseGeometryLoader::setMeshCenteringEnabled(bool b)
See also isMeshCenteringEnabled().
void BaseGeometryLoader::setTangentGenerationEnabled(bool b)
See also isTangentGenerationEnabled().