public class SoSpaceballButtonEvent extends SoButtonEvent
SoSpaceballButtonEvent
represents spaceball button press and release events in the Open Inventor event model.
Some convenience macros for determining if an event matches
See also:
SoEvent
, SoButtonEvent
, SoKeyboardEvent
, SoLocation2Event
, SoMotion3Event
, SoMouseButtonEvent
, SoHandleEventAction
, SoEventCallback
, SoSelection
, SoInteraction, SoWinDevice
Modifier and Type | Class and Description |
---|---|
static class |
SoSpaceballButtonEvent.Buttons
Button.
|
SoButtonEvent.States
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoSpaceballButtonEvent()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SoSpaceballButtonEvent.Buttons |
getButton()
Gets which spaceball button generated the event.
|
static boolean |
isButtonPressEvent(SoEvent e,
SoSpaceballButtonEvent.Buttons whichButton)
Returns whether the passed event is a spaceball button press event of the passed button.
|
static boolean |
isButtonReleaseEvent(SoEvent e,
SoSpaceballButtonEvent.Buttons whichButton)
Returns whether the passed event is a spaceball button release event of the passed button.
|
void |
setButton(SoSpaceballButtonEvent.Buttons b)
Sets which spaceball button generated the event.
|
getState, setState
getNormalizedPosition, getPosition, getPosition, getPositionFloat, getPositionFloat, getTime, setAltDown, setButton1Down, setCtrlDown, setPosition, setPosition, setShiftDown, setTime, wasAltDown, wasButton1Down, wasCtrlDown, wasShiftDown
dispose, getNativeResourceHandle
public static boolean isButtonPressEvent(SoEvent e, SoSpaceballButtonEvent.Buttons whichButton)
SoSpaceballButtonEvent.ANY
is passed, this returns true if the event represents a button press of any spaceball button.public void setButton(SoSpaceballButtonEvent.Buttons b)
public SoSpaceballButtonEvent.Buttons getButton()
public static boolean isButtonReleaseEvent(SoEvent e, SoSpaceballButtonEvent.Buttons whichButton)
SoSpaceballButtonEvent.ANY
is passed, this returns true if the event represents a button release of any spaceball button.Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com