Qt3DRender::QDepthRange Class
class Qt3DRender::QDepthRangePermite reasignar los valores de profundidad que se escriben en el búfer de profundidad. Más información...
| Encabezado: | #include <qdepthrange.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| En QML: | DepthRange |
| Heredado de: | Qt3DRender::QRenderState |
| Estado: | Obsoleto |
Esta clase está obsoleta. Recomendamos encarecidamente no utilizarla en código nuevo.
Propiedades
Funciones públicas
Ranuras públicas
| void | setFarValue(double value) |
| void | setNearValue(double value) |
Señales
| void | farValueChanged(double farValue) |
| void | nearValueChanged(double nearValue) |
Descripción detallada
Por defecto, OpenGL escribe la información de profundidad de la escena en el búfer de profundidad en el rango [0,0; 1,0], donde 0,0 corresponde al plano de recorte cercano y 1,0 al plano de recorte lejano. QDepthRange permite asignar estos valores a un rango diferente, de modo que algunas partes de la escena se representen siempre delante o detrás de otras. Los valores válidos para «cercano» y «lejano» están comprendidos entre 0 y 1.
Documentación de la propiedad
farValue : double
El valor del búfer de profundidad correspondiente al plano de recorte lejano. Los valores válidos están comprendidos entre 0 y 1.
Funciones de acceso:
| double | farValue() const |
| void | setFarValue(double value) |
Señal de notificación:
| void | farValueChanged(double farValue) |
nearValue : double
El valor del búfer de profundidad correspondiente al plano de recorte cercano. Los valores válidos se encuentran entre 0 y 1.
Funciones de acceso:
| double | nearValue() const |
| void | setNearValue(double value) |
Señal de notificación:
| void | nearValueChanged(double nearValue) |
© 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.