IDL Programming > Objects > Miscellaneous Object Classes > TrackBall::Reset

TrackBall::Reset

Syntax | Arguments | Keywords | Version History

The TrackBall::Reset procedure method resets the state of the TrackBall object.

Syntax

Obj->[TrackBall::]Reset, Center, Radius [, AXIS={0 | 1 | 2}] [, /CONSTRAIN] [, MOUSE={1 | 2 | 4}]

Arguments

Center

A two-element vector, [X, Y], specifying the center coordinates of the trackball. X and Y should be specified in device units.

Radius

The radius of the trackball, specified in device units.

Keywords

AXIS

Set this keyword to an integer value to indicate the axis about which rotations are to be constrained if the CONSTRAIN keyword is set. Valid values include:

CONSTRAIN

Set this keyword to indicate that the trackball transformations are to be constrained about the axis specified by the AXIS keyword. The default is not to constrain the transformations.

MOUSE

Set this keyword to an integer value to indicate which mouse button to honor for trackball events. Valid values include:

Version History

5.0

Introduced