SoWinTouchScreen Class |
Translates and reports windows messages for the touch screen device.
Namespace: OIV.Inventor.Touch.Devices
The SoWinTouchScreen type exposes the following members.
Name | Description | |
---|---|---|
SoWinTouchScreen | Constructor. |
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
GetTouchManager | Returns the OIV.Inventor.Touch.SoTouchManager. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetWindowSize | Gets the size of the window this device is registered for. | |
SetWindowSize | Sets the size of the window this device is registered for. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
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 OIV.Inventor.Win.SoWinRenderArea, the device is able to generate Open Inventor touch events (see OIV.Inventor.Touch.Events.SoTouchEvent) and gesture events (see OIV.Inventor.Gestures.Events.SoGestureEvent) that can be handled (for example) using an OIV.Inventor.Nodes.SoEventCallback node.
It analyses each touch event and updates events in the OIV.Inventor.Touch.Events.SoTouchEvent table of OIV.Inventor.Touch.SoTouchManager.
Note: Unlike OIV.Inventor.Win.Devices.SoWinMouse and OIV.Inventor.Win.Devices.SoWinKeyboard, this device must be explicitly registered with the render area / viewer by the application.
SoWinExaminerViewer viewer = new SoWinExaminerViewer( this ); SoWinTouchScreen touchScreenDevice = new SoWinTouchScreen( this ); viewer.RegisterDevice( touchScreenDevice );