Enum Class PTZControlEnum
java.lang.Object
java.lang.Enum<PTZControlEnum>
io.github.lunasaw.gb28181.common.entity.control.instruction.enums.PTZControlEnum
- All Implemented Interfaces:
Serializable
,Comparable<PTZControlEnum>
,java.lang.constant.Constable
PTZ控制指令枚举
根据 A.3.2 PTZ指令 规范实现
字节4位定义: Bit7-Bit6: 固定为00 Bit5-Bit4: 镜头变倍控制 (Zoom) Bit3-Bit2: 云台垂直方向控制 (Tilt) Bit1-Bit0: 云台水平方向控制 (Pan)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
水平方向枚举static enum
垂直方向枚举static enum
变倍方向枚举Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic PTZControlEnum
getByCode
(byte code) 根据指令码查找枚举static PTZControlEnum
根据名称查找枚举获取水平方向控制类型获取垂直方向控制类型获取变倍控制类型boolean
检查是否包含水平方向控制boolean
检查是否包含垂直方向控制boolean
检查是否包含变倍控制static PTZControlEnum
Returns the enum constant of this class with the specified name.static PTZControlEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STOP
-
PAN_LEFT
-
PAN_RIGHT
-
TILT_UP
-
TILT_DOWN
-
PAN_LEFT_TILT_UP
-
PAN_RIGHT_TILT_UP
-
PAN_LEFT_TILT_DOWN
-
PAN_RIGHT_TILT_DOWN
-
ZOOM_IN
-
ZOOM_OUT
-
PAN_RIGHT_TILT_UP_ZOOM_OUT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getByCode
根据指令码查找枚举 -
getByName
根据名称查找枚举 -
hasPanControl
public boolean hasPanControl()检查是否包含水平方向控制 -
hasTiltControl
public boolean hasTiltControl()检查是否包含垂直方向控制 -
hasZoomControl
public boolean hasZoomControl()检查是否包含变倍控制 -
getPanDirection
获取水平方向控制类型 -
getTiltDirection
获取垂直方向控制类型 -
getZoomDirection
获取变倍控制类型
-