>  Docs Center  >  IDL Reference  >  Object Graphics - Misc.  >  TrackBall::Reset

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:

  • 0 = Rotate only around the X axis.
  • 1 = Rotate only around the Y axis.s
  • 2 = Rotate only around the Z axis (this is the default).

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:

  • 1 = Left mouse button (the default)
  • 2 = Middle mouse button
  • 4 = Right mouse button

Version History


5.0

Introduced



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us