补齐功能图标

This commit is contained in:
JackLee 2026-03-16 18:23:18 +08:00
parent ad17e41ed5
commit 30965a8809
121 changed files with 236 additions and 87 deletions

View File

@ -1,6 +0,0 @@
import { OCCTLoadModel } from './modelView';
//该ets是一个映射指令表.主要是功能得Event事件和对应实现函数进行映射.
//要求Event的事件名必须与该事件对应实现功能的函数名一致.
// 定义一个函数类型别名,表示无参数无返回值的函数
//ActionMap相当于一个Event的事件列表和函数连接器

View File

@ -43,97 +43,140 @@ export let TitleCAD:Array<TitleModel>=[
{eModel:[ModelType.BASE],eName:"求交",eNamed:"",eIcon:"modeling_booleanintersect",eTips:"",eEvent:""},
],
[
{eModel:[ModelType.BASE],eName:"凸起",eNamed:"",eIcon:"modeling_emboss",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"凸起体",eNamed:"",eIcon:"modeling_emboss_body",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"组合",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"缝合",eNamed:"",eIcon:"modeling_sew",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"补片",eNamed:"",eIcon:"modeling_patch",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"拼合",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"偏置凸起",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"装配切割",eNamed:"",eIcon:"modeling_assembly_cut",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"取消缝合",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"连接面",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"构造实体",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"凸起",eNamed:"",eIcon:"modeling_edit_emboss",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"凸起体",eNamed:"",eIcon:"modeling_edit_emboss_body",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"组合",eNamed:"",eIcon:"modeling_edit_combine_sheets",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"缝合",eNamed:"",eIcon:"modeling_edit_sew",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"补片",eNamed:"",eIcon:"modeling_edit_patch",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"拼合",eNamed:"",eIcon:"modeling_edit_quilt",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"偏置凸起",eNamed:"",eIcon:"modeling_edit_offsetemboss",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"装配切割",eNamed:"",eIcon:"modeling_edit_assembly_cut",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"取消缝合",eNamed:"",eIcon:"modeling_edit_unsew",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"连接面",eNamed:"",eIcon:"modeling_edit_joinface",eTips:"",eEvent:""},
],
[
{eModel:[ModelType.BASE],eName:"孔",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"腔",eNamed:"",eIcon:"base_import_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"槽",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"凸台",eNamed:"",eIcon:"base_close_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"垫块",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"筋板",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"螺纹",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"剪口",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"轮廓筋板",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"算法特征",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"用户定义",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""}
{eModel:[ModelType.BASE],eName:"孔",eNamed:"",eIcon:"modeling_feature_hole",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"腔",eNamed:"",eIcon:"modeling_feature_pocket",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"槽",eNamed:"",eIcon:"modeling_feature_groove",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"凸台",eNamed:"",eIcon:"modeling_feature_boss",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"垫块",eNamed:"",eIcon:"modeling_feature_pdw_backing_pad",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"筋板",eNamed:"",eIcon:"modeling_feature_rib",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"螺纹",eNamed:"",eIcon:"modeling_feature_thread",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"剪口",eNamed:"",eIcon:"modeling_feature_bdtool_dart",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"轮廓筋板",eNamed:"",eIcon:"modeling_feature_contour_rib",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"算法特征",eNamed:"",eIcon:"modeling_feature_algorithmic_feature",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"用户定义",eNamed:"",eIcon:"modeling_feature_userdefined",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"拓扑优化",eNamed:"",eIcon:"modeling_feature_topopt_task_environment",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"按方程创建体",eNamed:"",eIcon:"modeling_feature_surface_general",eTips:"",eEvent:""}
],
[
{eModel:[ModelType.BASE],eName:"边倒圆",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"面倒圆",eNamed:"",eIcon:"base_import_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"样式倒圆",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"美学面倒圆",eNamed:"",eIcon:"base_close_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"桥接曲面",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"倒圆拐角",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"样式拐角",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"球形拐角",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"倒斜角",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"拔模",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"拔模体",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""}
{eModel:[ModelType.BASE],eName:"边倒圆",eNamed:"",eIcon:"modeling_edit_blend",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"面倒圆",eNamed:"",eIcon:"modeling_edit_blend_faceblend",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"样式倒圆",eNamed:"",eIcon:"modeling_edit_blend_aesthetic_face",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"美学面倒圆",eNamed:"",eIcon:"modeling_edit_blend_styled_blend",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"桥接曲面",eNamed:"",eIcon:"modeling_edit_blend_bridge_sheet",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"倒圆拐角",eNamed:"",eIcon:"modeling_edit_blend_sm_corner",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"样式拐角",eNamed:"",eIcon:"modeling_edit_blend_styled_corner",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"球形拐角",eNamed:"",eIcon:"modeling_edit_blend_spherical_corner",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"倒斜角",eNamed:"",eIcon:"modeling_edit_blend_solid_chamfer",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"拔模",eNamed:"",eIcon:"modeling_edit_taper",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"拔模体",eNamed:"",eIcon:"modeling_edit_draft_body",eTips:"",eEvent:""}
],
[
{eModel:[ModelType.BASE],eName:"修剪体",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"拆分体",eNamed:"",eIcon:"base_import_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"删除体",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"分割面",eNamed:"",eIcon:"base_close_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"修剪片体",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"延伸片体",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"修剪和延伸",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"取消修建",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"修剪体",eNamed:"",eIcon:"modeling_edit_body_trim",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"拆分体",eNamed:"",eIcon:"modeling_edit_body_split",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"删除体",eNamed:"",eIcon:"modeling_edit_body_delete_body",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"分割面",eNamed:"",eIcon:"modeling_edit_body_subdivideface",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"修剪片体",eNamed:"",eIcon:"modeling_edit_body_trimmed_sheet",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"延伸片体",eNamed:"",eIcon:"modeling_edit_body_extend_sheet",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"修剪和延伸",eNamed:"",eIcon:"modeling_edit_body_trim_and_extend",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"取消修剪",eNamed:"",eIcon:"modeling_edit_body_untrim",eTips:"",eEvent:""},
],
[
{eModel:[ModelType.BASE],eName:"抽壳",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"加厚",eNamed:"",eIcon:"base_import_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"缩放体",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"包容体",eNamed:"",eIcon:"base_close_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"包裹几何体",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"抽壳",eNamed:"",eIcon:"modeling_edit_body_face_hollow",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"加厚",eNamed:"",eIcon:"modeling_edit_body_face_thicken",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"缩放体",eNamed:"",eIcon:"modeling_edit_body_face_scale",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"包容体",eNamed:"",eIcon:"modeling_edit_body_face_mw_tools_box",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"包裹几何体",eNamed:"",eIcon:"modeling_edit_body_face_wrap_geom",eTips:"",eEvent:""},
],
[
{eModel:[ModelType.BASE],eName:"抽取几何体",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"阵列特征",eNamed:"",eIcon:"base_import_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"阵列面",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"阵列几何特征",eNamed:"",eIcon:"base_close_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"阵列体",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"镜像面",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"镜像几何特征",eNamed:"",eIcon:"base_import_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"镜像几何体",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"提升体",eNamed:"",eIcon:"base_close_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"隔离特征对象",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"抽取几何体",eNamed:"",eIcon:"modeling_edit_body_face_extractfeat",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"阵列特征",eNamed:"",eIcon:"modeling_edit_body_face_pattern_feature",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"阵列面",eNamed:"",eIcon:"modeling_edit_body_face_pattern_face",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"阵列几何特征",eNamed:"",eIcon:"modeling_edit_body_face_pattern_geometry",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"阵列体",eNamed:"",eIcon:"modeling_edit_body_face_pattern_body_2",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"镜像面",eNamed:"",eIcon:"modeling_edit_body_face_mirror_face",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"镜像几何特征",eNamed:"",eIcon:"modeling_edit_body_face_mirror_feature",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"镜像几何体",eNamed:"",eIcon:"modeling_edit_body_face_mirror_geometry",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"提升体",eNamed:"",eIcon:"modeling_edit_body_face_promotion",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"隔离特征对象",eNamed:"",eIcon:"modeling_edit_body_face_isolate",eTips:"",eEvent:""},
],
[
{eModel:[ModelType.BASE],eName:"偏置面",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"偏置曲面",eNamed:"",eIcon:"base_import_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"可变偏置",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"变距偏置面",eNamed:"",eIcon:"base_close_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"大致偏置",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""}
{eModel:[ModelType.BASE],eName:"偏置面",eNamed:"",eIcon:"modeling_edit_body_face_offset_face",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"偏置曲面",eNamed:"",eIcon:"modeling_edit_body_face_offset_face_variable",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"可变偏置",eNamed:"",eIcon:"modeling_edit_body_face_variable_offset",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"变距偏置面",eNamed:"",eIcon:"modeling_edit_body_face_offset_face_variable",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"大致偏置",eNamed:"",eIcon:"modeling_edit_body_face_rough_offset",eTips:"",eEvent:""}
]
],grpMenu:GroupOption}] as Array<TitleGroup>,
[{grpName:'同步建模',grpBtn:[
[
{eModel:[ModelType.BASE],eName:"移动",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"删除",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"替换",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"替换圆角",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"偏置",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"调整圆角大小",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"局部比例",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"移动",eNamed:"",eIcon:"modeling_edit_sync_build_move_face",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"删除",eNamed:"",eIcon:"modeling_edit_sync_build_delete_face",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"替换",eNamed:"",eIcon:"modeling_edit_sync_build_replace_face",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"替换圆角",eNamed:"",eIcon:"modeling_edit_sync_build_replace_blend",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"偏置",eNamed:"",eIcon:"modeling_edit_sync_build_offset_face",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"调整圆角大小",eNamed:"",eIcon:"modeling_edit_sync_build_resize_blend",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"局部比例",eNamed:"",eIcon:"modeling_edit_sync_build_local_scale",eTips:"",eEvent:""},
],
[
{eModel:[ModelType.BASE],eName:"复制面",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"剪切面",eNamed:"",eIcon:"base_close_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"粘贴面",eNamed:"",eIcon:"base_import_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"镜像面",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"阵列面",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"复制面",eNamed:"",eIcon:"modeling_edit_sync_build_copy_face",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"剪切面",eNamed:"",eIcon:"modeling_edit_sync_build_cut_face",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"粘贴面",eNamed:"",eIcon:"modeling_edit_sync_build_paste_face",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"镜像面",eNamed:"",eIcon:"modeling_edit_sync_build_mirror_face",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"阵列面",eNamed:"",eIcon:"modeling_edit_sync_build_pattern_face",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"辐射面",eNamed:"",eIcon:"modeling_edit_sync_build_radiate_face",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"拉动面",eNamed:"",eIcon:"modeling_edit_sync_build_lift_face",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"编辑横截面",eNamed:"",eIcon:"modeling_edit_sync_build_edit_cross_section",eTips:"",eEvent:""},
],
[
{eModel:[ModelType.BASE],eName:"线性尺寸",eNamed:"",eIcon:"modeling_edit_sync_build_linear_dimension",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"角度尺寸",eNamed:"",eIcon:"modeling_edit_sync_build_angular_dimension",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"径向尺寸",eNamed:"",eIcon:"modeling_edit_sync_build_radial_dimension",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"特征尺寸",eNamed:"",eIcon:"modeling_edit_sync_build_feature_dimension",eTips:"",eEvent:""},
],
[
{eModel:[ModelType.BASE],eName:"标记凹口圆角",eNamed:"",eIcon:"modeling_edit_sync_build_label_notch_blend",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"圆角重新排序",eNamed:"",eIcon:"modeling_edit_sync_build_reorder_blend",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"调整倒角大小",eNamed:"",eIcon:"modeling_edit_sync_build_resize_blend",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"标记为倒斜角",eNamed:"",eIcon:"modeling_edit_sync_build_resize_chamfer",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"调整孔大小",eNamed:"",eIcon:"modeling_edit_sync_build_resize_hole",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"调整阵列大小",eNamed:"",eIcon:"modeling_edit_sync_build_resize_pattern",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"编辑实体密度",eNamed:"",eIcon:"modeling_edit_sync_build_editsoliddensity",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"移除参数",eNamed:"",eIcon:"modeling_edit_sync_build_removeparams",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"替换为独立草图",eNamed:"",eIcon:"modeling_edit_sync_build_replacelinkedsketch",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"从边倒圆移除缺失的父项",eNamed:"",eIcon:"modeling_edit_sync_build_delete",eTips:"",eEvent:""},
],
[
{eModel:[ModelType.BASE],eName:"设为共面",eNamed:"",eIcon:"modeling_edit_sync_build_make_coplanar",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"设为共轴",eNamed:"",eIcon:"modeling_edit_sync_build_make_coaxial",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"设为相切",eNamed:"",eIcon:"modeling_edit_sync_build_make_tangent",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"设为对称",eNamed:"",eIcon:"modeling_edit_sync_build_make_symmetrical",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"设为平行",eNamed:"",eIcon:"modeling_edit_sync_build_make_parallel",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"设为垂直",eNamed:"",eIcon:"modeling_edit_sync_build_make_perpendicular",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"设为偏置",eNamed:"",eIcon:"modeling_edit_sync_build_offset_face",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"组合面",eNamed:"",eIcon:"modeling_edit_sync_build_group_face",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"优化面",eNamed:"",eIcon:"modeling_edit_sync_build_optimize_face",eTips:"",eEvent:""},
],
[
{eModel:[ModelType.BASE],eName:"移动边",eNamed:"",eIcon:"modeling_edit_sync_build_move_edge",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"偏置边",eNamed:"",eIcon:"modeling_edit_sync_build_offset_edge",eTips:"",eEvent:""},
],
[
{eModel:[ModelType.BASE],eName:"替换特征",eNamed:"",eIcon:"modeling_edit_sync_build_replace_feature",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"延迟模型更新",eNamed:"",eIcon:"modeling_edit_sync_build_delayupdatemodel",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"更新模型",eNamed:"",eIcon:"modeling_edit_sync_build_updatemodel",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"更新特征",eNamed:"",eIcon:"modeling_edit_sync_build_renew_feature",eTips:"",eEvent:""},
]
],grpMenu:GroupOption}] as Array<TitleGroup>
]

