ToString( ) methods of all components are equal, start with ClassName.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user