Esempio n. 1
0
            /// <summary>
            /// Instantiates a concrete class of camera
            /// </summary>
            /// <param name="cameraConfig"></param>
            /// <returns></returns>
            public virtual BaseCamera CreateCamera(CameraConfig cameraConfig)
            {
                CameraBuilder 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 builder for a concrete camera class
 /// </summary>
 /// <param name="key">The class name of the concrete camera class builder</param>
 /// <param name="builder">the concrete camera builder class</param>
 public void RegisterBuilder(string key, CameraBuilder builder)
 {
     this.Builders.Add(key, builder);
 }
Esempio n. 3
0
 public virtual void register_builder(string key, CameraBuilder builder)
 {
     throw new NotImplementedException("Not yet implemented.");
 }