Table of Contents

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 : EventArgs

Inheritance

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

pan float

The pan speed.

tilt float

The tilt speed.

zoom float

The zoom speed.

isStop bool

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

bool

Pan

Gets the pan speed in [-1, 1]; positive is right.

public float Pan { get; }

Property Value

float

Tilt

Gets the tilt speed in [-1, 1]; positive is up.

public float Tilt { get; }

Property Value

float

Zoom

Gets the zoom speed in [-1, 1]; positive is in.

public float Zoom { get; }

Property Value

float