Spec-Zone.ru › Qt 5.9

Класс QPlaneGeometry

(Qt3DExtras::QPlaneGeometry)

Класс QPlaneGeometry позволяет создавать плоскость в трехмерном пространстве. Подробнее...

Заголовок: #include <Qt3DExtras/QPlaneGeometry>
qmake: QT += 3dextras
С момента: Qt 5.7
Создаётся: PlaneGeometry
Наследует: Qt3DRender::QGeometry
  • Список всех членов, включая унаследованные

Свойства

  • height : float
  • indexAttribute : Qt3DRender::QAttribute * const
  • mirrored : bool
  • normalAttribute : Qt3DRender::QAttribute * const
  • positionAttribute : Qt3DRender::QAttribute * const
  • resolution : QSize
  • tangentAttribute : Qt3DRender::QAttribute * const
  • texCoordAttribute : Qt3DRender::QAttribute * const
  • width : float
  • 1 свойство унаследовано от Qt3DRender::QGeometry
  • 3 свойства унаследованы от Qt3DCore::QNode
  • 1 свойство унаследовано от QObject

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

QPlaneGeometry(QNode *parent = nullptr)
float height() const
Qt3DRender::QAttribute * indexAttribute() const
bool mirrored() const
Qt3DRender::QAttribute * normalAttribute() const
Qt3DRender::QAttribute * positionAttribute() const
QSize resolution() const
Qt3DRender::QAttribute * tangentAttribute() const
Qt3DRender::QAttribute * texCoordAttribute() const
void updateIndices()
void updateVertices()
float width() const
  • 4 открытые функции унаследованы от Qt3DRender::QGeometry
  • 11 открытые функции унаследованы от Qt3DCore::QNode
  • 32 открытые функции унаследованы от QObject

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

void setHeight(float height)
void setMirrored(bool mirrored)
void setResolution(const QSize &resolution)
void setWidth(float width)
  • 1 открытый слот унаследован от Qt3DRender::QGeometry
  • 3 открытых слота унаследованы от Qt3DCore::QNode
  • 1 открытый слот унаследован от QObject

Сигналы

void heightChanged(float height)
void mirroredChanged(bool mirrored)
void resolutionChanged(const QSize &resolution)
void widthChanged(float width)
  • 1 сигнал унаследован от Qt3DRender::QGeometry
  • 4 сигнала унаследованы от Qt3DCore::QNode
  • 2 сигнала унаследованы от QObject

Дополнительные унаследованные члены

  • 11 статических открытых членов унаследованы от QObject
  • 2 защищенные функции унаследованы от Qt3DCore::QNode
  • 9 защищенные функции унаследованы от QObject

Подробное описание

Класс QPlaneGeometry позволяет создавать плоскость в трехмерном пространстве.

Класс QPlaneGeometry чаще всего используется внутри класса QPlaneMesh, но также может использоваться в пользовательских подклассах Qt3DRender::QGeometryRenderer.

Документация свойств

height : float

Содержит высоту плоскости.

Функции доступа:

float height() const
void setHeight(float height)

Сигнал уведомления:

void heightChanged(float height)

indexAttribute : Qt3DRender::QAttribute * const

Содержит атрибут индекса геометрии.

Функции доступа:

Qt3DRender::QAttribute * indexAttribute() const

mirrored : bool

Управляет тем, следует ли перевернуть UV-координаты плоскости по вертикали.

Это свойство было добавлено в Qt 5.9.

Функции доступа:

bool mirrored() const
void setMirrored(bool mirrored)

Сигнал уведомления:

void mirroredChanged(bool mirrored)

normalAttribute : Qt3DRender::QAttribute * const

Содержит атрибут нормали геометрии.

Функции доступа:

Qt3DRender::QAttribute * normalAttribute() const

positionAttribute : Qt3DRender::QAttribute * const

Содержит атрибут положения геометрии.

Функции доступа:

Qt3DRender::QAttribute * positionAttribute() const

resolution : QSize

Содержит разрешение плоскости.

Функции доступа:

QSize resolution() const
void setResolution(const QSize &resolution)

Сигнал уведомления:

void resolutionChanged(const QSize &resolution)

tangentAttribute : Qt3DRender::QAttribute * const

Содержит атрибут касательной геометрии.

Функции доступа:

Qt3DRender::QAttribute * tangentAttribute() const

texCoordAttribute : Qt3DRender::QAttribute * const

Содержит атрибут координат текстуры геометрии.

Функции доступа:

Qt3DRender::QAttribute * texCoordAttribute() const

width : float

Содержит ширину плоскости.

Функции доступа:

float width() const
void setWidth(float width)

Сигнал уведомления:

void widthChanged(float width)

Документация по функциям членов

QPlaneGeometry::QPlaneGeometry(QNode *parent = nullptr)

Создает новую QPlaneGeometry с parent.

void QPlaneGeometry::updateIndices()

Обновляет индексы на основе разрешения сетки.

void QPlaneGeometry::updateVertices()

Обновляет вершины на основе разрешения сетки, свойств width и height.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.9/qt3dextras-qplanegeometry.html

Spec-Zone.ru

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