1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef Q3DLIGHT_H
5#define Q3DLIGHT_H
6
7#include <QtGraphs/q3dobject.h>
8
9QT_BEGIN_NAMESPACE
10
11class Q3DLightPrivate;
12
13class Q_GRAPHS_EXPORT Q3DLight : public Q3DObject
14{
15 Q_OBJECT
16 Q_DECLARE_PRIVATE(Q3DLight)
17 Q_PROPERTY(bool autoPosition READ isAutoPosition WRITE setAutoPosition NOTIFY autoPositionChanged)
18
19public:
20 explicit Q3DLight(QObject *parent = nullptr);
21 virtual ~Q3DLight();
22
23 void setAutoPosition(bool enabled);
24 bool isAutoPosition();
25
26Q_SIGNALS:
27 void autoPositionChanged(bool autoPosition);
28
29private:
30 Q_DISABLE_COPY(Q3DLight)
31
32 friend class Q3DScenePrivate;
33};
34
35QT_END_NAMESPACE
36
37#endif
38

source code of qtgraphs/src/graphs/engine/q3dlight.h