25#ifndef _SO_QT_SPACEBALL_
26#define _SO_QT_SPACEBALL_
58 SoQtSpaceball(SoGuiSpaceball::Mask mask = SoGuiSpaceball::ALL) { };
59 SoQtSpaceball(Display *d, SoGuiSpaceball::Mask mask = SoGuiSpaceball::ALL) { };
158 QWidget* parentWidget;
164 struct _MagellanControl_ *magellanHandle;
172 SoGuiSpaceball::DeviceType deviceType;
#define FALSE
Possible value of SbBool.
Base class for all events.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
static SbGlContextHelper::Display getDisplay()
This method is included for portability only.
Translates and reports events for a SpaceBall or SpaceMouse (Magellan) device.
SoQtSpaceball(SoGuiSpaceball::Mask mask=SoGuiSpaceball::ALL)
Constructor.
static SbBool exists()
Returns whether or not the spaceball device exists for use.
SoQtSpaceball(SbGlContextHelper::Display d, SoGuiSpaceball::Mask mask=SoGuiSpaceball::ALL)
Constructor.
float getTranslationScaleFactor() const
Returns the translation scale factor.
static SbBool exists(SbGlContextHelper::Display d)
Returns whether or not the spaceball device exists for use.
virtual void enable(QWidget *w, XtEventHandler f, XtPointer data, void *unused=NULL)
Enables the device for the passed widget.
void setRotationScaleFactor(float f)
The spaceball reports rotations and translations as integers.
SbBool isFocusToWindow() const
Gets the input focus method.
virtual const SoEvent * translateEvent(QEvent *xevent)
Attempts to convert the passed event into an SoEvent.
virtual void disable(QWidget *w, XtEventHandler f, XtPointer data)
Disables the device for the passed widget.
void setFocusToWindow(SbBool flag)
Sets the input focus method used to get events from the space ball.
~SoQtSpaceball()
Destructor.
float getRotationScaleFactor() const
Returns the rotation scale factor.
void setTranslationScaleFactor(float f)
The spaceball reports rotations and translations as integers.