1// Copyright (C) 2016 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 <QtDataVisualization/q3dobject.h>
8
9QT_BEGIN_NAMESPACE
10
11class Q3DLightPrivate;
12
13class Q_DATAVISUALIZATION_EXPORT Q3DLight : public Q3DObject
14{
15 Q_OBJECT
16 Q_PROPERTY(bool autoPosition READ isAutoPosition WRITE setAutoPosition NOTIFY autoPositionChanged REVISION(1, 3))
17
18public:
19 explicit Q3DLight(QObject *parent = nullptr);
20 virtual ~Q3DLight();
21
22 void setAutoPosition(bool enabled);
23 bool isAutoPosition();
24
25Q_SIGNALS:
26 Q_REVISION(1, 3) void autoPositionChanged(bool autoPosition);
27
28private:
29 QScopedPointer<Q3DLightPrivate> d_ptr;
30
31 Q_DISABLE_COPY(Q3DLight)
32
33 friend class Q3DLightPrivate;
34 friend class Q3DScenePrivate;
35};
36
37QT_END_NAMESPACE
38
39#endif
40

source code of qtdatavis3d/src/datavisualization/engine/q3dlight.h