예제 #1
0
파일: Camera.cs 프로젝트: bkgood/misc-code
 /// <summary>
 /// Set an object to be monitored.
 /// </summary>
 /// <param name="monitorable">bject to be monitored</param>
 /// <param name="isCentered">True if this is to be the centered object</param>
 public void Monitor(ICameraMonitorable monitorable, bool isCentered)
 {
     if (isCentered)
     {
         centered    = monitorable;
         newCentered = true;
     }
     else
     {
         boundeds.Add(monitorable);
     }
 }
예제 #2
0
파일: Camera.cs 프로젝트: bkgood/misc-code
 /// <summary>
 /// Remove object from those being monitored.
 /// </summary>
 /// <param name="monitorable">Object to be removed</param>
 public void UnMonitor(ICameraMonitorable monitorable)
 {
     while (boundeds.Contains(monitorable))
     {
         boundeds.Remove(monitorable);
     }
     if (centered == monitorable)
     {
         newCentered = false;
         centered    = null;
     }
 }
예제 #3
0
파일: Camera.cs 프로젝트: bkgood/misc-code
 /// <summary>
 /// Set a bounded object to be monitored.
 /// </summary>
 /// <param name="monitorable">Object to be monitored</param>
 public void Monitor(ICameraMonitorable monitorable)
 {
     Monitor(monitorable, false);
 }
예제 #4
0
파일: Camera.cs 프로젝트: bkgood/misc-code
 /// <summary>
 /// Remove object from those being monitored.
 /// </summary>
 /// <param name="monitorable">Object to be removed</param>
 public void UnMonitor(ICameraMonitorable monitorable)
 {
     while (boundeds.Contains(monitorable)) {
         boundeds.Remove(monitorable);
     }
     if (centered == monitorable) {
         newCentered = false;
         centered = null;
     }
 }
예제 #5
0
파일: Camera.cs 프로젝트: bkgood/misc-code
 /// <summary>
 /// Set an object to be monitored.
 /// </summary>
 /// <param name="monitorable">bject to be monitored</param>
 /// <param name="isCentered">True if this is to be the centered object</param>
 public void Monitor(ICameraMonitorable monitorable, bool isCentered)
 {
     if (isCentered) {
         centered = monitorable;
         newCentered = true;
     } else {
         boundeds.Add(monitorable);
     }
 }
예제 #6
0
파일: Camera.cs 프로젝트: bkgood/misc-code
 /// <summary>
 /// Set a bounded object to be monitored.
 /// </summary>
 /// <param name="monitorable">Object to be monitored</param>
 public void Monitor(ICameraMonitorable monitorable)
 {
     Monitor(monitorable, false);
 }