Класс QCylinderGeometry
класс Qt3DExtras::QCylinderGeometryКласс QCylinderGeometry позволяет создавать цилиндр в 3D пространстве. * * * * * Класс QCylinderGeometry чаще всего используется внутри класса QCylinderMesh, * но также может быть использован в пользовательских подклассах Qt3DRender::QGeometryRenderer. Подробнее...
| Заголовок: | #include <Qt3DExtras/QCylinderGeometry> |
| CMake: | find_package(Qt6 COMPONENTS 3dextras REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| С момента: | Qt 5.7 |
| Инициализирован из: | CylinderGeometry |
| Наследуется от: | Qt3DCore::QGeometry |
Свойства
|
|
Открытые функции
| QCylinderGeometry(Qt3DCore::QNode *parent = nullptr) | |
| Qt3DCore::QAttribute * | indexAttribute() const |
| float | длина() const |
| Qt3DCore::QAttribute * | normalAttribute() const |
| Qt3DCore::QAttribute * | positionAttribute() const |
| float | радиус() const |
| int | rings() const |
| int | slices() const |
| Qt3DCore::QAttribute * | texCoordAttribute() const |
| void | updateIndices() |
| void | updateVertices() |
Открытые слоты
| void | установитьДлину(float length) |
| void | установитьРадиус(float radius) |
| void | setRings(int rings) |
| void | setSlices(int slices) |
Сигналы
| void | lengthChanged(float length) |
| void | radiusChanged(float radius) |
| void | ringsChanged(int rings) |
| void | slicesChanged(int slices) |
Подробное описание
* * * *
Документация свойств
[read-only] indexAttribute : Qt3DCore::QAttribute* const
Содержит атрибут геометрии индекса.
Функции доступа:
| Qt3DCore::QAttribute * | indexAttribute() const |
length : float
Содержит длину цилиндра.
Функции доступа:
| float | length() const |
| void | setLength(float length) |
Сигнал уведомления:
| void | lengthChanged(float length) |
[read-only] normalAttribute : Qt3DCore::QAttribute* const
Содержит атрибут нормали геометрии.
Функции доступа:
| Qt3DCore::QAttribute * | normalAttribute() const |
[read-only] positionAttribute : Qt3DCore::QAttribute* const
Содержит атрибут положения геометрии.
Функции доступа:
| Qt3DCore::QAttribute * | positionAttribute() const |
radius : float
Содержит радиус цилиндра.
Функции доступа:
| float | radius() const |
| void | setRadius(float radius) |
Сигнал уведомления:
| void | radiusChanged(float radius) |
rings : int
Содержит количество колец в цилиндре.
Функции доступа:
| int | rings() const |
| void | setRings(int rings) |
Сигнал уведомления:
| void | ringsChanged(int rings) |
slices : int
Содержит количество секторов в цилиндре.
Функции доступа:
| int | slices() const |
| void | setSlices(int slices) |
Сигнал уведомления:
| void | slicesChanged(int slices) |
[read-only] texCoordAttribute : Qt3DCore::QAttribute* const
Содержит атрибут текстурных координат геометрии.
Функции доступа:
| Qt3DCore::QAttribute * | texCoordAttribute() const |
Документация функций-членов
QCylinderGeometry::QCylinderGeometry(Qt3DCore::QNode *parent = nullptr)
Создаёт новый QCylinderMesh с parent.
void QCylinderGeometry::updateIndices()
Обновляет индексы на основе свойств rings, slices и length.
void QCylinderGeometry::updateVertices()
Обновляет вершины на основе свойств rings, slices и length.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.1/qt3dextras-qcylindergeometry.html