QMaterial Class
(Qt3D::QMaterial)Provides an abstract class that should be the base of all Material component classes in a scene. More...
Header: | #include <QMaterial> |
qmake: | QT += 3drenderer |
Inherits: | |
Inherited By: | Qt3D::QDiffuseMapMaterial, Qt3D::QDiffuseSpecularMapMaterial, Qt3D::QGoochMaterial, Qt3D::QNormalDiffuseMapMaterial, Qt3D::QNormalDiffuseSpecularMapMaterial, Qt3D::QPerVertexColorMaterial, and Qt3D::QPhongMaterial |
Properties
- effect : Qt3D::QEffect *
Public Functions
QMaterial(QNode * parent = 0) | |
~QMaterial() | |
void | addParameter(QParameter * parameter) |
QEffect * | effect() const |
QList<QParameter *> | parameters() const |
void | removeParameter(QParameter * parameter) |
void | setEffect(QEffect * effect) |
void | setTextureParameter(QString name, QAbstractTextureProvider * tex) |
TextureDict | textureValues() const |
Signals
void | effectChanged() |
Protected Functions
void | copy(const QNode * ref) |
Detailed Description
Provides an abstract class that should be the base of all Material component classes in a scene.
QAbstractMaterial provide a way to specify the rendering of an Entity. Any aspect can define its own subclass of QAbstractMaterial so that a Material can be used to describe a visual element; for example, the way sound should reflect off an element, the temperature of a surface, and so on.
See also QEffect, QMesh, and QComponent.
Property Documentation
effect : Qt3D::QEffect *
Access functions:
Notifier signal:
void | effectChanged() |
Member Function Documentation
QMaterial::QMaterial(QNode * parent = 0)
QMaterial::~QMaterial()
void QMaterial::addParameter(QParameter * parameter)
[protected]
void QMaterial::copy(const QNode * ref)
QEffect * QMaterial::effect() const
Returns the effect used by the Material.
Note: Getter function for property effect.
See also setEffect().
QList<QParameter *> QMaterial::parameters() const
void QMaterial::removeParameter(QParameter * parameter)
void QMaterial::setEffect(QEffect * effect)
Sets the effect to be used with the Material.
Note: Setter function for property effect.
See also effect().
void QMaterial::setTextureParameter(QString name, QAbstractTextureProvider * tex)
TextureDict QMaterial::textureValues() const
© 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.