Spec-Zone.ru › Qt

Класс 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
  • Список всех членов, включая унаследованные

Свойства

  • indexAttribute : Qt3DCore::QAttribute* const
  • длина : float
  • normalAttribute : Qt3DCore::QAttribute* const
  • positionAttribute : Qt3DCore::QAttribute* const
  • радиус : float
  • rings : int
  • сегменты : int
  • texCoordAttribute : Qt3DCore::QAttribute* const

Открытые функции

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 сегменты() const
Qt3DCore::QAttribute * texCoordAttribute() const
void updateIndices()
void updateVertices()

Открытые слоты

void установитьДлину(float length)
void установитьРадиус(float radius)
void установитьRings(int rings)
void установитьСегменты(int slices)

Сигналы

void измениласьДлина(float length)
void изменилсяРадиус(float radius)
void изменилисьRings(int rings)
void изменилисьСегменты(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.2/qt3dextras-qcylindergeometry.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API