En esta página

Qt3DRender::QCullFace Class

class Qt3DRender::QCullFace

La clase QCullFace especifica si está activado el culling de la cara anterior o posterior. Más...

Cabecera: #include <QCullFace>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
En QML: CullFace
Hereda: Qt3DRender::QRenderState
Status: Obsoleto

Tipos públicos

enum CullingMode { NoCulling, Front, Back, FrontAndBack }

Propiedades

  • mode : CullingMode

Funciones públicas

QCullFace(Qt3DCore::QNode *parent = nullptr)
Qt3DRender::QCullFace::CullingMode mode() const

Ranuras públicas

void setMode(Qt3DRender::QCullFace::CullingMode mode)

Señales

void modeChanged(Qt3DRender::QCullFace::CullingMode mode)

Descripción Detallada

QCullFace establece si las facetas delanteras o traseras son seleccionadas. Las facetas incluyen triángulos, cuadriláteros, polígonos y rectángulos.

Puede ser añadido llamando al método addRenderState() en un QRenderPass:

// using namespace Qt3DRender;

QRenderPass *renderPass = new QRenderPass();

// Create a front face culling render state
QCullFace *cullFront = new QCullFace();
cullFront->setMode(QCullFace::Front);

// Add the render state to the render pass
renderPass->addRenderState(cullFront);

O llamando al método addRenderState() en un QRenderStateSet:

// using namespace Qt3DRender;

QRenderStateSet *renderStateSet = new QRenderStateSet();

// Create a front face culling render state
QCullFace *cullFront = new QCullFace();
cullFront->setMode(QCullFace::Front);

// Add the render state to the render pass
renderStateSet->addRenderState(cullFront);

Véase también QFrontFace.

Documentación de los tipos de miembros

enum QCullFace::CullingMode

Esta enumeración especifica valores para el modo de selección.

ConstanteValorDescripción
Qt3DRender::QCullFace::NoCulling0x0Culling desactivado
Qt3DRender::QCullFace::Front0x0404El culling está activado para los polígonos frontales
Qt3DRender::QCullFace::Back0x0405Culling está habilitado para los polígonos orientados hacia atrás
Qt3DRender::QCullFace::FrontAndBack0x0408Culling está habilitado para todos los polígonos, se dibujan puntos y líneas

Documentación de Propiedades

mode : CullingMode

Mantiene el modo de selección utilizado por QCullFace. Por defecto es QCullFace.Back.

Funciones de acceso:

Qt3DRender::QCullFace::CullingMode mode() const
void setMode(Qt3DRender::QCullFace::CullingMode mode)

Señal del notificador:

void modeChanged(Qt3DRender::QCullFace::CullingMode mode)

Documentación de la función miembro

[explicit] QCullFace::QCullFace(Qt3DCore::QNode *parent = nullptr)

Construye una nueva instancia de QCullFace::QCullFace con parent como padre.

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