Routines (alphabetical) > Object Classes > Miscellaneous Object Classes > TrackBall Properties

# TrackBall Properties

TrackBall objects have the following properties in addition to properties inherited from any superclasses. Properties with the word “Yes” in the “Init” column of the property table can be set via TrackBall::Init.

Note: For a discussion of the property description tables shown below, see About Object Property Descriptions.

Objects of this class have the following properties.

- AXIS
- CONSTRAIN
- MOUSE

### AXIS

An integer value that indicates 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.
- 2 = Rotate only around the Z axis (this is the default).

Property Type | Integer
Name String | not displayed
Get: No | Set: No | Init: Yes | Registered: No

### CONSTRAIN

A boolean value that indicates whether the trackball transformations are to be constrained about the axis specified by the AXIS keyword. The default is not to constrain the transformations.

Property Type | Boolean
Name String | not displayed
Get: No | Set: No | Init: Yes | Registered: No

### MOUSE

An integer value that indicates 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

Property Type | Integer
Name String | not displayed
Get: No | Set: No | Init: Yes | Registered: No