示例#1
0
 /// <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);
 }
示例#2
0
 /// <summary>
 /// The set view distance.
 /// </summary>
 /// <param name="camera">
 /// The camera.
 /// </param>
 public void SetInterestAreaViewDistance(InterestArea camera)
 {
     this.SetInterestAreaViewDistance(camera.ViewDistanceEnter, camera.ViewDistanceExit);
 }
示例#3
0
 /// <summary>
 ///   The add camera.
 /// </summary>
 /// <param name = "camera">
 ///   The camera.
 /// </param>
 public void AddCamera(InterestArea camera)
 {
     this.cameras.Add(camera.Id, camera);
 }