程序包 org.openni
类 DeviceInfo
- java.lang.Object
-
- org.openni.DeviceInfo
-
public class DeviceInfo extends java.lang.Object
The DeviceInfo class encapsulates info related to a specific device.
Applications will generally obtain objects of this type via calls to
OpenNI.enumerateDevices()
orDevice.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.
-
-
构造器概要
构造器 构造器 说明 DeviceInfo(java.lang.String uri, java.lang.String vendor, java.lang.String name, int usbVendorId, int usbProductId)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.String
getName()
Getter function for the device name.java.lang.String
getUri()
Getter function for the device URI.int
getUsbProductId()
Getter function for the USB PID device code.int
getUsbVendorId()
Getter function for the USB VID device code.java.lang.String
getVendor()
Getter function for the device vendor name.
-
-
-
方法详细资料
-
getUri
public final java.lang.String getUri()
Getter function for the device URI. URI can be used byDevice.open(String)
to open a specific device.- 返回:
- The URI string format is determined by the driver.
-
getVendor
public final java.lang.String getVendor()
Getter function for the device vendor name.- 返回:
- A the vendor name for this device.
-
getName
public final java.lang.String getName()
Getter function for the device name.- 返回:
- The device name for this device.
-
getUsbVendorId
public int getUsbVendorId()
Getter function for the USB VID device code.- 返回:
- The USB VID code for this device.
-
getUsbProductId
public int getUsbProductId()
Getter function for the USB PID device code.- 返回:
- The USB PID code for this device.
-
-