QGraphicsLookAtTransform ClassThe QGraphicsLookAtTransform class implements a transformation that causes an Item3D to orient to face another Item3D. More... #include <QGraphicsLookAtTransform> Inherits: QQuickQGraphicsTransform3D. QGraphicsLookAtTransform is instantiated by QML element LookAtTransform This class was introduced in Qt 4.8. Properties
Public Functions
Signals
Additional Inherited Members
Detailed DescriptionThe QGraphicsLookAtTransform class implements a transformation that causes an Item3D to orient to face another Item3D. Sometimes it can be useful to make an object face towards another object, wherever it might be located. This is useful for objects like cameras, lights, arrows, faces etc. Another common use is called "billboarding", where a quad is always oriented to face the camera. Property Documentation
|
bool | preserveUpVector() const |
void | setPreserveUpVector(bool value) |
Notifier signal:
void | preserveUpVectorChanged() |
This property holds the local-relative coordinates that are being looked at.
This property indicates what this transform is trying to look at. After applying the transformation.
Forwards is always considered to be in the direction of the positive z axis in local space, and up is always considered to be the positive y axis, and rotation is always around the position (0,0,0) in local space (although any values can be emulated by applying the LookAt transformation to a parent Item3D, and then applying transformations relative to that parent).
If no subject is set, no transformation is applied.
Access functions:
QQuickItem3D * | subject() const |
void | setSubject(QQuickItem3D * value) |
Notifier signal:
void | subjectChanged() |
Construct a lookAt transform and attach it to parent.
Destroy this lookAt transform.