2022-06-08 12:47:24 +00:00
|
|
|
// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2015-01-05 11:22:57 +00:00
|
|
|
|
|
|
|
#ifndef EXAMPLESCENE_H
|
|
|
|
#define EXAMPLESCENE_H
|
|
|
|
|
|
|
|
#include <Qt3DCore/QEntity>
|
|
|
|
|
|
|
|
class BoxEntity;
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class QTimer;
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
2015-10-12 19:45:19 +00:00
|
|
|
class ExampleScene : public Qt3DCore::QEntity
|
2015-01-05 11:22:57 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-10-12 19:45:19 +00:00
|
|
|
explicit ExampleScene(Qt3DCore::QNode *parent = 0);
|
2015-01-05 11:22:57 +00:00
|
|
|
~ExampleScene();
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void updateScene();
|
|
|
|
void buildScene();
|
|
|
|
|
|
|
|
private:
|
2020-07-07 12:02:36 +00:00
|
|
|
QList<BoxEntity *> m_entities;
|
2015-01-05 11:22:57 +00:00
|
|
|
QTimer *m_timer;
|
|
|
|
bool m_even;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // EXAMPLESCENE_H
|