Qt3DRender::QDepthRange Class
class Qt3DRender::QDepthRangePermite remapear os valores de profundidade gravados no buffer de profundidade. Mais...
| Cabeçalho: | #include <qdepthrange.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| No QML: | DepthRange |
| Herdado de: | Qt3DRender::QRenderState |
| Status: | Obsoleta |
Esta classe está obsoleta. Recomendamos fortemente que não seja utilizada em código novo.
Propriedades
Funções públicas
Slots públicos
| void | setFarValue(double value) |
| void | setNearValue(double value) |
Sinais
| void | farValueChanged(double farValue) |
| void | nearValueChanged(double nearValue) |
Descrição detalhada
Por padrão, o OpenGL grava as informações de profundidade da cena no buffer de profundidade no intervalo [0,0; 1,0], sendo que 0,0 corresponde ao plano de recorte próximo e 1,0 ao plano de recorte distante. QDepthRange permite mapear esses valores para um intervalo diferente, de modo que partes da cena sejam sempre renderizadas à frente ou atrás de outras partes. Os valores válidos para o plano de recorte próximo e o plano de recorte distante estão entre 0 e 1.
Documentação da propriedade
farValue : double
O valor do buffer de profundidade correspondente ao plano de recorte distante. Os valores válidos estão entre 0 e 1.
Funções de acesso:
| double | farValue() const |
| void | setFarValue(double value) |
Sinal do notificador:
| void | farValueChanged(double farValue) |
nearValue : double
O valor do buffer de profundidade correspondente ao plano de recorte próximo. Os valores válidos estão entre 0 e 1.
Funções de acesso:
| double | nearValue() const |
| void | setNearValue(double value) |
Sinal de notificação:
| 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.