Q3DLight Class
Representation of a light source in 3D space. More...
| Header: | #include <Q3DLight> |
| Since: | QtDataVisualization 1.0 |
| Instantiated By: | Light3D |
| Inherits: | Q3DObject |
This class was introduced in QtDataVisualization 1.0.
Properties
- autoPosition : bool
Public Functions
| Q3DLight(QObject *parent = nullptr) | |
| virtual | ~Q3DLight() |
| bool | isAutoPosition() |
| void | setAutoPosition(bool enabled) |
Signals
| void | autoPositionChanged(bool autoPosition) |
Related Non-Members
| typedef | QObjectList |
| QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
| T | qobject_cast(QObject *object) |
| T | qobject_cast(const QObject *object) |
Macros
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
| Q_CLASSINFO(Name, Value) | |
| Q_DISABLE_COPY(Class) | |
| Q_DISABLE_COPY_MOVE(Class) | |
| Q_DISABLE_MOVE(Class) | |
| Q_EMIT | |
| Q_ENUM(...) | |
| Q_ENUM_NS(...) | |
| Q_FLAG(...) | |
| Q_FLAG_NS(...) | |
| Q_GADGET | |
| Q_INTERFACES(...) | |
| Q_INVOKABLE | |
| Q_NAMESPACE | |
| Q_OBJECT | |
| Q_PROPERTY(...) | |
| Q_REVISION | |
| Q_SET_OBJECT_NAME(Object) | |
| Q_SIGNAL | |
| Q_SIGNALS | |
| Q_SLOT | |
| Q_SLOTS |
Additional Inherited Members
- 1 public slot inherited from QObject
- 9 static public members inherited from QObject
- 2 protected functions inherited from Q3DObject
- 9 protected functions inherited from QObject
Detailed Description
Q3DLight represents a monochrome light source in 3D space.
Note: Default light has isAutoPosition() true.
Property Documentation
autoPosition : bool
This property holds whether the light position follows the camera automatically.
Note: Has no effect if shadows are enabled. Remember to disable shadows before setting light's position, or it will be overwritten by automatic positioning if isAutoPosition() is false.
This property was introduced in QtDataVisualization 5.9.
Access functions:
| bool | isAutoPosition() |
| void | setAutoPosition(bool enabled) |
Notifier signal:
| void | autoPositionChanged(bool autoPosition) |