File: SoXtSpaceball.ivm

package info (click to toggle)
inventor 2.1.5-10-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 32,884 kB
  • ctags: 21,728
  • sloc: ansic: 33,861; lisp: 7,361; cpp: 3,874; yacc: 369; sh: 358; perl: 234; awk: 141; makefile: 74; csh: 35; sed: 11
file content (55 lines) | stat: -rw-r--r-- 1,932 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
NAME SoXtSpaceball SoXtSpball  SO_XT_SPBALL_ {
translates and reports events for the spaceball
}

INCLUDE Xt/devices/SoXtSpaceball.h

ENUM Mask {
MOTION "Spaceball translation and rotation events",
PRESS "Spaceball button press events",
RELEASE "Spaceball button release events",
ALL "All spaceball events"
}

DESC {
This class manages events generated by the spaceball, including
spaceball motion (\cSoMotion3Event\.), and spaceball button press 
and release events (\cSoSpaceballButtonEvent\.).
}

METHOD "" SoXtSpaceball(SoXtSpaceball::Mask mask = SoXtSpaceball::ALL) {}
METHOD "CreateD" SoXtSpaceball(Display *d, SoXtSpaceball::Mask mask = SoXtSpaceball::ALL) {}
METHOD "" ~SoXtSpaceball() {
Constructor and destructor. Pass to the constructor an enumerated
value specifying which spaceball events are of interest. Only those
events will be reported to the callback routine registered on
each widget. The first constructor uses the X display which
was set in
\+\mSoXt::init()\..\.
\-\mSoXtInit()\..\.
}

METHOD setRotScaleFactor void setRotationScaleFactor(float f) {}
METHOD getRotScaleFactor float getRotationScaleFactor() const {
Set and get the rotation scale factor.
The scale factor is applied to the rotation value generated
by the spaceball device. The default rotation scale factor is .006.
}

METHOD setXlateScaleFactor void setTranslationScaleFactor(float f) {}
METHOD getXlateScaleFactor float getTranslationScaleFactor() const {
Set and get the translation scale factor.
The scale factor is applied to the translation value generated
by the spaceball device. The default translation scale factor is .006.
}

METHOD "" static SbBool	exists() {}
METHOD existsD static SbBool	exists(Display *d) {
This returns TRUE if the spaceball exists, either
on the X display which was set in
\+\mSoXt::init()\.,\.
\-\mSoXtInit()\.,\.
or on the passed display.
}

ALSO { SoXt, SoXtDevice, SoMotion3Event, SoSpaceballButtonEvent }