View File

@ -9,7 +9,8 @@ export let FileModel:TitleModel={cmName:"文件",cmPage:"",cmTips:"",cmEvents:[
{eModel:[ModelType.BASE],eName:"关闭",eNamed:"",eIcon:"base_close_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"导入",eNamed:"",eIcon:"base_import_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"导出",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"选项",eNamed:"",eIcon:"base_preferences",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"首选项",eNamed:"",eIcon:"base_properties",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"工具",eNamed:"",eIcon:"base_tools",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"帮助",eNamed:"",eIcon:"base_help_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"退出",eNamed:"",eIcon:"base_exit",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"退出",eNamed:"",eIcon:"base_exit_icon",eTips:"",eEvent:""},
]}

View File

@ -18,7 +18,7 @@ export let TitleMainPage:Array<TitleModel>=
{eModel:[ModelType.BASE],eName:"关闭",eNamed:"",eIcon:"base_close_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"导入",eNamed:"",eIcon:"base_import_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"导出",eNamed:"",eIcon:"base_export_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"选项",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"选项",eNamed:"",eIcon:"base_properties",eTips:"",eEvent:""},
{eModel:[ModelType.BASE],eName:"帮助",eNamed:"",eIcon:"base_help_file",eTips:"",eEvent:""},
],
grpMenu:GroupOption}] as Array<TitleGroup>]]},

