|TransformationMatrixCameraController(QObject *parent = nullptr)|
|TransformationMatrixCameraController(const Camera &originCamera, QObject *parent = nullptr)|
|void||setOriginCamera(const Camera &originCamera)|
|TransformationMatrix *||transformationMatrix() const|
- 1 public function inherited from Esri::ArcGISRuntime::CameraController
- 31 public functions inherited from QObject
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 9 protected functions inherited from QObject
- 2 protected variables inherited from QObject
A transformation matrix camera controller that supports camera navigation by using TransformationMatrix.
Camera controllers can be applied to a SceneView to determine the camera interaction and navigation model.
The transformation matrix camera controller provides navigation by using a TransformationMatrix to control the camera's location and rotation. This class can be used with transformation matrices produced by AR APIs like ARKit and ARCore.
Member Function Documentation
TransformationMatrixCameraController::TransformationMatrixCameraController(QObject *parent = nullptr)
Create an TransformationMatrix camera controller object.
When a default-constructed TransformationMatrixCameraController is set on a scene view using SceneView::cameraController, the interaction mode will change for the active navigation model and be located at the origin camera's location and point along its rotation. The default camera has no rotation and is located at
(0,0) at an altitude of 15e6 meters.
- parent - The optional parent.
TransformationMatrixCameraController::TransformationMatrixCameraController(const Camera &originCamera, QObject *parent = nullptr)
When the controller is set on the scene view using SceneView::cameraController, the interaction mode will change for the active navigation model and be located at the TransformationMatrix's location of the camera and point along its rotation.
- originCamera - All following movements will be relative to the origin camera's location.
- parent - An optional parent.
Camera TransformationMatrixCameraController::originCamera() const
Gets the Camera that describes the original location.
The default camera has no rotation and is located at (0,0,15e6) meters.
See also setOriginCamera().
Emitted when the originCamera property changes.
void TransformationMatrixCameraController::setOriginCamera(const Camera &originCamera)
Sets the Camera that describes the original location to originCamera.
See also originCamera().
void TransformationMatrixCameraController::setTransformationMatrix(TransformationMatrix *transformationMatrix)
Sets the TransformationMatrix to transformationMatrix.
See also transformationMatrix().
Sets the translation factor to translationFactor.
This value will be multiplied into the TransformationMatrix property. Setting the value to 3 will cause position changes indicated by the transformation matrix property to be multiplied by 3.
Note: this does not affect the Camera rotation.
The value of translationFactor must be postive.
See also translationFactor().
TransformationMatrix *TransformationMatrixCameraController::transformationMatrix() const
The default value is a default constructed transformation matrix, using the values (0, 0, 0, 1) for x, y, z, w quaternion and (0, 0, 0) for x, y, z translations.
See also setTransformationMatrix().
Gets the translation factor.
The default value is
See also setTranslationFactor().
Emitted when the translationFactor property changes.