/// <summary> /// The try get camera. /// </summary> /// <param name = "cameraId"> /// The camera id. /// </param> /// <param name = "camera"> /// The camera. /// </param> /// <returns> /// true if camera was found. /// </returns> public bool TryGetCamera(byte cameraId, out InterestArea camera) { return this.cameras.TryGetValue(cameraId, out camera); }
/// <summary> /// The set view distance. /// </summary> /// <param name="camera"> /// The camera. /// </param> public void SetInterestAreaViewDistance(InterestArea camera) { this.SetInterestAreaViewDistance(camera.ViewDistanceEnter, camera.ViewDistanceExit); }
/// <summary> /// The add camera. /// </summary> /// <param name = "camera"> /// The camera. /// </param> public void AddCamera(InterestArea camera) { this.cameras.Add(camera.Id, camera); }