IComponentCfg and IComponentFactory interfaces and all derived classes modified.
This commit is contained in:
@@ -43,10 +43,10 @@ namespace TBF.BenchControl.Cameras.CameraRoi
|
||||
{
|
||||
}
|
||||
|
||||
public CameraRoi(CameraRoiCfg cfg, IList<Generic.IComponent> components)
|
||||
public CameraRoi(Generic.IComponentCfg cfg, IList<Generic.IComponent> components)
|
||||
: base(cfg)
|
||||
{
|
||||
cameraRoiCfg = cfg;
|
||||
cameraRoiCfg = cfg as CameraRoiCfg;
|
||||
ltrsPerPulse = (PulsesPerLtr <= float.Epsilon) ? 0 : (1 / PulsesPerLtr);
|
||||
|
||||
if (cfg.DebugLevel != DebugMode.Off)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
///
|
||||
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
||||
/// Copyright (c) 2013-2016 Sensus Metering Systems
|
||||
///
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -13,7 +13,6 @@ namespace TBF.BenchControl.Cameras.CameraRoi
|
||||
{
|
||||
public class CameraRoiCfg : ComponentCfgBase, IChildComponentCfg
|
||||
{
|
||||
public IComponent GetComponent(IList<IComponent> components) { return new CameraRoi(this, components); }
|
||||
public IComponentCfgCtrl GetControl() { return new CameraRoiCfgCtrl(); }
|
||||
|
||||
///
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
///
|
||||
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
||||
/// Copyright (c) 2013-2016 Sensus Metering Systems
|
||||
///
|
||||
using System.Collections.Generic;
|
||||
using TBF.BenchControl.Generic;
|
||||
|
||||
namespace TBF.BenchControl.Cameras.CameraRoi
|
||||
@@ -13,6 +14,8 @@ namespace TBF.BenchControl.Cameras.CameraRoi
|
||||
|
||||
public IComponent DummyComponent() { return new CameraRoi(); }
|
||||
|
||||
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new CameraRoi(cfg, components); }
|
||||
|
||||
public IComponentCfg DefaultConfig() { return new CameraRoiCfg(this); }
|
||||
|
||||
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
||||
|
||||
Reference in New Issue
Block a user