![]() |
http://www.sim.no http://www.coin3d.org |
#include <Inventor/Qt/devices/SoQtDevice.h>
Inheritance diagram for SoQtDevice:
The SoQt device classes provide glue functionality for translating native GUI events from the underlying toolkit to Inventor scenegraph SoEvent events.
The device classes are mainly of interest to application programmers when writing extensions for new types of devices, and seldom in other contexts -- so they can most often be ignored.
Public Member Functions | |
virtual | ~SoQtDevice () |
virtual void | enable (QWidget *w, SoQtEventHandler *handler, void *closure)=0 |
virtual void | disable (QWidget *w, SoQtEventHandler *handler, void *closure)=0 |
virtual const SoEvent * | translateEvent (QEvent *event)=0 |
void | setWindowSize (const SbVec2s size) |
SbVec2s | getWindowSize (void) const |
Static Public Member Functions | |
static void | initClasses (void) |
Protected Member Functions | |
SoQtDevice (void) | |
void | setEventPosition (SoEvent *event, int x, int y) const |
void | addEventHandler (QWidget *, SoQtEventHandler *, void *) |
void | removeEventHandler (QWidget *, SoQtEventHandler *, void *) |
void | invokeHandlers (QEvent *event) |
Static Protected Member Functions | |
static SbVec2s | getLastEventPosition (void) |
Friends | |
class | SoQtDeviceP |
|
Public virtual destructor. |
|
Constructor. Protected to only enable invocation from derived device classes. |
|
This method will enable the device for the widget. handler is invoked with the closure argument when an event occur in widget. Implemented in SoQtMouse, SoQtKeyboard, and SoQtSpaceball. |
|
This method will disable the handler for the device. Implemented in SoQtMouse, SoQtKeyboard, and SoQtSpaceball. |
|
This method translates from native events to Open Inventor SoEvent events. Implemented in SoQtMouse, SoQtKeyboard, and SoQtSpaceball. |
|
This method sets the cached size of the window the device is "attached" to. |
|
This method returns the cached window size. |
|
This function initializes the type system for all the SoQt device classes. It is called indirectly when calling SoQt::init(), so the application programmer doesn't have to bother with it. |
|
This method fills in the position information of event, translating the coordinates into the correct coordinate system. |
|
Returns last event position that was set with SoQtDevice::setEventPosition(). |
|
Stores an event handler for the widget, which can later be invoked with SoQtDevice::invokeHandlers(). Used by extension device types. |
|
Remove a handler registered with SoQtDevice::addEventHandler(). |
|
Invoke all handlers registered with SoQtDevice::addEventHandler(). |
Copyright © 1998-2005 by Systems in Motion AS. All rights reserved.
Generated on Mon Mar 27 00:38:51 2006 for SoQt by Doxygen. 1.4.6