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#ifndef QT3DRENDER_RENDER_BOUNDINGVOLUMEDEBUG_H
5#define QT3DRENDER_RENDER_BOUNDINGVOLUMEDEBUG_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#if 0
19
20#include <Qt3DRender/private/backendnode_p.h>
21#include <QVector3D>
22
23QT_BEGIN_NAMESPACE
24
25namespace Qt3DRender {
26
27namespace Render {
28
29class Q_AUTOTEST_EXPORT BoundingVolumeDebug : public BackendNode
30{
31public:
32 BoundingVolumeDebug();
33 ~BoundingVolumeDebug();
34
35 void cleanup();
36 void updateFromPeer(Qt3DCore::QNode *peer) final;
37 void sceneChangeEvent(const Qt3DCore::QSceneChangePtr &e) final;
38
39 inline bool isRecursive() const { return m_recursive; }
40 inline float radius() const { return m_radius; }
41 inline QVector3D center() const { return m_center; }
42
43 void setRadius(float radius);
44 void setCenter(const QVector3D &center);
45
46private:
47 bool m_recursive;
48 float m_radius;
49 QVector3D m_center;
50};
51
52} // Render
53
54} // Qt3DRender
55
56QT_END_NAMESPACE
57
58#endif
59
60#endif // QT3DRENDER_RENDER_BOUNDINGVOLUMEDEBUG_H
61

source code of qt3d/src/render/backend/boundingvolumedebug_p.h