Module OsgGA.Matrix_manipulator


module Matrix_manipulator: sig .. end
Matrix_manipulator is an abstract base class defining the interface, and a certain amount of default functionality, for classes which wish to control OSG cameras in response to GUI events.

type t 
osgGA::MatrixManipulator holder. Matrix manipulator type can be used in OsgViewer.Viewer.set_camera_manipulator
val set_auto_compute_home_position : t -> bool -> unit
Set whether the automatic compute of the home position is enabled.
val set_home_position : t -> Osg.Vec3.t -> Osg.Vec3.t -> Osg.Vec3.t -> unit
set_home_position eye center up Manually set the home position, and set the automatic compute of home position.
val compute_home_position : t -> unit
Compute the home position.
val home : t -> float -> unit
home current_time Move the camera to the default position. This version does not require OsgGA.Gui_event_adapter and OsgGA.Gui_action_adapter so may be called from somewhere other than a handle() method in OsgGA.Gui_event_handler. Application must be aware of implications.
val set_by_matrix : t -> Osg.Matrix.t -> unit
set the position of the matrix manipulator using a 4x4 Matrix.
val set_by_inverse_matrix : t -> Osg.Matrix.t -> unit
set the position of the matrix manipulator using a 4x4 Matrix.
val get_matrix : t -> Osg.Matrix.t
get the position of the manipulator as 4x4 Matrix.
val get_inverse_matrix : t -> Osg.Matrix.t
get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix.