1SoSpaceballButtonEvent(3IV)()                    SoSpaceballButtonEvent(3IV)()
2
3
4

NAME

6       SoSpaceballButtonEvent — spaceball button press and release events
7

INHERITS FROM

9       SoEvent > SoButtonEvent > SoSpaceballButtonEvent
10

SYNOPSIS

12       #include <Inventor/events/SoSpaceballButtonEvent.h>
13
14       #define SO_SPACEBALL_PRESS_EVENT(EVENT,BUTTON)
15           (SoSpaceballButtonEvent::isButtonPressEvent(EVENT,
16                      SoSpaceballButtonEvent::BUTTON))
17       #define SO_SPACEBALL_RELEASE_EVENT(EVENT,BUTTON)
18           (SoSpaceballButtonEvent::isButtonReleaseEvent(EVENT,
19                      SoSpaceballButtonEvent::BUTTON))
20
21     enum Button {
22          SoSpaceballButtonEvent::ANY  Any spaceball button
23          SoSpaceballButtonEvent::BUTTON1
24                                       Spaceball button 1
25          SoSpaceballButtonEvent::BUTTON2
26                                       Spaceball button 2
27          SoSpaceballButtonEvent::BUTTON3
28                                       Spaceball button 3
29          SoSpaceballButtonEvent::BUTTON4
30                                       Spaceball button 4
31          SoSpaceballButtonEvent::BUTTON5
32                                       Spaceball button 5
33          SoSpaceballButtonEvent::BUTTON6
34                                       Spaceball button 6
35          SoSpaceballButtonEvent::BUTTON7
36                                       Spaceball button 7
37          SoSpaceballButtonEvent::BUTTON8
38                                       Spaceball button 8
39          SoSpaceballButtonEvent::PICK Spaceball pick button
40     }
41
42          Methods from class SoSpaceballButtonEvent:
43
44                         SoSpaceballButtonEvent()
45     static SoType       getClassTypeId()
46     void                setButton(SoSpaceballButtonEvent::Button b)
47     SoSpaceballButtonEvent::Button
48                         getButton() const
49     static  SbBool       isButtonPressEvent(const SoEvent *e, SoSpaceballBut‐
50                              tonEvent::Button whichButton)
51     static SbBool       isButtonReleaseEvent(const SoEvent  *e,  SoSpaceball‐
52                              ButtonEvent::Button whichButton)
53
54          Methods from class SoButtonEvent:
55
56     void                  setState(SoButtonEvent::State s)
57     SoButtonEvent::State  getState() const
58
59          Methods from class SoEvent:
60
61     virtual SoType      getTypeId() const
62     SbBool              isOfType(SoType type) const
63     void                setTime(SbTime t)
64     SbTime              getTime() const
65     void                setPosition(const SbVec2s &p)
66     const SbVec2s &     getPosition() const
67     const SbVec2s &     getPosition(const SbViewportRegion &vpRgn) const
68     const  SbVec2f &     getNormalizedPosition(const SbViewportRegion &vpRgn)
69                              const
70     void                setShiftDown(SbBool isDown)
71     void                setCtrlDown(SbBool isDown)
72     void                setAltDown(SbBool isDown)
73     SbBool              wasShiftDown() const
74     SbBool              wasCtrlDown() const
75     SbBool              wasAltDown() const
76
77

DESCRIPTION

79       SoSpaceballButtonEvent represents spaceball button  press  and  release
80       events in the Inventor event model.
81

METHODS

83                         SoSpaceballButtonEvent()
84          Constructor.
85
86     static SoType       getClassTypeId()
87          Return the type id for the SoSpaceballButtonEvent class.
88
89     void                setButton(SoSpaceballButtonEvent::Button b)
90     SoSpaceballButtonEvent::Button
91                         getButton() const
92          Set and get which spaceball button generated the event.
93
94     static  SbBool       isButtonPressEvent(const SoEvent *e, SoSpaceballBut‐
95                              tonEvent::Button whichButton)
96     static SbBool       isButtonReleaseEvent(const SoEvent  *e,  SoSpaceball‐
97                              ButtonEvent::Button whichButton)
98          Returns  whether  the  passed  event  is a spaceball button press or
99          release event of the passed button. When SoSpaceballButtonEvent::ANY
100          is  passed, this returns TRUE if the event represents a button press
101          or release of any spaceball button.
102
103

SEE ALSO

105       SoEvent,  SoButtonEvent,   SoKeyboardEvent,   SoLocation2Event,   SoMo‐
106       tion3Event,  SoMouseButtonEvent,  SoHandleEventAction, SoEventCallback,
107       SoSelection, SoInteraction, SoXtDevice
108
109
110
111
112                                                 SoSpaceballButtonEvent(3IV)()
Impressum