Qt3DExtras::QConeGeometry Class
class Qt3DExtras::QConeGeometryLa clase QConeGeometry permite la creación de un cono en el espacio 3D. Más...
| Cabecera: | #include <Qt3DExtras/QConeGeometry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras)target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| En QML: | ConeGeometry |
| Hereda: | Qt3DCore::QGeometry |
| Status: | Obsoleto |
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 es la más utilizada internamente por QConeMesh pero también puede ser utilizada en subclases personalizadas de Qt3DRender::QGeometryRenderer. La clase permite la creación tanto de un cono como de un cono truncado.
Documentación de propiedades
bottomRadius : float
Mantiene el radio inferior del cono.
Funciones de acceso:
| float | bottomRadius() const |
| void | setBottomRadius(float bottomRadius) |
Señal de aviso:
| void | bottomRadiusChanged(float bottomRadius) |
hasBottomEndcap : bool
Determina si el fondo del cono está tapado o abierto.
Funciones de acceso:
| bool | hasBottomEndcap() const |
| void | setHasBottomEndcap(bool hasBottomEndcap) |
Señal de aviso:
| 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 aviso:
| void | hasTopEndcapChanged(bool hasTopEndcap) |
[read-only] indexAttribute : Qt3DCore::QAttribute* const
Contiene el atributo de índice de la geometría.
Funciones de acceso:
| Qt3DCore::QAttribute * | indexAttribute() const |
length : float
Mantiene la longitud del cono.
Funciones de acceso:
| float | length() const |
| void | setLength(float length) |
Señal de aviso:
| 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
Contiene el atributo de posición de la geometría.
Funciones de acceso:
| Qt3DCore::QAttribute * | positionAttribute() const |
rings : int
Contiene el número de anillos de la geometría.
Funciones de acceso:
| int | rings() const |
| void | setRings(int rings) |
Señal del notificador:
| void | ringsChanged(int rings) |
slices : int
Indica el número de cortes de la geometría.
Funciones de acceso:
| int | slices() const |
| void | setSlices(int slices) |
Señal del notificador:
| void | slicesChanged(int slices) |
[read-only] texCoordAttribute : Qt3DCore::QAttribute* const
Contiene el atributo de coordenadas de la textura de la geometría.
Funciones de acceso:
| Qt3DCore::QAttribute * | texCoordAttribute() const |
topRadius : float
Mantiene el radio superior del cono.
Funciones de acceso:
| float | topRadius() const |
| void | setTopRadius(float topRadius) |
Señal del notificador:
| 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.