ToString( ) methods of all components are equal, start with ClassName.

This commit is contained in:
Milan Hanajik
2021-04-07 22:18:53 +02:00
parent 3a8f9ea2e0
commit 56294bbffc
110 changed files with 135 additions and 296 deletions
+8 -15
View File
@@ -15,14 +15,8 @@ namespace TBF.Rig.Network.Camera.Roi
/// TODO: Implement support for sharing one camera by multiple ROI-s
private static readonly ILog log = LogManager.GetLogger(typeof(Roi));
public override string ToString()
{
return string.Format("{0}({1})", this.GetType().Namespace.Substring(8), Cfg.ToString(1));
}
public override string ToString() { return string.Format("{0}({1})", ClassName, Cfg.ToString(-1)); }
///
/// Cfg
///
public readonly RoiCfg RoiCfg;
public readonly CLP1611.Camera NetCamera;
@@ -141,6 +135,13 @@ namespace TBF.Rig.Network.Camera.Roi
Clear();
}
public void Clear()
{
pulsesDelta = -cameraPulses;
timeDelta = -cameraTime;
wmRefPulses = 0;
}
#region Configuration Change Handling
public static void OnCfgChange(object sender, CfgChangeArgs args)
@@ -170,14 +171,6 @@ namespace TBF.Rig.Network.Camera.Roi
#endregion Configuration Change Handling
public void Clear()
{
pulsesDelta = -cameraPulses;
timeDelta = -cameraTime;
wmRefPulses = 0;
}
public IOperation RoiDetectionOp()
{
if (NetCamera != null && RoiCfg.DebugLevel != DebugMode.Simulate)