Class PTZMoveCommandEventArgs
- Namespace
- VisioForge.Core.AI.PTZ
- Assembly
- VisioForge.Core.AI.dll
Describes a single PTZ command decided by VisioForge.Core.AI.PTZ.PTZAutoTrackingController and dispatched to the transport. Raised via VisioForge.Core.AI.PTZ.PTZAutoTrackingController.OnMoveCommand for diagnostics and testing.
public sealed class PTZMoveCommandEventArgs : EventArgsInheritance
Inherited Members
Remarks
The event is raised synchronously on the thread that supplies detections to the controller, at the
moment the command is enqueued for the camera. When VisioForge.Core.AI.PTZ.PTZMoveCommandEventArgs.IsStop is true the pan,
tilt, and zoom speeds are all zero.
Constructors
PTZMoveCommandEventArgs(float, float, float, bool)
Initializes a new instance of the VisioForge.Core.AI.PTZ.PTZMoveCommandEventArgs class.
public PTZMoveCommandEventArgs(float pan, float tilt, float zoom, bool isStop)Parameters
panfloat-
The pan speed.
tiltfloat-
The tilt speed.
zoomfloat-
The zoom speed.
isStopbool-
Whether this is a stop command.
Properties
IsStop
Gets a value indicating whether this command is a stop (all axes zero).
public bool IsStop { get; }Property Value
Pan
Gets the pan speed in [-1, 1]; positive is right.
public float Pan { get; }Property Value
Tilt
Gets the tilt speed in [-1, 1]; positive is up.
public float Tilt { get; }Property Value
Zoom
Gets the zoom speed in [-1, 1]; positive is in.
public float Zoom { get; }