Qt3DRender::QNoDraw Class
class Qt3DRender::QNoDrawCuando un nodo Qt3DRender::QNoDraw está presente en una rama FrameGraph, esto impide que el renderizador renderice cualquier primitiva. Más...
| Cabecera: | #include <QNoDraw> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender)target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| En QML: | NoDraw |
| Hereda: | Qt3DRender::QFrameGraphNode |
| Status: | Obsoleto |
Funciones Públicas
| QNoDraw(Qt3DCore::QNode *parent = nullptr) |
Descripción Detallada
Qt3DRender::QNoDraw debería usarse cuando el FrameGraph necesita configurar algunos estados de renderizado o limpiar algunos buffers sin requerir que se dibuje ninguna malla. Tiene el mismo efecto que tener un Qt3DRender::QRenderPassFilter que no coincide con ninguna de las instancias Qt3DRender::QRenderPass disponibles de la escena sin el coste adicional de realizar realmente el filtrado.
Cuando está deshabilitado, un nodo Qt3DRender::QNoDraw no impedirá que se renderice la escena. Alternar la propiedad enabled es, por tanto, una forma de hacer que un Qt3DRender::QNoDraw esté activo o inactivo.
Qt3DRender::QNoDraw normalmente se usa como hijo de un nodo Qt3DRendeR::QClearBuffers para evitar que se dibuje la escena cuando hay múltiples pases de render.
Qt3DRender::QViewport *viewport = new Qt3DRender::QViewport(); Qt3DRender::QCameraSelector *cameraSelector = new Qt3DRender::QCameraSelector(viewport); Qt3DRender::QClearBuffers *clearBuffers = new Qt3DRender::QClearBuffers(cameraSelector); clearBuffers->setBuffers(Qt3DRender::QClearBuffers::ColorDepthBuffer); Qt3DRender::QNoDraw *noDraw = new Qt3DRender::QNoDraw(clearBuffers); Qt3DRender::QRenderPassFilter *mainPass = new Qt3DRender::QRenderPassFilter(cameraSelector); .... Qt3DRender::QRenderPassFilter *previewPass = new Qt3DRender::QRenderPassFilter(cameraSelector); ....
Documentación de la Función Miembro
[explicit] QNoDraw::QNoDraw(Qt3DCore::QNode *parent = nullptr)
El constructor crea una instancia con la dirección parent especificada.
© 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.