程序包 org.openni

类 SensorInfo


  • public class SensorInfo
    extends java.lang.Object

    The SensorInfo class encapsulates all info related to a specific sensor in a specific device.
    A Device object holds a SensorInfo object for each sensor it contains.
    A VideoStream object holds one SensorInfo object, describing the sensor used to produce that stream.

    A given SensorInfo object will contain the type of the sensor (Depth, IR or Color), and a list of all video modes that the sensor can support. Each available video mode will have a single VideoMode object that can be queried to get the details of that mode.

    SensorInfo objects should be the only source of VideoMode objects for the vast majority of application programs.

    Application programs will never directly instantiate objects of type SensorInfo. In fact, no public constructors are provided. SensorInfo objects should be obtained either from a Device or VideoStream, and in turn be used to provide available video modes for that sensor.

    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      SensorType getSensorType()
      Provides the sensor type of the sensor this object is associated with.
      java.util.List<VideoMode> getSupportedVideoModes()
      Provides a list of video modes that this sensor can support.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • getSensorType

        public SensorType getSensorType()
        Provides the sensor type of the sensor this object is associated with.
        返回:
        Type of the sensor.
      • getSupportedVideoModes

        public final java.util.List<VideoMode> getSupportedVideoModes()
        Provides a list of video modes that this sensor can support. This function is the recommended method to be used by applications to obtain VideoMode objects.
        返回:
        Reference to an array of VideoMode objects, one for each supported video mode.