![]() |
http://www.sim.no http://www.coin3d.org |
#include <Inventor/Qt/devices/SoQtSpaceball.h>
Inheritance diagram for SoQtSpaceball:
The SoQtSpaceball class is the glue between native spaceball handling and how those events translates to generic events for the Inventor API scenegraph.
Public Types | |
enum | Mask { MOTION_EVENT = 0x01, MOTION = MOTION_EVENT, PRESS_EVENT = 0x02, PRESS = PRESS_EVENT, RELEASE_EVENT = 0x04, RELEASE = RELEASE_EVENT, ALL_EVENTS = MOTION_EVENT | PRESS_EVENT | RELEASE_EVENT, ALL = ALL_EVENTS } |
enum | DeviceType { SPACE_BALL = 0x01, MAGELLAN_SPACE_MOUSE = 0x02 } |
Public Member Functions | |
SoQtSpaceball (int events=ALL_EVENTS) | |
virtual | ~SoQtSpaceball () |
virtual void | enable (QWidget *widget, SoQtEventHandler *handler, void *closure) |
virtual void | disable (QWidget *widget, SoQtEventHandler *handler, void *closure) |
virtual const SoEvent * | translateEvent (QEvent *event) |
void | setRotationScaleFactor (float f) |
float | getRotationScaleFactor (void) const |
void | setTranslationScaleFactor (float f) |
float | getTranslationScaleFactor (void) const |
void | setFocusToWindow (SbBool flag) |
SbBool | isFocusToWindow (void) const |
Static Public Member Functions | |
static SbBool | exists (void) |
|
Enumeration of spaceball input device event types. |
|
Enumeration of spaceball input device types. |
|
Public constructor. The mask argument specifies which events we are interested in. |
|
Destructor. |
|
This method will enable the device for the widget. handler is invoked with the closure argument when an event occur in widget. Implements SoQtDevice. |
|
This method will disable the handler for the device. Implements SoQtDevice. |
|
This method translates from native events to Open Inventor SoEvent events. Implements SoQtDevice. |
|
This method sets the scale factor for the spaceball rotation vectors. |
|
This method returns the scale factor for the spaceball rotation vectors. |
|
This method sets the scale factor for the spaceball translation vectors. |
|
This method returns the scale factor for the spaceball translation vectors. |
|
Returns
Note that a return value of |
|
Set to |
|
Returns whether or not spaceball events are caught even when the component does not have focus. |
Copyright © 1998-2005 by Systems in Motion AS. All rights reserved.
Generated on Mon Mar 27 00:38:52 2006 for SoQt by Doxygen. 1.4.6