TransformTracker allows watching a transform for change and computing a projected screen position given a window size and a camera. More...
Since: | Kuesa 1.3 |
Instantiates: | TransformTracker |
TransformTracker allows watching a transform for change and computing a projected screen position given a window size and a camera.
This is especially useful to place 2D content based on a 3D position.
SceneEntity { id: sceneEntity Camera { id: camera } TransformTracker { name: "MyTransform" camera: camera screenSize: Qt.size(512, 512) onScreenPositionChanged: { // Reacts to new position ... } } }
Holds the local transformation matrix associated to the tracker's referenced Transform instance.
Holds the name of theTransform instance to retrieve from the SceneEntity.
Holds the local rotation associated to the tracker's referenced Transform instance.
Holds the local x rotation (euler angle) associated to the tracker's referenced Transform instance.
Holds the local y rotation (euler angle) associated to the tracker's referenced Transform instance.
Holds the local z rotation (euler angle) associated to the tracker's referenced Transform instance.
Holds the local uniform scale associated to the tracker's referenced Transform instance.
Holds the local 3D scale associated to the tracker's referenced Transform instance.
Holds the 2D screen position computed from the transformation in world space obtained from the tracker's referenced Transform, the camera, the sceneSize and viewportRect.
Holds the size of the area within which we should compute screen positions. This would usually be the size of the window or the size of the sub view within the window.
Holds the local translation associated to the tracker's referenced Transform instance.
Holds the normalized viewport rectangle defining the area into which screen positions should be computed. If unspecified Qt.rect(0.0, 0.0, 1.0, 1.0) will be used.
Holds the world transformation matrix associated to the tracker's referenced Transform instance.