Qt3DExtras::QConeGeometry Class
class Qt3DExtras::QConeGeometryLa clase QConeGeometry permite crear un cono en el espacio 3D. Más información...
| Encabezado: | #include <Qt3DExtras/QConeGeometry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| En QML: | ConeGeometry |
| Heredado de: | Qt3DCore::QGeometry |
| Estado: | Obsoleto |
Esta clase está obsoleta. Recomendamos encarecidamente no utilizarla en código nuevo.
Propiedades
|
|
Funciones públicas
| float | bottomRadius() const |
| bool | hasBottomEndcap() const |
| bool | hasTopEndcap() const |
| Qt3DCore::QAttribute * | indexAttribute() const |
| float | length() const |
| Qt3DCore::QAttribute * | normalAttribute() const |
| Qt3DCore::QAttribute * | positionAttribute() const |
| int | rings() const |
| int | slices() const |
| Qt3DCore::QAttribute * | texCoordAttribute() const |
| float | topRadius() const |
| void | updateIndices() |
| void | updateVertices() |
Ranuras públicas
| void | setBottomRadius(float bottomRadius) |
| void | setHasBottomEndcap(bool hasBottomEndcap) |
| void | setHasTopEndcap(bool hasTopEndcap) |
| void | setLength(float length) |
| void | setRings(int rings) |
| void | setSlices(int slices) |
| void | setTopRadius(float topRadius) |
Señales
| void | bottomRadiusChanged(float bottomRadius) |
| void | hasBottomEndcapChanged(bool hasBottomEndcap) |
| void | hasTopEndcapChanged(bool hasTopEndcap) |
| void | lengthChanged(float length) |
| void | ringsChanged(int rings) |
| void | slicesChanged(int slices) |
| void | topRadiusChanged(float topRadius) |
Descripción detallada
La clase `QConeGeometry` se utiliza principalmente de forma interna en el ` QConeMesh `, pero también puede emplearse en subclases personalizadas de ` Qt3DRender::QGeometryRenderer `. La clase permite crear tanto un cono como un cono truncado.
Documentación de propiedades
bottomRadius : float
Contiene el radio inferior del cono.
Funciones de acceso:
| float | bottomRadius() const |
| void | setBottomRadius(float bottomRadius) |
Señal de notificación:
| void | bottomRadiusChanged(float bottomRadius) |
hasBottomEndcap : bool
Determina si la base del cono está tapada o abierta.
Funciones de acceso:
| bool | hasBottomEndcap() const |
| void | setHasBottomEndcap(bool hasBottomEndcap) |
Señal de notificación:
| void | hasBottomEndcapChanged(bool hasBottomEndcap) |
hasTopEndcap : bool
Determina si la parte superior del cono está tapada o abierta.
Funciones de acceso:
| bool | hasTopEndcap() const |
| void | setHasTopEndcap(bool hasTopEndcap) |
Señal de notificación:
| void | hasTopEndcapChanged(bool hasTopEndcap) |
[read-only] indexAttribute : Qt3DCore::QAttribute* const
Contiene el atributo de índice geométrico.
Funciones de acceso:
| Qt3DCore::QAttribute * | indexAttribute() const |
length : float
Indica la longitud del cono.
Funciones de acceso:
| float | length() const |
| void | setLength(float length) |
Señal de notificación:
| void | lengthChanged(float length) |
[read-only] normalAttribute : Qt3DCore::QAttribute* const
Contiene el atributo «normal» de la geometría.
Funciones de acceso:
| Qt3DCore::QAttribute * | normalAttribute() const |
[read-only] positionAttribute : Qt3DCore::QAttribute* const
Almacena el atributo de posición geométrica.
Funciones de acceso:
| Qt3DCore::QAttribute * | positionAttribute() const |
rings : int
Almacena el número de anillos de la geometría.
Funciones de acceso:
| int | rings() const |
| void | setRings(int rings) |
Señal de notificación:
| void | ringsChanged(int rings) |
slices : int
Contiene el número de secciones de la geometría.
Funciones de acceso:
| int | slices() const |
| void | setSlices(int slices) |
Señal de notificación:
| void | slicesChanged(int slices) |
[read-only] texCoordAttribute : Qt3DCore::QAttribute* const
Contiene el atributo de coordenadas de textura geométrica.
Funciones de acceso:
| Qt3DCore::QAttribute * | texCoordAttribute() const |
topRadius : float
Almacena el radio superior del cono.
Funciones de acceso:
| float | topRadius() const |
| void | setTopRadius(float topRadius) |
Señal de notificación:
| void | topRadiusChanged(float topRadius) |
© 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.