View File

@ -7,9 +7,9 @@ import { ModelType } from './ModelType'
export let MatrixModel:TitleModel= {
cmName:"应用模块",cmPage:"",cmTips:"",cmEvents:[
[[{grpName:'模块矩阵',grpBtn:[
{eModel:[ModelType.BASE],eName:"建模",eNamed:"",eIcon:"base_new_file",eTips:"",eEvent:"Switch_Model_CAD"},
{eModel:[ModelType.BASE],eName:"加工",eNamed:"",eIcon:"base_open_file",eTips:"",eEvent:"Switch_Model_CAM"},
{eModel:[ModelType.BASE],eName:"仿真",eNamed:"",eIcon:"base_save_file",eTips:"",eEvent:"Switch_Model_CAE"},
{eModel:[ModelType.BASE],eName:"建模",eNamed:"",eIcon:"base_model_cad",eTips:"",eEvent:"Switch_Model_CAD"},
{eModel:[ModelType.BASE],eName:"加工",eNamed:"",eIcon:"base_model_cam",eTips:"",eEvent:"Switch_Model_CAM"},
{eModel:[ModelType.BASE],eName:"仿真",eNamed:"",eIcon:"base_model_cae",eTips:"",eEvent:"Switch_Model_CAE"},
],grpMenu:GroupOption}] as Array<TitleGroup>
]]
}

