Open Inventor Reference
|
Spaceball button press and release events. More...
#include <Inventor/events/SoSpaceballButtonEvent.h>
Public Types | |
enum | Button { ANY = 0, BUTTON1 = 1, BUTTON2 = 2, BUTTON3 = 3, BUTTON4 = 4, BUTTON5 = 5, BUTTON6 = 6, BUTTON7 = 7, BUTTON8 = 8, PICK = 9 } |
Public Member Functions | |
SoSpaceballButtonEvent () | |
Constructor. | |
virtual | ~SoSpaceballButtonEvent () |
void | setButton (SoSpaceballButtonEvent::Button b) |
which button generated the event, e.g. SoSpaceballButtonEvent::BUTTON1 | |
SoSpaceballButtonEvent::Button | getButton () const |
Static Public Member Functions | |
static SbBool | isButtonPressEvent (const SoEvent *e, SoSpaceballButtonEvent::Button whichButton) |
convenience routines to see if an SoEvent is a press or release of the passed spaceball button | |
static SbBool | isButtonReleaseEvent (const SoEvent *e, SoSpaceballButtonEvent::Button whichButton) |
static void | initClass () |
Initializes base event class. |
SoSpaceballButtonEvent represents spaceball button press and release events in the Inventor event model.
Definition at line 87 of file SoSpaceballButtonEvent.h.
Definition at line 92 of file SoSpaceballButtonEvent.h.
SoSpaceballButtonEvent::SoSpaceballButtonEvent | ( | ) |
virtual SoSpaceballButtonEvent::~SoSpaceballButtonEvent | ( | ) | [virtual] |
SoSpaceballButtonEvent::Button SoSpaceballButtonEvent::getButton | ( | ) | const [inline] |
Definition at line 112 of file SoSpaceballButtonEvent.h.
static void SoSpaceballButtonEvent::initClass | ( | ) | [static] |
Reimplemented from SoButtonEvent.
static SbBool SoSpaceballButtonEvent::isButtonPressEvent | ( | const SoEvent * | e, |
SoSpaceballButtonEvent::Button | whichButton | ||
) | [static] |
static SbBool SoSpaceballButtonEvent::isButtonReleaseEvent | ( | const SoEvent * | e, |
SoSpaceballButtonEvent::Button | whichButton | ||
) | [static] |
void SoSpaceballButtonEvent::setButton | ( | SoSpaceballButtonEvent::Button | b | ) | [inline] |
Definition at line 110 of file SoSpaceballButtonEvent.h.