SoSpaceballButtonEvent Class Reference
[Events]

VSG extension Spaceball button press and release events. More...

#include <Inventor/events/SoSpaceballButtonEvent.h>

Inheritance diagram for SoSpaceballButtonEvent:
SoButtonEvent SoEvent SoTypedObject

List of all members.

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

virtual SoType getTypeId () const
 SoSpaceballButtonEvent ()
void setButton (SoSpaceballButtonEvent::Button b)
SoSpaceballButtonEvent::Button getButton () const

Static Public Member Functions

static SoType getClassTypeId ()
static SbBool isButtonPressEvent (const SoEvent *e, SoSpaceballButtonEvent::Button whichButton)
static SbBool isButtonReleaseEvent (const SoEvent *e, SoSpaceballButtonEvent::Button whichButton)

Detailed Description

VSG extension Spaceball button press and release events.

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

See related examples:

SpaceBall, QtSpaceMouse


Member Enumeration Documentation

Button.

Enumerator:
ANY 
BUTTON1 

Spaceball button 1.

BUTTON2 

Spaceball button 2.

BUTTON3 

Spaceball button 3.

BUTTON4 

Spaceball button 4.

BUTTON5 

Spaceball button 5.

BUTTON6 

Spaceball button 6.

BUTTON7 

Spaceball button 7.

BUTTON8 

Spaceball button 8.

PICK 

Spaceball pick button.


Constructor & Destructor Documentation

SoSpaceballButtonEvent::SoSpaceballButtonEvent (  ) 

Constructor.


Member Function Documentation

SoSpaceballButtonEvent::Button SoSpaceballButtonEvent::getButton (  )  const [inline]

Gets which spaceball button generated the event.

static SoType SoSpaceballButtonEvent::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoButtonEvent.

virtual SoType SoSpaceballButtonEvent::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoButtonEvent.

static SbBool SoSpaceballButtonEvent::isButtonPressEvent ( const SoEvent e,
SoSpaceballButtonEvent::Button  whichButton 
) [static]

Returns whether the passed event is a spaceball button press event of the passed button.

When SoSpaceballButtonEvent::ANY is passed, this returns TRUE if the event represents a button press of any spaceball button.

static SbBool SoSpaceballButtonEvent::isButtonReleaseEvent ( const SoEvent e,
SoSpaceballButtonEvent::Button  whichButton 
) [static]

Returns whether the passed event is a spaceball button release event of the passed button.

When SoSpaceballButtonEvent::ANY is passed, this returns TRUE if the event represents a button release of any spaceball button.

void SoSpaceballButtonEvent::setButton ( SoSpaceballButtonEvent::Button  b  )  [inline]

Sets which spaceball button generated the event.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/