Translates and reports windows messages for the touch screen device. More...
#include <Inventor/touch/devices/SoWinTouchScreen.h>
Public Member Functions | |
SoWinTouchScreen (SoWidget myWindow) | |
Constructor. | |
virtual | ~SoWinTouchScreen () |
Destructor. | |
virtual void | enable (SoWidget w, XtEventHandler f, XtPointer data, Window win=NULL) |
Enables the device for the passed window handle. | |
virtual void | disable (SoWidget w, XtEventHandler f, XtPointer data) |
Disables the device. | |
virtual const SoEvent * | translateEvent (XAnyEvent *xe) |
Attempts to convert the passed message into an SoEvent. | |
SoTouchManager * | getTouchManager () const |
Returns the SoTouchManager. | |
Public Member Functions inherited from SoWinDevice | |
void | setWindowSize (const SbVec2s &s) |
Sets the size of the window this device is registered for. | |
const SbVec2s & | getWindowSize () const |
Gets the size of the window this device is registered for. | |
Translates and reports windows messages for the touch screen device.
This class represents a touch screen input device for the Microsoft Windows OS. It translates and manages messages generated by the touch screen. When the touch screen device is registered in an SoWinRenderArea, the device is able to generate Open Inventor touch events (see SoTouchEvent) and gesture events (see SoGestureEvent) that can be handled (for example) using an SoEventCallback node.
It analyses each touch event and updates events in the SoTouchEvent table of SoTouchManager.
Note: Unlike SoWinMouse and SoWinKeyboard, this device must be explicitly registered with the render area / viewer by the application.
SoWinDevice, SoTouchManager, SoTouchEvent, SoGestureEvent
Definition at line 81 of file SoWinTouchScreen.h.
SoWinTouchScreen::SoWinTouchScreen | ( | SoWidget | myWindow | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Disables the device.
Implements SoWinDevice.
|
virtual |
Enables the device for the passed window handle.
When enabled, the callback function f will be invoked when messages occur in the window. data is the clientData which will be passed.
Implements SoWinDevice.
SoTouchManager * SoWinTouchScreen::getTouchManager | ( | ) | const |
Returns the SoTouchManager.
This object contains the events table, recognizers list and methods to use them.
|
virtual |
Attempts to convert the passed message into an SoEvent.
Returns a pointer to an internal SoEvent object owned by the class. Do not delete this object. If the message was not generated by this device, then NULL is returned.
Implements SoWinDevice.