Esempio n. 1
0
            /// <summary>
            /// Creates a Camera Manager using the <c>Helpers.CameraConfig</c> supplied.
            /// </summary>
            /// <param name="cameraConfig">The list of camera configuration details to build and manage the camera with.</param>
            /// <returns></returns>
            public virtual BaseCameraManager CreateCameraManager(Helpers.CameraConfig cameraConfig)
            {
                CameraManagerBuilder builder = this.Builders[cameraConfig.CameraClass];

                if (builder == null)
                {
                    throw new System.ArgumentNullException(cameraConfig.CameraClass);
                }
                return(builder.Build(cameraConfig));
            }
Esempio n. 2
0
 /// <summary>
 /// Registers a Camera Manager Builder for use.
 /// </summary>
 /// <param name="key">The unique identifier of the Manager Builder. This is the Class Name of the Factory.</param>
 /// <param name="builder">The Builder class itself.</param>
 public void RegisterBuilder(string key, CameraManagerBuilder builder)
 {
     this.Builders.Add(key, builder);
 }
Esempio n. 3
0
 /// <summary>
 /// Registers a Camera Manager Builder for use.
 /// </summary>
 /// <param name="key">The unique identifier of the Manager Builder. This is the Class Name of the Factory.</param>
 /// <param name="builder">The Builder class itself.</param>
 public virtual void RegisterBuilder(string key, CameraManagerBuilder builder)
 {
     throw new NotImplementedException("Not yet implemented.");
 }