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
Modifier and Type | Field and Description |
---|---|
static int |
ANY
Deprecated.
Use
SoSpaceballButtonEvent.Buttons.ANY instead. |
static int |
BUTTON1
Deprecated.
Use
SoSpaceballButtonEvent.Buttons.BUTTON1 instead. |
static int |
BUTTON2
Deprecated.
Use
SoSpaceballButtonEvent.Buttons.BUTTON2 instead. |
static int |
BUTTON3
Deprecated.
Use
SoSpaceballButtonEvent.Buttons.BUTTON3 instead. |
static int |
BUTTON4
Deprecated.
Use
SoSpaceballButtonEvent.Buttons.BUTTON4 instead. |
static int |
BUTTON5
Deprecated.
Use
SoSpaceballButtonEvent.Buttons.BUTTON5 instead. |
static int |
BUTTON6
Deprecated.
Use
SoSpaceballButtonEvent.Buttons.BUTTON6 instead. |
static int |
BUTTON7
Deprecated.
Use
SoSpaceballButtonEvent.Buttons.BUTTON7 instead. |
static int |
BUTTON8
Deprecated.
Use
SoSpaceballButtonEvent.Buttons.BUTTON8 instead. |
static int |
PICK
Deprecated.
Use
SoSpaceballButtonEvent.Buttons.PICK instead. |
DBCLK, DOWN, UNKNOWN, UP
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, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int ANY
SoSpaceballButtonEvent.Buttons.ANY
instead.@Deprecated public static final int BUTTON1
SoSpaceballButtonEvent.Buttons.BUTTON1
instead.@Deprecated public static final int BUTTON2
SoSpaceballButtonEvent.Buttons.BUTTON2
instead.@Deprecated public static final int BUTTON3
SoSpaceballButtonEvent.Buttons.BUTTON3
instead.@Deprecated public static final int BUTTON4
SoSpaceballButtonEvent.Buttons.BUTTON4
instead.@Deprecated public static final int BUTTON5
SoSpaceballButtonEvent.Buttons.BUTTON5
instead.@Deprecated public static final int BUTTON6
SoSpaceballButtonEvent.Buttons.BUTTON6
instead.@Deprecated public static final int BUTTON7
SoSpaceballButtonEvent.Buttons.BUTTON7
instead.@Deprecated public static final int BUTTON8
SoSpaceballButtonEvent.Buttons.BUTTON8
instead.@Deprecated public static final int PICK
SoSpaceballButtonEvent.Buttons.PICK
instead.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.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 SoSpaceballButtonEvent.Buttons getButton()
public void setButton(SoSpaceballButtonEvent.Buttons b)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com