3DViewerEnum.js 7.15 KB
Newer Older
wangdanlei's avatar
wangdanlei committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324
export const layout = {
  '创建': '0',
  '编辑': '1',
  '详情信息': '2',
  '流程任务': '3',
  '主题': '4',
  '查看': '5',
  '列表查看': '6'
}

export const mainUrl = [
  {
    url: '/icons/3DViewer/zst.png',
    name: '视图管理',
    eveUrl: [
      {
        url: '/icons/3DViewer/dst.png',
        name: '顶视图',
        func: 'showTop'
      },
      {
        url: '/icons/3DViewer/bottomst.png',
        name: '底视图',
        func: 'showBottom'
      },
      {
        url: '/icons/3DViewer/qst.png',
        name: '前视图',
        func: 'showFront'
      },
      {
        url: '/icons/3DViewer/hst.png',
        name: '后视图',
        func: 'showBack'
      },
      {
        url: '/icons/3DViewer/lst.png',
        name: '左视图',
        func: 'showLeft'
      },
      {
        url: '/icons/3DViewer/yst.png',
        name: '右视图',
        func: 'showRight'
      },
      {
        url: '/icons/3DViewer/zst.png',
        name: '主视图',
        func: 'showMain'
      }
    ]
  },
  {
    url: '/icons/3DViewer/mx.png',
    name: '模型操作',
    eveUrl: [
      {
        url: '/icons/3DViewer/ys.png',
        name: '设置模型颜色',
        func: 'setModelColorByRGB'
      },
      {
        url: '/icons/3DViewer/czys.png',
        name: '重置模型颜色',
        func: 'restoreModelColor'
      },
      {
        url: '/icons/3DViewer/tm.png',
        name: '设置模型透明',
        func: 'setModelAlpha'
      },
      {
        url: '/icons/3DViewer/qxtm.png',
        name: '取消透明',
        func: 'restoreModelAlpha'
      },
      {
        url: '/icons/3DViewer/ss.png',
        name: '设置模型闪烁',
        func: 'setModelFlicker'
      },
      {
        url: '/icons/3DViewer/qxss.png',
        name: '取消模型闪烁',
        func: 'stopModelFlicker'
      },
      {
        url: '/icons/3DViewer/jz.png',
        name: '居中',
        func: 'zoomFit'
      },
      {
        url: '/icons/3DViewer/bzst.png',
        name: '爆炸视图',
        func: 'explodeModels'
      }
    ]
  },
  {
    url: '/icons/3DViewer/moxingceliang.png',
    name: '模型测量',
    eveUrl: [
      {
        url: '/icons/3DViewer/jiaodu.png',
        name: '三点线角度',
        func: 'measureAngleByPoints'
      },
      {
        url: '/icons/3DViewer/banjing.png',
        name: '半径测量',
        func: 'measureRadius'
      },
      {
        url: '/icons/3DViewer/tiji.png',
        name: '体积测量',
        func: 'measureVolume'
      },
      {
        url: '/icons/3DViewer/mianji.png',
        name: '面积测量',
        func: 'measureArea'
      },
      {
        url: '/icons/3DViewer/zuobiao.png',
        name: '坐标测量',
        func: 'measurePoint'
      },
      {
        url: '/icons/3DViewer/quxiaoceliang.png',
        name: '结束测量',
        func: 'diameterSurveying'
      }
    ]
  },
  {
    url: '/icons/3DViewer/juliceliang.png',
    name: '最短距离测量',
    eveUrl: [
      {
        url: '/icons/3DViewer/dianju.png',
        name: '点点测量',
        func: 'pointToPoint'
      },
      {
        url: '/icons/3DViewer/xianju.png',
        name: '点线测量',
        func: 'lineToLine'
      },
      {
        url: '/icons/3DViewer/mianju.png',
        name: '点面测量',
        func: 'faceToFace'
      },
      {
        url: '/icons/3DViewer/tiju.png',
        name: '线线测量',
        func: 'volumeToVolume '
      },
      {
        url: '/icons/3DViewer/quxiaoceliang.png',
        name: '取消测量',
        func: 'diameterSurveying'
      }
    ]
  },
  {
    url: '/icons/3DViewer/bzgl.png',
    name: '标注',
    eveUrl: [
      {
        url: '/icons/3DViewer/fxbz.png',
        name: '方形标注',
        func: 'rectMarkWithPanel'
      },
      {
        url: '/icons/3DViewer/yxbz.png',
        name: '圆形标注',
        func: 'circleMarkWithPanel'
      },
      {
        url: '/icons/3DViewer/zyqz.png',
        name: '自由圈注',
        func: 'polygonMarkWithPanel'
      },
      {
        url: '/icons/3DViewer/wzbz.png',
        name: '文字标注',
        func: 'textMark'
      },
      {
        url: '/icons/3DViewer/jtbz.png',
        name: '箭头标注',
        func: 'arrowMarkWithPanel'
      },
      {
        url: '/icons/3DViewer/tyxbz.png',
        name: '椭圆形标注',
        func: 'ellipseMarkWithPanel'
      },
      {
        url: '/icons/3DViewer/zdbxbz.png',
        name: '正多边形标注',
        func: 'regularPolygonMarkWithPanel'
      },
      {
        url: '/icons/3DViewer/tcbz.png',
        name: '退出标注',
        func: 'endMark'
      },
      {
        url: '/icons/3DViewer/scbz.png',
        name: '删除标注',
        func: 'deleteSelectMark'
      }
    ]
  }, {
    url: '/icons/3DViewer/xtpz.png',
    name: '系统配置',
    eveUrl: [
      {
        url: '/icons/3DViewer/lkxs.png',
        name: '轮廓显示/隐藏',
        func: 'setOutlineVisible'
      },
      {
        url: '/icons/3DViewer/lkys.png',
        name: '设置轮廓颜色',
        func: 'setOutlineColor'
      },
      {
        url: '/icons/3DViewer/lkkd.png',
        name: '设置轮廓宽度',
        func: 'setOutlineWidth'
      },
      {
        url: '/icons/3DViewer/bjys.png',
        name: '设置背景颜色',
        func: 'setBackground'
      },
      {
        url: '/icons/3DViewer/dgsz.png',
        name: '灯光设置',
        func: 'setAmbientLight'
      }
    ]
  },
  {
    url: '/icons/3DViewer/bq.png',
    name: '标签',
    eveUrl: [
      {
        url: '/icons/3DViewer/wzbq.png',
        name: '文字标签',
        func: 'setModelTextLabel'
      },
      {
        url: '/icons/3DViewer/ycwzbq.png',
        name: '移除文字标签',
        func: 'removeModelTextLabelByIDs'
      },
      {
        url: '/icons/3DViewer/txbq.png',
        name: '图像标签',
        func: 'setModelImageLabel'
      },
      {
        url: '/icons/3DViewer/yctxbq.png',
        name: '移除图像标签',
        func: 'removeModelImageLabelByIDs'
      },
      {
        url: '/icons/3DViewer/html.png',
        name: 'html标签',
        func: 'setModelAnyLabel'
      },
      {
        url: '/icons/3DViewer/ychtml.png',
        name: '移除html标签',
        func: 'removeModelAnyLabelByIDs'
      }
    ]
  },
  {
    url: '/icons/3DViewer/pq.png',
    name: '剖切',
    eveUrl: [
      {
        url: '/icons/3DViewer/xypq.png',
        name: 'xy平面剖切',
        func: 'clipXY'
      },
      {
        url: '/icons/3DViewer/xzpq.png',
        name: 'xz平面剖切',
        func: 'clipXZ'
      },
      {
        url: '/icons/3DViewer/yzpq.png',
        name: 'yz平面剖切',
        func: 'clipYZ'
      },
      {
        url: '/icons/3DViewer/fxpq.png',
        name: '平面法线剖切',
        func: 'planeNormal'
      },
      {
        url: '/icons/3DViewer/zxzdpq.png',
        name: '直线中点剖切',
        func: 'midpointOfLine'
      },
      {
        url: '/icons/3DViewer/pqh.png',
        name: '剖切盒',
        func: 'startBoxClip'
      },
      {
        url: '/icons/3DViewer/qxpq.png',
        name: '取消剖切',
        func: 'endClip'
      }
    ]
  }
]