Class HapticDeviceWinFactory

  • java.lang.Object
    • uk.ac.qmul.eecs.depic.jhapticgui.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 a HapticDevice on a Windows platforms.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HapticDeviceWinFactory

        public HapticDeviceWinFactory()
    • Method Detail

      • getHapticDevice

        public HapticDevice getHapticDevice(java.io.InputStream dll,
                                            HapticListener hapticListener,
                                            java.awt.Dimension windowDimension)
                                     throws HapticsException
        Creates a new instance of a HapticDevice on a Windows platforms. During the creation process the haptic device is initialized.
        Specified by:
        getHapticDevice in interface HapticDeviceFactory
        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 by HapticDevice.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