阶段四:删除所有向后兼容代码
删除的旧版兼容代码: 1. PathAnimationManager.cs - AnimationCompleted事件声明 (line 143-144) - AnimationCompleted事件触发 (line 901-902) 2. ModelSplitterManager.cs - GenerateFileName旧版重载方法 (line 1583-1593) 3. LayerManagementViewModel.cs - GenerateFileName旧版重载方法 (line 1711-1721) 遵循"明确拒绝向后兼容性"原则,统一使用新版本API 编译验证通过 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
52bb3da0eb
commit
4ddaa0603d
@ -139,9 +139,6 @@ namespace NavisworksTransport.Core.Animation
|
||||
/// 当动画进度更新时触发 (0.0-100.0)
|
||||
/// </summary>
|
||||
public event EventHandler<double> ProgressChanged;
|
||||
|
||||
// 动画完成事件 (旧版,保留兼容性)
|
||||
public event EventHandler AnimationCompleted;
|
||||
|
||||
/// <summary>
|
||||
/// 当检测到碰撞时触发
|
||||
@ -901,9 +898,6 @@ namespace NavisworksTransport.Core.Animation
|
||||
var actualTotalFrames = _animationFrames?.Count ?? 0;
|
||||
LogManager.Info($"动画播放完成,总帧数: {actualTotalFrames}, 平均FPS: {_actualFPS:F1}");
|
||||
|
||||
// 触发旧版完成事件(保持兼容性)
|
||||
AnimationCompleted?.Invoke(this, EventArgs.Empty);
|
||||
|
||||
// 更新 TimeLiner 任务状态
|
||||
if (_timeLinerManager != null && !string.IsNullOrEmpty(_currentTaskId))
|
||||
{
|
||||
|
||||
@ -1580,18 +1580,6 @@ namespace NavisworksTransport
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 生成文件名(旧版本兼容性方法)
|
||||
/// </summary>
|
||||
/// <param name="layerName">分层名称</param>
|
||||
/// <param name="config">配置信息</param>
|
||||
/// <returns>文件名(不包括路径)</returns>
|
||||
private string GenerateFileName(string layerName, SplitConfiguration config)
|
||||
{
|
||||
// 使用默认策略调用新版本方法
|
||||
return GenerateFileName(layerName, config.Strategy, config);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取根节点名称 - 新的智能文件名格式使用
|
||||
/// 逻辑:文档文件名 → 第一个模型根项DisplayName → "NavisworksModel"
|
||||
|
||||
@ -1708,18 +1708,6 @@ namespace NavisworksTransport.UI.WPF.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 生成文件名(旧版本兼容性方法)
|
||||
/// </summary>
|
||||
/// <param name="layerName">分层名称</param>
|
||||
/// <param name="config">配置信息</param>
|
||||
/// <returns>文件名(不包括路径)</returns>
|
||||
private string GenerateFileName(string layerName, ModelSplitterManager.SplitConfiguration config)
|
||||
{
|
||||
// 使用默认策略调用新版本方法
|
||||
return GenerateFileName(layerName, config.Strategy, config);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 导出分层到NWD文件
|
||||
/// </summary>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user