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
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
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.