Open Inventor Release 2024.1.1
 
Loading...
Searching...
No Matches
SoWinTouchScreen Class Reference

Translates and reports windows messages for the touch screen device. More...

#include <Inventor/touch/devices/SoWinTouchScreen.h>

+ Inheritance diagram for SoWinTouchScreen:

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 SoEventtranslateEvent (XAnyEvent *xe)
 Attempts to convert the passed message into an SoEvent.
 
SoTouchManagergetTouchManager () 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 SbVec2sgetWindowSize () const
 Gets the size of the window this device is registered for.
 

Detailed Description

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.

EXAMPLE

SEE ALSO

SoWinDevice, SoTouchManager, SoTouchEvent, SoGestureEvent

Definition at line 81 of file SoWinTouchScreen.h.

Constructor & Destructor Documentation

◆ SoWinTouchScreen()

SoWinTouchScreen::SoWinTouchScreen ( SoWidget  myWindow)

Constructor.

◆ ~SoWinTouchScreen()

virtual SoWinTouchScreen::~SoWinTouchScreen ( )
virtual

Destructor.

Member Function Documentation

◆ disable()

virtual void SoWinTouchScreen::disable ( SoWidget  w,
XtEventHandler  f,
XtPointer  data 
)
virtual

Disables the device.

Implements SoWinDevice.

◆ enable()

virtual void SoWinTouchScreen::enable ( SoWidget  w,
XtEventHandler  f,
XtPointer  data,
Window  win = NULL 
)
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.

◆ getTouchManager()

SoTouchManager * SoWinTouchScreen::getTouchManager ( ) const

Returns the SoTouchManager.

This object contains the events table, recognizers list and methods to use them.

◆ translateEvent()

virtual const SoEvent * SoWinTouchScreen::translateEvent ( XAnyEvent *  xe)
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.


The documentation for this class was generated from the following file: