refactor(batch2): extract pdm/license/platform/ui modules

Moved 4 module groups out of geometry kernel:

- vde_pdm: bom_table + quality_feedback + material_library (from brep/core)

- vde_license: license_manager (from core, vde_version.h updated)

- vde_platform: platform (from core, io_dwg_plugin.cpp updated)

- vde_ui: gizmo_api + selection_manager + viewport_api (from brep)

All modules compile. Pre-existing test failures unchanged (case-sensitive tier parsing, orientation cube)
This commit is contained in:
hm
2026-08-06 16:27:36 +08:00
parent a4dbcfc195
commit 85f2df2ca7
29 changed files with 116 additions and 60 deletions
+2 -2
View File
@@ -16,7 +16,7 @@
* std::cout << vde::core::vde_version_string() << std::endl;
*
* // 设置许可证
* auto& lm = vde::core::LicenseManager::instance();
* auto& lm = vde::license::LicenseManager::instance();
* lm.set_license("VDE-XXXX-XXXX-XXXX");
*
* // 检查功能
@@ -29,4 +29,4 @@
*/
#include "vde/core/version.h"
#include "vde/core/license_manager.h"
#include "vde_license/license_manager.h"
@@ -22,7 +22,7 @@
#include <mutex>
#include <unordered_map>
namespace vde::core {
namespace vde::license {
// ═══════════════════════════════════════════════════════════════
// LicenseTier 枚举
@@ -276,13 +276,13 @@ private:
mutable std::mutex mutex_;
};
} // namespace vde::core
} // namespace vde::license
// ═══════════════════════════════════════════════════════════
// VDE-402: floating_license + network_checkout + license_audit_log
// ═══════════════════════════════════════════════════════════
namespace vde::core {
namespace vde::license {
/// Floating license record
struct FloatingLicenseRecord {
@@ -358,4 +358,4 @@ private:
mutable std::mutex mutex_;
};
} // namespace vde::core
} // namespace vde::license
@@ -12,7 +12,9 @@
#include <vector>
#include <map>
namespace vde::brep {
namespace vde::pdm {
using brep::Assembly;
/// BOM item entry
struct BomItem {
@@ -66,4 +68,4 @@ struct BomTable {
/// @return true on success
bool bom_export_csv(const BomTable& bom, const std::string& filepath, char delimiter = ',');
} // namespace vde::brep
} // namespace vde::pdm
@@ -12,7 +12,7 @@
#include <unordered_map>
#include <optional>
namespace vde::core {
namespace vde::pdm {
/// Material property set
struct MaterialProperties {
@@ -73,4 +73,4 @@ void init_native_material_db();
/// Get material properties by name (convenience)
[[nodiscard]] std::optional<MaterialProperties> material_properties(const std::string& name);
} // namespace vde::core
} // namespace vde::pdm
@@ -18,10 +18,11 @@
#include <string>
#include <map>
namespace vde::brep {
namespace vde::pdm {
using core::Point3D;
using core::Vector3D;
using brep::BrepModel;
// ═══════════════════════════════════════════════════════════
// 设计规则
@@ -207,4 +208,4 @@ std::vector<DesignRule> default_design_rules();
*/
std::vector<MaterialInfo> material_library();
} // namespace vde::brep
} // namespace vde::pdm
@@ -15,7 +15,9 @@
#include <vector>
#include <string>
namespace vde::brep {
namespace vde::ui {
using brep::BrepModel;
// ═══════════════════════════════════════════════
// 类型定义
@@ -88,4 +90,4 @@ struct SmartDimensionSuggestion {
[[nodiscard]] std::vector<SmartDimensionSuggestion> smart_dimension(const BrepModel& body,
const std::vector<int>& face_ids);
} // namespace vde::brep
} // namespace vde::ui
@@ -14,7 +14,9 @@
#include <set>
#include <functional>
namespace vde::brep {
namespace vde::ui {
using brep::BrepModel;
/// Selection mode
enum class SelectionMode { Single, Window, Crossing, Polygon, Chain, Tangent };
@@ -115,4 +117,4 @@ private:
SelectionHighlight highlight_style_;
};
} // namespace vde::brep
} // namespace vde::ui
@@ -26,7 +26,10 @@
#include <string>
#include <vector>
namespace vde::brep {
namespace vde::ui {
using brep::BrepModel;
using brep::Color;
// ═══════════════════════════════════════════════
// VDE-185: bounding_sphere / view_frustum_cull
@@ -238,4 +241,4 @@ struct PickRay {
int viewport_width, int viewport_height,
double near_plane = 0.1, double far_plane = 100.0);
} // namespace vde::brep
} // namespace vde::ui