En esta página

QSSGModelHelpers Class

Clase que contiene funciones de ayuda para modificar y establecer datos para los renderizables del modelo. Más...

Header: #include <QSSGModelHelpers>
Since: Qt 6.7

Miembros públicos estáticos

float getGlobalOpacity(const QSSGFrameData &frameData, QSSGNodeId model)
float getGlobalOpacity(const QSSGFrameData &frameData, QSSGNodeId model, QSSGPrepContextId prepId)
QMatrix4x4 getGlobalTransform(const QSSGFrameData &frameData, QSSGNodeId model, QSSGPrepContextId prepId = {})
float getLocalOpacity(const QSSGFrameData &frameData, QSSGNodeId model)
QMatrix4x4 getLocalTransform(const QSSGFrameData &frameData, QSSGNodeId model)
void setGlobalOpacity(const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, QSSGNodeId model, float opacity)
void setGlobalTransform(const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, QSSGNodeId model, const QMatrix4x4 &transform)
void setModelMaterials(const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, QSSGModelHelpers::MaterialList materials)
void setModelMaterials(const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, QSSGNodeId model, QSSGModelHelpers::MaterialList materials)

Descripción detallada

Documentación de las funciones de los miembros

[static] float QSSGModelHelpers::getGlobalOpacity(const QSSGFrameData &frameData, QSSGNodeId model)

Devuelve Devuelve la opacidad global para el model.

frameData

[static] float QSSGModelHelpers::getGlobalOpacity(const QSSGFrameData &frameData, QSSGNodeId model, QSSGPrepContextId prepId)

Devuelve la opacidad global de model en el contexto de prepId. Por defecto, el argumento del contexto de preparación es QSSGPrepContextId::Uninitialized, que devuelve la opacidad global original del modelo.

frameData

Véase también QSSGRenderHelpers::createRenderables().

[static] QMatrix4x4 QSSGModelHelpers::getGlobalTransform(const QSSGFrameData &frameData, QSSGNodeId model, QSSGPrepContextId prepId = {})

Devuelve la transformación global de model en el contexto de prepId. Por defecto, el argumento de contexto de preparación es QSSGPrepContextId::Uninitialized, que devuelve la transformación global original del modelo.

frameData

Véase también QSSGRenderHelpers::createRenderables().

[static] float QSSGModelHelpers::getLocalOpacity(const QSSGFrameData &frameData, QSSGNodeId model)

Devuelve Devuelve la opacidad local para el model.

frameData

[static] QMatrix4x4 QSSGModelHelpers::getLocalTransform(const QSSGFrameData &frameData, QSSGNodeId model)

Devuelve Devuelve la transformada local de model.

frameData

[static] void QSSGModelHelpers::setGlobalOpacity(const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, QSSGNodeId model, float opacity)

Establece la opacidad global de model en el contexto de renderablesId.

frameData, opacity

Véase también QSSGRenderHelpers::createRenderables().

[static] void QSSGModelHelpers::setGlobalTransform(const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, QSSGNodeId model, const QMatrix4x4 &transform)

Establece la transformación global para model en el contexto de renderablesId.

frameData, transform

Véase también QSSGRenderHelpers::createRenderables().

[static] void QSSGModelHelpers::setModelMaterials(const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, QSSGModelHelpers::MaterialList materials)

Función de conveniencia para aplicar materials a todos los modelos del conjunto renderablesId.

frameData, renderablesId

Véase también QSSGRenderHelpers::createRenderables().

[static] void QSSGModelHelpers::setModelMaterials(const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, QSSGNodeId model, QSSGModelHelpers::MaterialList materials)

Establece el materials que se utilizará en model.

Nota: Al igual que con materials en el elemento model, los materiales se aplican de la misma manera.

La submalla utiliza un material de la lista materials, correspondiente a su índice. Si el número de materiales es inferior a las submallas, se utiliza el último material de la lista para las submallas siguientes.

frameData renderablesId

Véase también QSSGRenderHelpers::createRenderables().

© 2026 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.