class OSGUTIL_EXPORT osgUtil::CameraTrackballManipulator


Public Classes

[more]enum MovementType

Public Methods

[more] CameraTrackballManipulator()
[more] ~CameraTrackballManipulator()
[more]void setCamera(osg::Camera *)
[more]osg::Camera* getCamera() const
[more]void initialise(int x, int y)
initialise(int x,int y) will typically be called on a mouse down prior to a number of drag events.
[more]bool update(MovementType movementType, int x, int y)
update(MovementType,int,int) will typically be called on receipt of drag events, with a view to letting the view change the view.
[more]void update()
This will replicate any previous update, and is useful for animation
[more]MovementType getLastMovementType() const
Returns last movementType, and is useful for updating on mouse up


Documentation

o CameraTrackballManipulator()

o ~CameraTrackballManipulator()

ovoid setCamera(osg::Camera *)

oosg::Camera* getCamera() const

ovoid initialise(int x, int y)
initialise(int x,int y) will typically be called on a mouse down prior to a number of drag events. The parameters tell the viewer where the mouse is at the start of the drag.

oenum MovementType

o NONE

o ORBIT

o ZOOM

o PAN

obool update(MovementType movementType, int x, int y)
update(MovementType,int,int) will typically be called on receipt of drag events, with a view to letting the view change the view. The return value specifies whether any change to the view was necessary as a result from the mouse event. Returns true if any change in viewpoint is made.

ovoid update()
This will replicate any previous update, and is useful for animation

oMovementType getLastMovementType() const
Returns last movementType, and is useful for updating on mouse up


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.