Debian Codegraph @

doc/man/man3/ivm/events/SoEvent.ivm

raw
1 NAME SoEvent SoEv "" { base class for all events }
2
3 INCLUDE events/SoEvent.h
4
5 DESC { \cSoEvent\. is the base class for events in the Inventor
6 event model. An event typically represents a user action, such as
7 a mouse button being pressed or a keyboard key being released.
8 \cSoEvent\. contains general information found in all Inventor
9 events, including the time the event occurred, the position of the
10 locater when the event occurred, and the state of the modifier
11 keys when the event occurred.
12 }
13
14 METHOD "" SoEvent() {}
15 METHOD "" virtual ~SoEvent() { Constructor and destructor. }
16 METHOD "" virtual SoType getTypeId() const {
17 Return the type id for this event instance.
18 }
19 METHOD "" static SoType getClassTypeId() {
20 Return the type id for the \cSoEvent\. class.
21 }
22 METHOD "" SbBool isOfType(SoType type) const {
23 This returns TRUE if the event is an instance of
24 or derived from an event of the passed type.
25 }
26 METHOD "" void setTime(SbTime t) {}
27 METHOD "" SbTime getTime() const {
28 Set and get the time at which the event occurred.
29 }
30 METHOD "setPos" void setPosition(const SbVec2s &p) {}
31 METHOD "getPos" const SbVec2s & getPosition() const {
32 Set the window pixel location of the cursor when the event occurred.
33 The position is relative to the lower left corner of the window
34 in which the event occurred.
35 }
36 METHOD "getPosInVP" const SbVec2s & getPosition(const SbViewportRegion &vpRgn) const {
37 Get the viewport pixel location of the cursor when the event occurred,
38 relative to the specified viewport region.
39 }
40 METHOD "getNormPos" const SbVec2f & getNormalizedPosition(const SbViewportRegion &vpRgn) const {
41 Get the normalized location of the cursor when the event occurred,
42 relative to the specified viewport region. The returned value will
43 lie between 0.0 and 1.0.
44 }
45
46 METHOD "" void setShiftDown(SbBool isDown) {}
47 METHOD "" void setCtrlDown(SbBool isDown) {}
48 METHOD "" void setAltDown(SbBool isDown) {
49 Set whether the modifier keys were down when the event occurred.
50 }
51
52 METHOD "" SbBool wasShiftDown() const {}
53 METHOD "" SbBool wasCtrlDown() const {}
54 METHOD "" SbBool wasAltDown() const {
55 Get whether the modifier keys were down when the event occurred.
56 }
57
58 ALSO {
59 SoButtonEvent, SoKeyboardEvent, SoLocation2Event, SoMotion3Event,
60 SoMouseButtonEvent, SoSpaceballButtonEvent,
61 SoHandleEventAction, SoEventCallback, SoSelection, SoInteraction,
62 SoXtDevice, SoXtRenderArea }
63
64
65