Lets the camera be used in the scene.
Lets the camera be used in the scene. Also, it enables the use of more than one pressed key at the same time. Be sure that the provided parameters are not null.
the scene that contains this camera
the action to execute whenever the camera moves or rotates
Unit, since it has the side effect of initialize the camera
This can be used to check if a keyboard event is a rotation or a movement.
This can be used to check if a keyboard event is a rotation or a movement.
the keyboard event that will be checked
true if the event will cause a rotation or movement, false otherwise.
Rotates the camera based on the new position of the mouse.
Rotates the camera based on the new position of the mouse.
the mouse event that will be used to rotate the camera
Unit, since it has the side effect of rotating the camera
This has to be called before actually rotating the camera; it indicates the start of the rotation.
This has to be called before actually rotating the camera; it indicates the start of the rotation.
the mouse event that starts the rotation
Unit, since it has the side effect of preparing the camera for rotation
Stops any movement or rotation currently active on the camera.
Stops any movement or rotation currently active on the camera. This is useful since the camera remembers any pressed key, so if the user stops pressing a movement or rotation key when the main window is not focused, the camera will continue to move or rotate forever. This method should then be called to stop that.
Unit, since it has the side effect of stopping the camera from moving and rotating
(Since version ) see corresponding Javadoc for more information.
This trait is an interface of a camera that supports operations like movement and rotation.