View File

@ -0,0 +1,92 @@
import { BusinessError } from '@kit.BasicServicesKit';
import { BridgeEvent, BridgeRequest, BridgeResponse } from './NativeBridgeTypes'; // 导入定义的类型
/**
* Native桥接管理器
* 负责与Native侧进行统一的通信
*/
class NativeBridgeManager {
private static instance: NativeBridgeManager;
private eventListeners: Map<string, Set<(event: BridgeEvent) => void>> = new Map();
// 禁止外部直接实例化
private constructor() {}
public static getInstance(): NativeBridgeManager {
if (!NativeBridgeManager.instance) {
NativeBridgeManager.instance = new NativeBridgeManager();
}
return NativeBridgeManager.instance;
}
/**
* 核心调用函数
* 通过一个函数实现对Native侧多个函数的调用和参数传递
* @param request 包含函数名和参数的请求对象
* @returns 一个Promise用于获取Native侧的返回结果
*/
async callNativeFunction(request: BridgeRequest): Promise<BridgeResponse> {
try {
// 假设Native侧暴露了名为'nativeCall'的函数
// 实际项目中,这可能是通过@ohos.napi或特定SDK实现的
const result: BridgeResponse = await nativeCall(request);
return result;
} catch (error) {
// 将错误包装为标准的BridgeResponse
const typedError = error as BusinessError;
return {
success: false,
errorMessage: `Native call failed: ${typedError.message || 'Unknown error'}`,
};
}
}
/**
* 订阅来自Native侧的事件
* @param eventName 事件名称
* @param listener 事件回调函数
*/
subscribe(eventName: string, listener: (event: BridgeEvent) => void): void {
if (!this.eventListeners.has(eventName)) {
this.eventListeners.set(eventName, new Set());
}
this.eventListeners.get(eventName)!.add(listener);
}
/**
* 取消订阅事件
* @param eventName 事件名称
* @param listener 要移除的回调函数
*/
unsubscribe(eventName: string, listener: (event: BridgeEvent) => void): void {
const listeners = this.eventListeners.get(eventName);
if (listeners) {
listeners.delete(listener);
if (listeners.size === 0) {
this.eventListeners.delete(eventName);
}
}
}
/**
* (此方法由Native侧通过NAPI回调触发)
* 用于接收Native侧主动推送的事件
* @param event 推送的事件对象
*/
handleNativeEvent(event: BridgeEvent): void {
const listeners = this.eventListeners.get(event.eventName);
if (listeners) {
listeners.forEach((listener) => {
try {
listener(event);
} catch (err) {
console.error(`Error in event listener for "${event.eventName}":`, err);
}
});
}
}
}
function nativeCall(request: BridgeRequest): BridgeResponse | PromiseLike<BridgeResponse> {
throw new Error('Function not implemented.');
}

View File

@ -0,0 +1,18 @@
// 定义传递给Native的请求结构
export interface BridgeRequest {
functionName: string;
params?: Record<string, number | string | boolean>; // 使用Record来约束参数类型
}
// 定义Native侧返回的响应结构
export interface BridgeResponse {
success: boolean;
errorMessage?: string;
data?: Record<string, number | string | boolean>; // 约束返回数据类型
}
// 定义Native侧可能推送的事件结构
export interface BridgeEvent {
eventName: string;
data?: Record<string, number | string | boolean>;
}

View File

@ -49,7 +49,7 @@ export struct TitleColumnSub {
.width(25)
.padding(1)
.backgroundColor(Color.Transparent)
.backgroundImage($r('app.media.base_seetings'))
.backgroundImage($r('app.media.base_shortcut_menu'))
.backgroundImagePosition({ x: '10%', y: '10%' })
.backgroundImageSize({
width: '80%', // 图片宽度占满按钮
@ -57,7 +57,8 @@ export struct TitleColumnSub {
})
.bindMenu(this.DisplayModeMenu(TitleData.mFileModel.cmEvents as Array<TitleButton>))
.type(ButtonType.Normal)
Text('菜单').bindMenu(this.DisplayModeMenu(TitleData.mFileModel.cmEvents as Array<TitleButton>))
Text('|')
Text('拾取类型:')
TextComboBox({menu:SelectionMode})
.width('100vp')

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Some files were not shown because too many files have changed in this diff Show More