QAbstractCollisionQueryService Class | Qt 3D 5.6

Qt 5.6 | Qt 3D | C++ Classes | QAbstractCollisionQueryService

Qt 5.6.2 Reference Documentation

# QAbstractCollisionQueryService Class

(Qt3DRender::QAbstractCollisionQueryService)

Inherits: | Qt3DCore::QAbstractServiceProvider

- List of all members, including inherited members

## Public Types

enum | QueryMode { FirstHit, AllHits }

## Public Functions

virtual QVector<QCollisionQueryResult> | fetchAllResults() const = 0
virtual QCollisionQueryResult | fetchResult(const QQueryHandle &handle) = 0
virtual QQueryHandle | query(const Qt3DCore::QRay3D &ray, QueryMode mode, QBoundingVolumeProvider *provider) = 0

- 2 public functions inherited from Qt3DCore::QAbstractServiceProvider

## Protected Functions

| QAbstractCollisionQueryService(const QString &description = QString())
| QAbstractCollisionQueryService(QAbstractCollisionQueryServicePrivate &dd)
void | addEntityHit(QCollisionQueryResult &result, const Qt3DCore::QNodeId &entity)
void | setResultHandle(QCollisionQueryResult &result, const QQueryHandle &handle)

## Member Type Documentation

### enum QAbstractCollisionQueryService::QueryMode

## Member Function Documentation

### `[protected]` QAbstractCollisionQueryService::QAbstractCollisionQueryService(const QString &description = QString())

Default constructs an instance of QAbstractCollisionQueryService.

### `[protected]` QAbstractCollisionQueryService::QAbstractCollisionQueryService(QAbstractCollisionQueryServicePrivate &dd)

Copy constructor.

### `[protected]` void QAbstractCollisionQueryService::addEntityHit(QCollisionQueryResult &result, const Qt3DCore::QNodeId &entity)

### `[pure virtual]` QVector<QCollisionQueryResult> QAbstractCollisionQueryService::fetchAllResults() const

### `[pure virtual]` QCollisionQueryResult QAbstractCollisionQueryService::fetchResult(const QQueryHandle &handle)

### `[pure virtual]` QQueryHandle QAbstractCollisionQueryService::query(const Qt3DCore::QRay3D &ray, QueryMode mode, QBoundingVolumeProvider *provider)

### `[protected]` void QAbstractCollisionQueryService::setResultHandle(QCollisionQueryResult &result, const QQueryHandle &handle)