Package uk.ac.qmul.eecs.depic.jhapticgui
Class HapticDeviceWinFactory
- java.lang.Object
-
- uk.ac.qmul.eecs.depic.jhapticgui.HapticDeviceWinFactory
-
- All Implemented Interfaces:
- HapticDeviceFactory
public class HapticDeviceWinFactory extends java.lang.Object implements HapticDeviceFactory
AHapticDevice
factory for Windows platform.
-
-
Constructor Summary
Constructors Constructor and Description HapticDeviceWinFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description HapticDevice
getHapticDevice(java.io.InputStream dll, HapticListener hapticListener, java.awt.Dimension windowDimension)
Creates a new instance of aHapticDevice
on a Windows platforms.
-
-
-
Method Detail
-
getHapticDevice
public HapticDevice getHapticDevice(java.io.InputStream dll, HapticListener hapticListener, java.awt.Dimension windowDimension) throws HapticsException
Creates a new instance of aHapticDevice
on a Windows platforms. During the creation process the haptic device is initialized.- Specified by:
getHapticDevice
in interfaceHapticDeviceFactory
- Parameters:
dll
- an input stream to a valid native windows dinamic link library that handles the haptic device. Such library should be compiled using the C++ framework code supplied together with this library.hapticListener
- a haptic listener for the haptic device that is going to be created. this will be returned byHapticDevice.getListener()
windowDimension
- the dimension of the window that displays the haptic scene.- Returns:
- an instance of a running haptic device
- Throws:
HapticsException
- if the haptic device initialization fails
-
-