1// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "qabstractcollisionqueryservice_p.h"
5
6#include "qcollisionqueryresult_p.h"
7
8QT_BEGIN_NAMESPACE
9
10namespace Qt3DRender {
11namespace RayCasting {
12
13QAbstractCollisionQueryService::QAbstractCollisionQueryService(const QString &description)
14 : QAbstractServiceProvider(*new QAbstractCollisionQueryServicePrivate(description))
15{
16}
17
18QAbstractCollisionQueryService::QAbstractCollisionQueryService(QAbstractCollisionQueryServicePrivate &dd)
19 : QAbstractServiceProvider(dd)
20{
21}
22
23void QAbstractCollisionQueryService::setResultHandle(QCollisionQueryResult &result, const QQueryHandle &handle)
24{
25 result.d_func()->setHandle(handle);
26}
27
28void QAbstractCollisionQueryService::addEntityHit(QCollisionQueryResult &result, Qt3DCore::QNodeId entity,
29 const Vector3D& intersection, float distance,
30 const Vector3D& uvw)
31{
32 result.d_func()->addEntityHit(entity, intersection, distance, uvw);
33}
34
35} // RayCasting
36} // Qt3DRender
37
38QT_END_NAMESPACE
39
40#include "moc_qabstractcollisionqueryservice_p.cpp"
41

source code of qt3d/src/render/raycasting/qabstractcollisionqueryservice.cpp