Package org.openni
Class DeviceInfo
java.lang.Object
org.openni.DeviceInfo
The DeviceInfo class encapsulates info related to a specific device.
Applications will generally obtain objects of this type via calls to
OpenNI.enumerateDevices()
or Device.getDeviceInfo()
, and
then use the various accessor functions to obtain specific information on that device.
There should be no reason for application code to instantiate this object directly.
-
Constructor Summary
ConstructorsConstructorDescriptionDeviceInfo
(String uri, String vendor, String name, int usbVendorId, int usbProductId) -
Method Summary
Modifier and TypeMethodDescriptionfinal String
getName()
Getter function for the device name.final String
getUri()
Getter function for the device URI.int
Getter function for the USB PID device code.int
Getter function for the USB VID device code.final String
Getter function for the device vendor name.
-
Constructor Details
-
DeviceInfo
-
-
Method Details
-
getUri
Getter function for the device URI. URI can be used byDevice.open(String)
to open a specific device.- Returns:
- The URI string format is determined by the driver.
-
getVendor
Getter function for the device vendor name.- Returns:
- A the vendor name for this device.
-
getName
Getter function for the device name.- Returns:
- The device name for this device.
-
getUsbVendorId
public int getUsbVendorId()Getter function for the USB VID device code.- Returns:
- The USB VID code for this device.
-
getUsbProductId
public int getUsbProductId()Getter function for the USB PID device code.- Returns:
- The USB PID code for this device.
-