Spec-Zone.ru › Qt 5.9

Класс QPickTriangleEvent

(Qt3DRender::QPickTriangleEvent)

Класс QPickTriangleEvent содержит информацию о выбранном треугольнике Подробнее...

Заголовок: #include <QPickTriangleEvent>
qmake: QT += 3drender
С момента: Qt 5.7
Инициализируется из: PickTriangleEvent
Наследует от: Qt3DRender::QPickEvent
  • Список всех членов, включая унаследованные

Свойства

  • triangleIndex : const uint
  • uvw : const QVector3D
  • vertex1Index : const uint
  • vertex2Index : const uint
  • vertex3Index : const uint
  • 8 свойств унаследовано от Qt3DRender::QPickEvent
  • 1 свойство унаследовано от QObject

Публичные функции

QPickTriangleEvent()
QPickTriangleEvent(const QPointF &position, const QVector3D &worldIntersection, const QVector3D &localIntersection, float distance, uint triangleIndex, uint vertex1Index, uint vertex2Index, uint vertex3Index)
QPickTriangleEvent(const QPointF &position, const QVector3D &worldIntersection, const QVector3D &localIntersection, float distance, uint triangleIndex, uint vertex1Index, uint vertex2Index, uint vertex3Index, Buttons button, int buttons, int modifiers, const QVector3D &uvw)
uint triangleIndex() const
QVector3D uvw() const
uint vertex1Index() const
uint vertex2Index() const
uint vertex3Index() const
  • 8 публичных функций унаследовано от Qt3DRender::QPickEvent
  • 32 публичных функции унаследовано от QObject

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

  • 1 публичный слот унаследован от Qt3DRender::QPickEvent
  • 1 публичный слот унаследован от QObject
  • 1 сигнал унаследован от Qt3DRender::QPickEvent
  • 2 сигнала унаследовано от QObject
  • 11 статических публичных членов унаследовано от QObject
  • 9 защищенных функций унаследовано от QObject

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

Класс QPickTriangleEvent содержит информацию о выбранном треугольнике

Когда QPickingSettings::pickMode() установлен в QPickingSettings::TrianglePicking, сигналы на QObjectPicker будут содержать экземпляр QPickTriangleEvent.

Этот класс содержит подробности выбранного треугольника.

Примечание: В случае индексированного рендеринга индексы вершин относятся к массиву координат, а не к массиву индексов.

См. также QPickingSettings, QPickEvent, QObjectPicker и QAttribute.

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

triangleIndex : const uint

Указывает индекс треугольника события

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

uint triangleIndex() const

uvw : const QVector3D

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

QVector3D uvw() const

vertex1Index : const uint

Указывает индекс первой вершины треугольника

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

uint vertex1Index() const

vertex2Index : const uint

Указывает индекс второй вершины треугольника

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

uint vertex2Index() const

vertex3Index : const uint

Указывает индекс третьей вершины треугольника

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

uint vertex3Index() const

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

QPickTriangleEvent::QPickTriangleEvent()

Создает новый QPickEvent.

QPickTriangleEvent::QPickTriangleEvent(const QPointF &position, const QVector3D &worldIntersection, const QVector3D &localIntersection, float distance, uint triangleIndex, uint vertex1Index, uint vertex2Index, uint vertex3Index)

QPickTriangleEvent::QPickTriangleEvent Создает новый QPickEvent с указанными параметрами position, worldIntersection, localIntersection, distance, triangleIndex, vertex1Index, vertex2Index и vertex3Index

QPickTriangleEvent::QPickTriangleEvent(const QPointF &position, const QVector3D &worldIntersection, const QVector3D &localIntersection, float distance, uint triangleIndex, uint vertex1Index, uint vertex2Index, uint vertex3Index, Buttons button, int buttons, int modifiers, const QVector3D &uvw)

Инициализирует экземпляр QPickTriangleEvent.

uint QPickTriangleEvent::triangleIndex() const

QPickTriangleEvent::triangleIndex Возвращает индекс выбранного треугольника

Примечание: Функция-геттер для свойства triangleIndex.

QVector3D QPickTriangleEvent::uvw() const

Возвращает 3D координаты u, v и w.

Примечание: Функция-геттер для свойства uvw.

uint QPickTriangleEvent::vertex1Index() const

QPickTriangleEvent::vertex1Index Возвращает индекс первой точки выбранного треугольника

Примечание: Функция-геттер для свойства vertex1Index.

uint QPickTriangleEvent::vertex2Index() const

QPickTriangleEvent::vertex2Index Возвращает индекс второй точки выбранного треугольника

Примечание: Функция-геттер для свойства vertex2Index.

uint QPickTriangleEvent::vertex3Index() const

QPickTriangleEvent::vertex3Index Возвращает индекс третьей точки выбранного треугольника

Примечание: Функция-геттер для свойства vertex3Index.

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

Spec-Zone.ru

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