using System.Collections.Generic; using TBF.BenchControl.Generic; namespace TBF.BenchControl.Cameras.CameraRoi { public class CameraRoiFactory : IComponentFactory { public string ClassName { get { return "CameraROI"; } } /// Max. number of components of this class in the system public int MaxCount { get { return 20; } } public IComponentCfg DefaultConfig(IList components) { return new CameraRoiCfg(this); } public IComponentCfgCtrl CreateCfgCtrl() { return new CameraRoiCfgCtrl(); } public IComponent ComponentFromCmpntCfg(IComponentCfg config, IList components) { return new CameraRoi((CameraRoiCfg)config, components); } public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component) { return ComponentCfgBase.CreateFromDbEntity(typeof(CameraRoiCfg), component, this); } public void ResetStaticProperties() { CameraRoi.ResetStaticProperties(); } } }