Commit 18b80c28 authored by 单奇雲's avatar 单奇雲

merge

parents 66fddfdb b6c2e1bb
{
"dataList": [
{ "id": 1, "thumb": "/a3dres/basicScene/station/thumb.png", "modelURI": "/a3dres/basicScene/station", "name": "station", "descr": "变电站" },
{ "id": 2, "thumb": "/a3dres/basicScene/cola/thumb.png", "modelURI": "/a3dres/basicScene/cola", "name": "cola", "descr": "可乐站" },
{ "id": 3, "thumb": "/a3dres/basicScene/beijing/thumb.png", "modelURI": "/a3dres/basicScene/beijing", "name": "beijing", "descr": "北京换流站" },
{ "id": 4, "thumb": "/a3dres/basicScene/beijing2/thumb.png", "modelURI": "/a3dres/basicScene/beijing2", "name": "beijing2", "descr": "北京换流站" },
{ "id": 5, "thumb": "/a3dres/basicScene/yinan/thumb.png", "modelURI": "/a3dres/basicScene/yinan", "name": "yinan", "descr": "沂南换流站" },
{ "id": 6, "thumb": "/a3dres/basicScene/ccpc/thumb.png", "modelURI": "/a3dres/basicScene/ccpc", "name": "ccpc", "descr": "北大街银行" },
{ "id": 7, "thumb": "/a3dres/basicScene/ccpc-xian/thumb.png", "modelURI": "/a3dres/basicScene/ccpc-xian", "name": "ccpc", "descr": "西安银行" },
{ "id": 8, "thumb": "/a3dres/basicScene/shm/thumb.png", "modelURI": "/a3dres/basicScene/shm", "name": "shm", "descr": "上海庙" }
],
"result": "SUCCESS"
}
{
"dataList": [
{ "key": "disasterSetting", "icon": "yuan-huoqing", "displayName": "灾情设定", "children": [
{ "key": "disaster", "displayName": "灾情", "children": [
{ "key": "disaster", "displayName": "警报", "thumb": "", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "fire", "displayName": "火", "thumb": "/a3dres/models/fire-thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "fire-point", "displayName": "火点", "thumb": "/a3dres/models/fire/fire-thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/fire/", "objPath": "fire.obj", "mtlPath": "fire.mtl" }, "type": "model" },
{ "key": "fight-terrorism", "displayName": "反恐", "thumb": "", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "rescue", "displayName": "救助", "thumb": "", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" }
]},
{ "key": "combustibles", "displayName": "可燃物", "children": [
{ "key": "solid", "displayName": "固体", "thumb": "/a3dres/models/things/solid.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "liquid", "displayName": "液体", "thumb": "/a3dres/models/things/liquid.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "gas", "displayName": "气体", "thumb": "/a3dres/models/things/gas.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "other-combustibles", "displayName": "其它", "thumb": "/a3dres/models/things/unknown.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" }
]},
{ "key": "trapped-person", "displayName": "被困人员", "children": [
{ "key": "oldMan", "displayName": "老头", "thumb": "/a3dres/models/things/old-man.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "oldlady", "displayName": "老太", "thumb": "/a3dres/models/things/default-3d.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "man-person", "displayName": "男人", "thumb": "/a3dres/models/user/worker-thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/user/", "objPath": "worker.obj", "mtlPath": "worker.mtl" }, "type": "model" },
{ "key": "woman", "displayName": "女人", "thumb": "/a3dres/models/things/woman.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "boy", "displayName": "男孩", "thumb": "/a3dres/models/things/default-3d.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "girl", "displayName": "女孩", "thumb": "/a3dres/models/things/default-3d.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "baby", "displayName": "婴儿", "thumb": "/a3dres/models/things/default-3d.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" }
]}
]},
{ "key": "circuitSetting", "icon": "yuan-luxian", "displayName": "线路设定", "children": [
{ "key": "region", "displayName": "区域", "children": [
{ "key": "warning-region", "displayName": "警戒区", "thumb": "/a3dres/images/pathline/region-warning.png", "descr": "", "objParam": null, "type": "pen" },
{ "key": "circle-region", "displayName": "灾圈", "thumb": "/a3dres/images/pathline/region-circle.png", "descr": "", "objParam": null, "type": "pen" },
{ "key": "custom-region", "displayName": "自定义围栏", "thumb": "/a3dres/images/pathline/region-custom.png", "descr": "", "objParam": null, "type": "pen" }
]},
{ "key": "line", "displayName": "线路", "children": [
{ "key": "investigation-line", "displayName": "侦查线路", "thumb": "/a3dres/images/pathline/line-investigation.png", "descr": "", "objParam": null, "type": "pen" },
{ "key": "attack-line", "displayName": "进攻线路", "thumb": "/a3dres/images/pathline/line-attack.png", "descr": "", "objParam": null, "type": "pen" },
{ "key": "water-line", "displayName": "供水线路", "thumb": "/a3dres/images/pathline/line-water.png", "descr": "", "objParam": null, "type": "pen" },
{ "key": "retreat-line", "displayName": "撤退线路", "thumb": "/a3dres/images/pathline/line-retreat.png", "descr": "", "objParam": null, "type": "pen" },
{ "key": "evacuation-line", "displayName": "疏散线路", "thumb": "/a3dres/images/pathline/line-evacuation.png", "descr": "", "objParam": null, "type": "pen" },
{ "key": "demolition-line", "displayName": "破拆", "thumb": "/a3dres/images/pathline/line-demolition.png", "descr": "", "objParam": null, "type": "pen" },
{ "key": "exhaustsmoke-line", "displayName": "排烟", "thumb": "/a3dres/images/pathline/line-smoke-exhaust.png", "descr": "", "objParam": null, "type": "pen" },
{ "key": "tube-line", "displayName": "管线", "thumb": "/a3dres/images/pathline/line-tube.png", "descr": "", "objParam": null, "type": "pen" },
{ "key": "custom-line", "displayName": "自定义线", "thumb": "/a3dres/images/pathline/line-custom.png", "descr": "", "objParam": null, "type": "pen" }
]}
]},
{ "key": "fireTuck", "icon": "yuan-xiaofangche", "displayName": "消防车", "children": [
{ "key": "fire-vehicle", "displayName": "消防车辆", "children": [
{ "key": "ascend-car", "displayName": "登高车", "thumb": "/a3dres/models/denggaoche/thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/denggaoche/", "objPath": "denggaoche.obj", "mtlPath": "denggaoche.mtl" }, "type": "model" },
{ "key": "ladder-car", "displayName": "云梯车", "thumb": "/a3dres/models/yuntiche/thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/yuntiche/", "objPath": "yuntiche.obj", "mtlPath": "yuntiche.mtl" }, "type": "model" },
{ "key": "highspray-car", "displayName": "高喷车", "thumb": "/a3dres/models/gaopenche/thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/gaopenche/", "objPath": "gaopenche.obj", "mtlPath": "gaopenche.mtl" }, "type": "model" },
{ "key": "watertanker-car", "displayName": "水罐车", "thumb": "/a3dres/models/shuiguanche/thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/shuiguanche/", "objPath": "shuiguanche.obj", "mtlPath": "shuiguanche.mtl" }, "type": "model" },
{ "key": "foam-car", "displayName": "泡沫车", "thumb": "/a3dres/models/paomoche/thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/paomoche/", "objPath": "paomoche.obj", "mtlPath": "paomoche.mtl" }, "type": "model" },
{ "key": "drypowder-car", "displayName": "干粉车", "thumb": "/a3dres/models/ganfenche/thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/ganfenche/", "objPath": "ganfenche.obj", "mtlPath": "ganfenche.mtl" }, "type": "model" },
{ "key": "smoke-exhaust-car", "displayName": "排烟车", "thumb": "/a3dres/models/paiyanche/thumb.png", "descr": "排烟车", "objParam": { "baseUrl": "/a3dres/models/paiyanche/", "objPath": "paiyanche.obj", "mtlPath": "paiyanche.mtl" }, "type": "model" },
{ "key": "lighting-car", "displayName": "照明车", "thumb": "/a3dres/models/zhaomingche/thumb.png", "descr": "照明车", "objParam": { "baseUrl": "/a3dres/models/zhaomingche/", "objPath": "zhaomingche.obj", "mtlPath": "zhaomingche.mtl" }, "type": "model" },
{ "key": "communication-car", "displayName": "通讯车", "thumb": "/a3dres/models/communication/thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/communication/", "objPath": "tongxunche.obj", "mtlPath": "tongxunche.mtl" }, "type": "model" },
{ "key": "fire-tank", "displayName": "消防坦克", "thumb": "/a3dres/models/tank/thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/tank/", "objPath": "xiaofangtanke.obj", "mtlPath": "xiaofangtanke.mtl" }, "type": "model" },
{ "key": "helicopter", "displayName": "直升机", "thumb": "/a3dres/models/helicopter/thumb.png", "descr": "救援直升机", "objParam": { "baseUrl": "/a3dres/models/helicopter/", "objPath": "zhishengji.obj", "mtlPath": "zhishengji.mtl" }, "type": "model" }
]},
{ "key": "other-vehicle", "displayName": "其它车辆", "children": [
{ "key": "ambulance", "displayName": "救护车", "thumb": "/a3dres/models/ambulance/thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/ambulance/", "objPath": "jiuhuche.obj", "mtlPath": "jiuhuche.mtl" }, "type": "model" },
{ "key": "excavator", "displayName": "挖掘机", "thumb": "/a3dres/models/zhaomingche/thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/wajueji/", "objPath": "wajueji.obj", "mtlPath": "wajueji.mtl" }, "type": "model" },
{ "key": "crane", "displayName": "吊车", "thumb": "/a3dres/models/crane/crane-thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/crane/", "objPath": "diaoche.obj", "mtlPath": "diaoche.mtl" }, "type": "model" },
{ "key": "police-car", "displayName": "警车", "thumb": "", "descr": "", "objParam": { "baseUrl": "/a3dres/models/ceshi/", "objPath": "1.obj", "mtlPath": "1.mtl" }, "type": "model" },
{ "key": "motorcycle", "displayName": "摩托", "thumb": "/a3dres/models/motorcycle-thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "motorcycle.obj", "mtlPath": "motorcycle.mtl" }, "type": "model" },
{ "key": "police-motorcycle", "displayName": "警车摩托", "thumb": "/a3dres/models/moto/police-thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/moto/", "objPath": "police-motorcycle.obj", "mtlPath": "police-motorcycle.mtl" }, "type": "model" },
{ "key": "robot", "displayName": "机器人", "thumb": "/a3dres/models/robots/robot-thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/robots/", "objPath": "robot.obj", "mtlPath": "robot.mtl" }, "type": "model" },
{ "key": "fire-robot", "displayName": "消防机器人", "thumb": "/a3dres/models/robots/fire-robot-thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/robots/", "objPath": "fire-robot.obj", "mtlPath": "fire-robot.mtl" }, "type": "model" },
{ "key": "uav", "displayName": "无人机", "thumb": "/a3dres/models/uav-thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "uav.obj", "mtlPath": "uav.mtl" }, "type": "model" },
{ "key": "boat", "displayName": "冲锋舟", "thumb": "/a3dres/models/boat/thumb.png", "descr": "冲锋舟", "objParam": { "baseUrl": "/a3dres/models/boat/", "objPath": "chongfengzhou.obj", "mtlPath": "chongfengzhou.mtl" }, "type": "model" },
{ "key": "truck", "displayName": "大卡车", "thumb": "/a3dres/models/truck-thumb.png", "descr": "卡车", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "truck.obj", "mtlPath": "truck.mtl" }, "type": "model" },
{ "key": "repair-car", "displayName": "抢修车", "thumb": "/a3dres/models/qiangxiuche/thumb.png", "descr": "抢修车", "objParam": { "baseUrl": "/a3dres/models/qiangxiuche/", "objPath": "qiangxiuche.obj", "mtlPath": "qiangxiuche.mtl" }, "type": "model" }
]}
]},
{ "key": "strength", "icon": "yuan-zhandouliliang", "displayName": "力量", "children": [
{ "key": "command-post", "displayName": "指挥部", "children": [
{ "key": "command-center", "displayName": "指挥中心", "thumb": "", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" }
]},
{ "key": "combat-team", "displayName": "参战小组", "children": [
{ "key": "fireman-person", "displayName": "消防员", "thumb": "/a3dres/models/user/fireman-thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/user/", "objPath": "fireman.obj", "mtlPath": "fireman.mtl" }, "type": "model" },
{ "key": "firefighter-person", "displayName": "战斗消防员", "thumb": "/a3dres/models/user/combat-firefighter-thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/user/", "objPath": "combat-firefighter.obj", "mtlPath": "combat-firefighter.mtl" }, "type": "model" },
{ "key": "investigation", "displayName": "侦查组", "thumb": "", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "disassembly", "displayName": "破拆组", "thumb": "", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "combat", "displayName": "战斗组", "thumb": "", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "water-supply", "displayName": "供水组", "thumb": "", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "police", "displayName": "警察", "thumb": "/a3dres/models/things/police.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "logistics", "displayName": "后勤组", "thumb": "/a3dres/models/things/repair-man.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "communications", "displayName": "通讯组", "thumb": "", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "medical", "displayName": "医疗组", "thumb": "", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "fulltime-team", "displayName": "专职队", "thumb": "/a3dres/models/things/major-man.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "experts", "displayName": "专家组", "thumb": "", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "traffic-police", "displayName": "交警", "thumb": "", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" }
]}
]},
{ "key": "tool", "icon": "yuan-xiaofangzhuangbei", "displayName": "工具", "children": [
{ "key": "fire-fighting-tool", "displayName": "消防工具", "children": [
{ "key": "lighting", "displayName": "照明", "thumb": "", "descr": "", "objParam": { "baseUrl": "/a3dres/models/", "objPath": "", "mtlPath": "" }, "type": "model" },
{ "key": "alternator", "displayName": "发电机", "thumb": "/a3dres/models/alternator/thumb.png", "descr": "发电机", "objParam": { "baseUrl": "/a3dres/models/alternator/", "objPath": "fadianji.obj", "mtlPath": "fadianji.mtl" }, "type": "model" }
]},
{ "key": "basic-shape", "displayName": "基本图形", "children": [
{ "key": "cube", "displayName": "立方体", "thumb": "/a3dres/images/shape/shape-cube.png", "descr": "立方体", "objParam": null, "type": "shape" },
{ "key": "cylinder", "displayName": "圆柱体", "thumb": "/a3dres/images/shape/shape-cylinder.png", "descr": "圆柱体", "objParam": null, "type": "shape" },
{ "key": "pyramid", "displayName": "棱锥型", "thumb": "/a3dres/images/shape/shape-pyramid.png", "descr": "棱锥型", "objParam": null, "type": "shape" },
{ "key": "cone", "displayName": "锥形", "thumb": "/a3dres/images/shape/shape-cone.png", "descr": "锥形", "objParam": null, "type": "shape" },
{ "key": "sphere", "displayName": "球体", "thumb": "/a3dres/images/shape/shape-sphere.png", "descr": "球体", "objParam": null, "type": "shape" },
{ "key": "hexagon", "displayName": "六边形", "thumb": "/a3dres/images/shape/shape-hexagon.png", "descr": "六边形", "objParam": null, "type": "shape" },
{ "key": "wedge", "displayName": "楔形", "thumb": "/a3dres/images/shape/shape-wedge.png", "descr": "楔形", "objParam": null, "type": "shape" },
{ "key": "torus", "displayName": "圆环", "thumb": "/a3dres/images/shape/shape-torus.png", "descr": "圆环", "objParam": null, "type": "shape" },
{ "key": "tetrahedron", "displayName": "四面体", "thumb": "/a3dres/images/shape/shape-tetrahedron.png", "descr": "四面体", "objParam": null, "type": "shape" }
]},
{ "key": "other-tool", "displayName": "其它工具", "children": [
{ "key": "sandbag", "displayName": "沙袋", "thumb": "/a3dres/models/stuffs/shadai-thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/stuffs/", "objPath": "shadai.obj", "mtlPath": "shadai.mtl" }, "type": "model" },
{ "key": "dump-trunk", "displayName": "翻斗车", "thumb": "/a3dres/models/fandouche/thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/fandouche/", "objPath": "fandouche.obj", "mtlPath": "fandouche.mtl" }, "type": "model" },
{ "key": "shovel", "displayName": "铁锹", "thumb": "/a3dres/models/stuffs/tieqiao-thumb.png", "descr": "", "objParam": { "baseUrl": "/a3dres/models/stuffs/", "objPath": "tieqiao.obj", "mtlPath": "tieqiao.mtl" }, "type": "model" }
]},
{ "key": "light-tool", "displayName": "光源工具", "children": [
{ "key": "PointLight", "displayName": "点光源", "thumb": "/a3dres/images/light/point-light.png", "descr": "照射所有方向的光源", "objParam": null, "type": "light" },
{ "key": "RectAreaLight", "displayName": "面光源", "thumb": "/a3dres/images/light/area-light.png", "descr": "平面光光源", "objParam": null, "type": "light" },
{ "key": "AmbientLight", "displayName": "环境光", "thumb": "/a3dres/images/light/ambient-light.png", "descr": "影响整个场景的光源", "objParam": null, "type": "light" },
{ "key": "DirectionalLight", "displayName": "平行光", "thumb": "/a3dres/images/light/directional-light.png", "descr": "模拟远处类似太阳的光源", "objParam": null, "type": "light" },
{ "key": "SpotLight", "displayName": "聚光灯", "thumb": "/a3dres/images/light/spot-light.png", "descr": "具有锥形效果的光源", "objParam": null, "type": "light" },
{ "key": "HemisphereLight", "displayName": "半球光", "thumb": "/a3dres/images/light/hemisphere-light.png", "descr": "半球光光源", "objParam": null, "type": "light" }
]},
{ "key": "abstract-tool", "displayName": "抽象物体", "children": [
{ "key": "boxscan", "displayName": "box扫光", "thumb": "/a3dres/images/abstract/box-scan.png", "descr": "box 扫光", "objParam": null, "type": "shader" },
{ "key": "circlescan", "displayName": "圆环", "thumb": "/a3dres/images/abstract/circle-scan.png", "descr": "圆环", "objParam": null, "type": "shader" },
{ "key": "radarscan", "displayName": "雷达扫描", "thumb": "/a3dres/images/abstract/radar-scan.png", "descr": "雷达扫描", "objParam": null, "type": "shader" },
{ "key": "wavescan", "displayName": "光波", "thumb": "/a3dres/images/abstract/wave-scan.png", "descr": "光波", "objParam": null, "type": "shader" },
{ "key": "arrow", "displayName": "单箭头", "thumb": "/a3dres/images/abstract/arrow.png", "descr": "单箭头", "objParam": null, "type": "shader" },
{ "key": "dbarrow", "displayName": "双箭头", "thumb": "/a3dres/images/abstract/dbarrow.png", "descr": "双箭头", "objParam": null, "type": "shader" }
]}
]},
{ "key": "particle-effects", "icon": "particle-effects", "displayName": "粒子特效", "children": [
{ "key": "fire-particles", "displayName": "火焰", "children": [
{ "key": "fire", "displayName": "火焰", "thumb": "/a3dres/images/particle/fire.png", "descr": "火焰", "objParam": null, "type": "particle" },
{ "key": "flame-fire", "displayName": "烈焰", "thumb": "/a3dres/images/particle/flame-fire.png", "descr": "烈焰", "objParam": null, "type": "particle" }
]},
{ "key": "rain-particles", "displayName": "降雨", "children": [
{ "key": "rain", "displayName": "降雨", "thumb": "/a3dres/images/particle/rain.png", "descr": "降雨", "objParam": null, "type": "particle" }
]},
{ "key": "snow-particles", "displayName": "降雪", "children": [
{ "key": "snow", "displayName": "降雪", "thumb": "/a3dres/images/particle/snow.png", "descr": "降雪", "objParam": null, "type": "particle" }
]},
{ "key": "water-particles", "displayName": "喷水", "children": [
{ "key": "water", "displayName": "喷水", "thumb": "/a3dres/images/particle/water.png", "descr": "喷水", "objParam": null, "type": "particle" }
]},
{ "key": "smoke-particles", "displayName": "烟雾", "children": [
{ "key": "smoke", "displayName": "浓烟", "thumb": "/a3dres/images/particle/smoke.png", "descr": "浓烟", "objParam": null, "type": "particle" }
]}
]},
{ "key": "material", "icon": "material", "displayName": "材质", "children": [
{ "key": "brick", "displayName": "砖块", "children": [
{ "key": "brck01L", "displayName": "砖块", "thumb": "/a3dres/texture/material/brick/brck01L.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "brick-old1", "displayName": "砖块", "thumb": "/a3dres/texture/material/brick/brick-old1.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "brick-old-256", "displayName": "砖块", "thumb": "/a3dres/texture/material/brick/brick-old-256.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "bricks_ancient", "displayName": "砖块", "thumb": "/a3dres/texture/material/brick/bricks_ancient.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "bricks_c", "displayName": "砖块", "thumb": "/a3dres/texture/material/brick/bricks_c.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "bricks_natural2", "displayName": "砖块", "thumb": "/a3dres/texture/material/brick/bricks_natural2.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "flag08L", "displayName": "砖块", "thumb": "/a3dres/texture/material/brick/flag08L.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "flag18L", "displayName": "砖块", "thumb": "/a3dres/texture/material/brick/flag18L.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "pub_kork01", "displayName": "砖块", "thumb": "/a3dres/texture/material/brick/pub_kork01.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "pub_kork3", "displayName": "砖块", "thumb": "/a3dres/texture/material/brick/pub_kork3.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "rock-001m", "displayName": "砖块", "thumb": "/a3dres/texture/material/brick/rock-001m.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "rock-grey2-128", "displayName": "砖块", "thumb": "/a3dres/texture/material/brick/rock-grey2-128.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "rock-grey2-256", "displayName": "砖块", "thumb": "/a3dres/texture/material/brick/rock-grey2-256.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "roock02br", "displayName": "砖块", "thumb": "/a3dres/texture/material/brick/roock02br.jpg", "descr": "", "objParam": null, "type": "texture" }
]},
{ "key": "carpets", "displayName": "地毯", "children": [
{ "key": "001_ocean", "displayName": "地毯", "thumb": "/a3dres/texture/material/carpets/001_ocean.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "002_charbon", "displayName": "地毯", "thumb": "/a3dres/texture/material/carpets/002_charbon.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "003_gmoyen", "displayName": "地毯", "thumb": "/a3dres/texture/material/carpets/003_gmoyen.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "005_jade", "displayName": "地毯", "thumb": "/a3dres/texture/material/carpets/005_jade.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "018_comm", "displayName": "地毯", "thumb": "/a3dres/texture/material/carpets/018_comm.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "019_comm", "displayName": "地毯", "thumb": "/a3dres/texture/material/carpets/019_comm.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "020_comm", "displayName": "地毯", "thumb": "/a3dres/texture/material/carpets/020_comm.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "022_canyon", "displayName": "地毯", "thumb": "/a3dres/texture/material/carpets/022_canyon.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "023_vobis", "displayName": "地毯", "thumb": "/a3dres/texture/material/carpets/023_vobis.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "025_montagne", "displayName": "地毯", "thumb": "/a3dres/texture/material/carpets/025_montagne.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "027_bchic", "displayName": "地毯", "thumb": "/a3dres/texture/material/carpets/027_bchic.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "061_millesime", "displayName": "地毯", "thumb": "/a3dres/texture/material/carpets/061_millesime.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "063_prune", "displayName": "地毯", "thumb": "/a3dres/texture/material/carpets/063_prune.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "068_denim", "displayName": "地毯", "thumb": "/a3dres/texture/material/carpets/068_denim.jpg", "descr": "", "objParam": null, "type": "texture" }
]},
{ "key": "envEffects", "displayName": "金属", "children": [
{ "key": "env_blue", "displayName": "金属", "thumb": "/a3dres/texture/material/envEffects/env_blue.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "env_gold", "displayName": "金属", "thumb": "/a3dres/texture/material/envEffects/env_gold.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "env_gold2", "displayName": "金属", "thumb": "/a3dres/texture/material/envEffects/env_gold2.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "env_metal1", "displayName": "金属", "thumb": "/a3dres/texture/material/envEffects/env_metal1.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "env_metal2", "displayName": "金属", "thumb": "/a3dres/texture/material/envEffects/env_metal2.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "env_metal3", "displayName": "金属", "thumb": "/a3dres/texture/material/envEffects/env_metal3.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "env_polonium", "displayName": "金属", "thumb": "/a3dres/texture/material/envEffects/env_polonium.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "env_polonium2", "displayName": "金属", "thumb": "/a3dres/texture/material/envEffects/env_polonium2.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "env_polonium3", "displayName": "金属", "thumb": "/a3dres/texture/material/envEffects/env_polonium3.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "env_street_probe", "displayName": "金属", "thumb": "/a3dres/texture/material/envEffects/env_street_probe.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "env_water", "displayName": "金属", "thumb": "/a3dres/texture/material/envEffects/env_water.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "env_water2", "displayName": "金属", "thumb": "/a3dres/texture/material/envEffects/env_water2.png", "descr": "", "objParam": null, "type": "texture" }
]},
{ "key": "environment", "displayName": "环境", "children": [
{ "key": "dirtysand", "displayName": "环境", "thumb": "/a3dres/texture/material/environment/dirtysand.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "fire", "displayName": "环境", "thumb": "/a3dres/texture/material/environment/fire.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "golffairway1", "displayName": "环境", "thumb": "/a3dres/texture/material/environment/golffairway1.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "grass10", "displayName": "环境", "thumb": "/a3dres/texture/material/environment/grass10.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "grass11", "displayName": "环境", "thumb": "/a3dres/texture/material/environment/grass11.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "grass13", "displayName": "环境", "thumb": "/a3dres/texture/material/environment/grass13.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "grass4", "displayName": "环境", "thumb": "/a3dres/texture/material/environment/grass4.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "grass6", "displayName": "环境", "thumb": "/a3dres/texture/material/environment/grass6.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "grass8", "displayName": "环境", "thumb": "/a3dres/texture/material/environment/grass8.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "grass9", "displayName": "环境", "thumb": "/a3dres/texture/material/environment/grass9.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "grnd04L", "displayName": "环境", "thumb": "/a3dres/texture/material/environment/grnd04L.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "lawn1", "displayName": "环境", "thumb": "/a3dres/texture/material/environment/lawn1.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "ston01L", "displayName": "环境", "thumb": "/a3dres/texture/material/environment/ston01L.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "straw3", "displayName": "环境", "thumb": "/a3dres/texture/material/environment/straw3.jpg", "descr": "", "objParam": null, "type": "texture" }
]},
{ "key": "laminate", "displayName": "地板", "children": [
{ "key": "aples-lam", "displayName": "地板", "thumb": "/a3dres/texture/material/laminate/aples-lam.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "bereza-lam", "displayName": "地板", "thumb": "/a3dres/texture/material/laminate/bereza-lam.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "buk-bovariya-lam", "displayName": "地板", "thumb": "/a3dres/texture/material/laminate/buk-bovariya-lam.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "buk-mon-lam", "displayName": "地板", "thumb": "/a3dres/texture/material/laminate/buk-mon-lam.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "buk-sv-lam2", "displayName": "地板", "thumb": "/a3dres/texture/material/laminate/buk-sv-lam2.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "dub-lam005", "displayName": "地板", "thumb": "/a3dres/texture/material/laminate/dub-lam005.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "dub-lam01", "displayName": "地板", "thumb": "/a3dres/texture/material/laminate/dub-lam01.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "dub-lam03", "displayName": "地板", "thumb": "/a3dres/texture/material/laminate/dub-lam03.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "dub-lam04", "displayName": "地板", "thumb": "/a3dres/texture/material/laminate/dub-lam04.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "klen-lam", "displayName": "地板", "thumb": "/a3dres/texture/material/laminate/klen-lam.jpg", "descr": "", "objParam": null, "type": "texture" }
]},
{ "key": "trees&Bushes", "displayName": "树木和灌木丛", "children": [
{ "key": "birch", "displayName": "树木", "thumb": "/a3dres/texture/material/trees&Bushes/birch.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "birch_2", "displayName": "树木", "thumb": "/a3dres/texture/material/trees&Bushes/birch_2.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "grass2", "displayName": "树木", "thumb": "/a3dres/texture/material/trees&Bushes/grass2.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "leaves15", "displayName": "树木", "thumb": "/a3dres/texture/material/trees&Bushes/leaves15.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "leaves16", "displayName": "树木", "thumb": "/a3dres/texture/material/trees&Bushes/leaves16.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "leaves17", "displayName": "树木", "thumb": "/a3dres/texture/material/trees&Bushes/leaves17.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "tree_10", "displayName": "树木", "thumb": "/a3dres/texture/material/trees&Bushes/tree_10.png", "descr": "", "objParam": null, "type": "texture" },
{ "key": "tree_11", "displayName": "树木", "thumb": "/a3dres/texture/material/trees&Bushes/tree_11.png", "descr": "", "objParam": null, "type": "texture" }
]},
{ "key": "wood", "displayName": "木头", "children": [
{ "key": "alder-mountain", "displayName": "木头", "thumb": "/a3dres/texture/material/wood/alder-mountain.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "alder-natural", "displayName": "木头", "thumb": "/a3dres/texture/material/wood/alder-natural.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "alder-sky", "displayName": "木头", "thumb": "/a3dres/texture/material/wood/alder-sky.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "apple-bright", "displayName": "木头", "thumb": "/a3dres/texture/material/wood/apple-bright.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "apple-dark", "displayName": "木头", "thumb": "/a3dres/texture/material/wood/apple-dark.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "apple-golden", "displayName": "木头", "thumb": "/a3dres/texture/material/wood/apple-golden.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "archiBase_beech", "displayName": "木头", "thumb": "/a3dres/texture/material/wood/archiBase_beech.jpg", "descr": "", "objParam": null, "type": "texture" },
{ "key": "archiBase_mahogany", "displayName": "木头", "thumb": "/a3dres/texture/material/wood/archiBase_mahogany.jpg", "descr": "", "objParam": null, "type": "texture" }
]}
]}
],
"result": "SUCCESS"
}
# 目录说明
`index.json` 存放的是所有的元素控件配置信息
`baseScene.json` 存放的是基础场景配置信息
...@@ -60,6 +60,7 @@ const AsyncDifferentiate = props => <AsyncLoader load={import('./../view/bizview ...@@ -60,6 +60,7 @@ const AsyncDifferentiate = props => <AsyncLoader load={import('./../view/bizview
const AsyncAlarmVideoMonitor = props => <AsyncLoader load={import('./../view/bizview/alarmVideoMonitor')} componentProps={props} />; const AsyncAlarmVideoMonitor = props => <AsyncLoader load={import('./../view/bizview/alarmVideoMonitor')} componentProps={props} />;
const AsyncAlarmTestView = props => <AsyncLoader load={import('./../view/bizview/alarm')} componentProps={props} />; const AsyncAlarmTestView = props => <AsyncLoader load={import('./../view/bizview/alarm')} componentProps={props} />;
const AsyncCusVizLib = props => <AsyncLoader load={import('./../view/planMgmt/cusVizLib')} componentProps={props} />; const AsyncCusVizLib = props => <AsyncLoader load={import('./../view/planMgmt/cusVizLib')} componentProps={props} />;
const AsyncGraph3DModel = props => <AsyncLoader load={import('amos-iot-3dgraph/lib/view/modelMgmt')} componentProps={props} />;
const Routes = { const Routes = {
...@@ -116,7 +117,8 @@ const Routes = { ...@@ -116,7 +117,8 @@ const Routes = {
differentiate: AsyncDifferentiate, differentiate: AsyncDifferentiate,
alarmVideoMonitor: AsyncAlarmVideoMonitor, alarmVideoMonitor: AsyncAlarmVideoMonitor,
alarmTest: AsyncAlarmTestView, alarmTest: AsyncAlarmTestView,
vizlib: AsyncCusVizLib vizlib: AsyncCusVizLib,
modelManage: AsyncGraph3DModel
}; };
const pageCompontent = key => { const pageCompontent = key => {
......
...@@ -4,7 +4,6 @@ import notFound from 'amos-security/lib/routes/notfound'; ...@@ -4,7 +4,6 @@ import notFound from 'amos-security/lib/routes/notfound';
import redirect from 'amos-security/lib/routes/notfound/redirect'; import redirect from 'amos-security/lib/routes/notfound/redirect';
import signUp, { signupRouters } from 'amos-security/lib/routes/signUp'; import signUp, { signupRouters } from 'amos-security/lib/routes/signUp';
import routerFilter, { checkLogin } from 'amos-security/lib/routes/validateRouter'; import routerFilter, { checkLogin } from 'amos-security/lib/routes/validateRouter';
import PublishView from './../view/planMgmt/view';
import AutoLogin from './../view/autoLogin/AutoLogin'; import AutoLogin from './../view/autoLogin/AutoLogin';
import calcRoutes from './calcRoutes'; import calcRoutes from './calcRoutes';
import addCustomRoutes, { customRoutes, planChildrenRoutes } from './customRoutes'; import addCustomRoutes, { customRoutes, planChildrenRoutes } from './customRoutes';
...@@ -17,10 +16,10 @@ import pageCompontent, { ...@@ -17,10 +16,10 @@ import pageCompontent, {
RegionList RegionList
} from './view'; } from './view';
import Iot3DGraphBiz from './../view/planMgmt/iot3DGraph'; import Iot3DGraphBiz from './../view/planMgmt/iot3DGraph';
import ShareTextPlan from './../view/planMgmt/view/ShareTextPlan'; import ShareTextPlan from './../view/planMgmt/view/ShareTextPlan';
import PubView from './../view/planMgmt/view/pubview';
import TextPlan from './../view/planMgmt/view/TextPlan'; import TextPlan from './../view/planMgmt/view/TextPlan';
import PublishApp from 'amos-iot-3dgraph/lib/view/pubview';
import ModelEdit from 'amos-iot-3dgraph/lib/view/modelMgmt/edit/ModelEdit';
const groups = [ const groups = [
'main', 'biz', 'console', 'ruleConfig' 'main', 'biz', 'console', 'ruleConfig'
...@@ -32,15 +31,9 @@ const injectRoutes = menus => { ...@@ -32,15 +31,9 @@ const injectRoutes = menus => {
const bizChilds = addCustomRoutes(biz); const bizChilds = addCustomRoutes(biz);
const consoleChilds = addCustomRoutes(consoleRoutes); const consoleChilds = addCustomRoutes(consoleRoutes);
const routes = [ const routes = [
{ { path: 'viz3d/:subjectId', component: Iot3DGraphBiz },
path: 'viz3d/:subjectId', { path: 'viz3dpub', component: PublishApp },
component: Iot3DGraphBiz { path: 'models/:modelId', component: ModelEdit },
},
// {
// path: 'viz3dpub',
// component: PublishView,
// childRoutes: [...customRoutesPubView]
// },
{ path: 'login', component: Login }, { path: 'login', component: Login },
{ path: 'autologin', component: AutoLogin }, { path: 'autologin', component: AutoLogin },
{ path: 'region', component: RegionList }, // 区域选择 { path: 'region', component: RegionList }, // 区域选择
......
...@@ -56,6 +56,7 @@ import RealTimeMonitor from './../view/morphic'; ...@@ -56,6 +56,7 @@ import RealTimeMonitor from './../view/morphic';
import PublishView from './../view/planMgmt/view'; import PublishView from './../view/planMgmt/view';
import ModelManage from './../view/planMgmt/modelManage'; import ModelManage from './../view/planMgmt/modelManage';
import LeaderStruct from './../view/planMgmt/view/leaderStruct'; import LeaderStruct from './../view/planMgmt/view/leaderStruct';
import Graph3DModel from 'amos-iot-3dgraph/lib/view/modelMgmt';
const Routes = { const Routes = {
// 添加 rules 路由 // 添加 rules 路由
......
...@@ -8,3 +8,7 @@ export const getOnlineWeather = (cityKey) => { ...@@ -8,3 +8,7 @@ export const getOnlineWeather = (cityKey) => {
const url = `http://wthrcdn.etouch.cn/weather_mini?city=${cityKey}`; const url = `http://wthrcdn.etouch.cn/weather_mini?city=${cityKey}`;
return singleFetch(url); return singleFetch(url);
}; };
export const conmmonGetService =(url) =>{
return singleFetch(url);
}
...@@ -161,7 +161,7 @@ class RiskSourceModel extends Component { ...@@ -161,7 +161,7 @@ class RiskSourceModel extends Component {
<FormItem label={<span>参考编号</span>} field="code" {...formItemLayout}> <FormItem label={<span>参考编号</span>} field="code" {...formItemLayout}>
<Input disabled={disabled} className="risk-model-input" required value={form.code} onChange={e => this.onSelectChange('code', e.target.value)} /> <Input disabled={disabled} className="risk-model-input" required value={form.code} onChange={e => this.onSelectChange('code', e.target.value)} />
</FormItem> </FormItem>
{ (form.riskLevelId !== 0) && { (form.riskLevelId !== 0 && isEdit) &&
<FormItem label={<span>风险等级</span>} field="riskLevelId" {...formItemLayout}> <FormItem label={<span>风险等级</span>} field="riskLevelId" {...formItemLayout}>
<span style={{ lineHeight: '32px' }}>{this.getriskLevel(riskLevelData, form.riskLevelId)}</span> <span style={{ lineHeight: '32px' }}>{this.getriskLevel(riskLevelData, form.riskLevelId)}</span>
</FormItem> </FormItem>
......
import React, { Component } from 'react'; import React, { Component } from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { deepCopy } from 'amos-tool'; import { deepCopy } from 'amos-tool';
import A3DDesigner, { r3d, Connect, DESIGNER_CONSTS } from 'amos-3d/lib/designer'; import A3DDesigner, { r3d, Connect, DESIGNER_CONSTS,EVENT_CONSTS } from 'amos-3d/lib/designer';
import { A3DUtil } from 'amos-3d/lib/threeTools'; import { A3DUtil } from 'amos-3d/lib/threeTools';
import WorkerObjContent from 'amos-3d/lib/worker/WorkerObjContent'; import WorkerObjContent from 'amos-3d/lib/worker/WorkerObjContent';
import { BaseObjHelper } from 'base-r3d/lib/factory'; import { BaseObjHelper } from 'base-r3d/lib/factory';
import { ELEMENT_TYPE } from 'amos-iot-3dgraph/lib/view/pubview/../design/conf'; import { ELEMENT_TYPE } from 'amos-iot-3dgraph/lib/view/pubview/../design/conf';
import { imageStyles } from 'amos-iot-3dgraph/lib/view/settingpanel/scenery/conf';
import imgStatic from 'amos-iot-3dgraph/lib/consts/imgStatic';
import { Button, Modal, Row, Col } from 'amos-framework'; import { Button, Modal, Row, Col } from 'amos-framework';
import { PubSub } from 'ray-eventpool'; import { PubSub } from 'ray-eventpool';
import { eventTopics } from './../../../3dview/consts'; import { eventTopics } from './../../../3dview/consts';
import { conmmonGetService } from './../../../../services/commonServices';
import PlayTaskTabs from './taskTabs'; import PlayTaskTabs from './taskTabs';
import Play from './play'; import Play from './play';
const { resizeConnect } = Connect; const { resizeConnect } = Connect;
const { Tools } = A3DUtil; const { Tools } = A3DUtil;
const { ANIMATION_CONSTS } = DESIGNER_CONSTS; const { ANIMATION_CONSTS } = DESIGNER_CONSTS;
const { EVENT_TYPE_CORE } = EVENT_CONSTS;
/** /**
* 3d 执行器 * 3d 执行器
...@@ -35,9 +39,9 @@ class StageActuator extends Component { ...@@ -35,9 +39,9 @@ class StageActuator extends Component {
modelModal: false,//详情弹框 modelModal: false,//详情弹框
modalContent: '', modalContent: '',
playing: false, //播放状态 playing: false, //播放状态
detailData: '', detailData: ''
objs: [],//特效objs
}; };
this.objs = [];//特效objs
} }
componentDidMount() { componentDidMount() {
...@@ -241,121 +245,91 @@ class StageActuator extends Component { ...@@ -241,121 +245,91 @@ class StageActuator extends Component {
this.cameraFactory = cameraFactory; this.cameraFactory = cameraFactory;
this.rendererFactory = stagePilot.rendererFactory; this.rendererFactory = stagePilot.rendererFactory;
this.r3d = r3d; this.r3d = r3d;
// 设置 UI
//单击 // this.objAnchorHelper = new ObjAnchorHelper({
this.r3d.on('click', (evt) => { // r3d,
console.log('click'); // cameraFactory,
if (evt.object && evt.object.type === 'Mesh') { // sceneFactory
const realObj = evt.object.parent; // });
const userData = realObj.userData; // 鼠标移入
this.r3d.on(EVENT_TYPE_CORE.MouseEnter, evt => {
if(userData && userData.dataConfig && userData.dataConfig.dataDetailUrl){ console.log(evt);
fetch(userData.dataConfig.dataDetailUrl) // if (evt.object && evt.object._boh){
.then(response => response.json()) // evt.object._boh.style.color = 0xff00ff;
.then(data => this.setState({ modelModal: true , detailData: data.dataList})); // }
}
if(userData.bubbleConfig && userData.bubbleConfig.displayMode == 'click'){
//该模型之前顶牌展示状态
userData.clickShow = userData.clickShow == undefined ? true : !userData.clickShow;
if(userData.clickShow){//判断之前是否显示
this.state.objs.find(e => e.uuid == realObj.uuid).baseObjHelper.title = userData.displayName || null;
}else{
this.state.objs.find(e => e.uuid == realObj.uuid).baseObjHelper.title = null;
}
}
}
});
// 双击事件
this.r3d.on('dblclick', (evt) => {
// console.log('dblclick');
}); });
// 鼠标移出
// 鼠标移入事件 this.r3d.on(EVENT_TYPE_CORE.MouseLeave, evt => {
this.r3d.on('mouseover', (evt) => { console.log(evt);
if (evt.object && evt.object.type === 'Mesh') { // if (evt.object && evt.object._boh){
const realObj = evt.object.parent; // evt.object._boh.style.color = null;
const userData = realObj.userData; // }
//清除其他
this.state.objs.forEach(o => {
if(o.userData.bubbleConfig && o.userData.bubbleConfig.displayMode == 'hover'){
o.baseObjHelper.title = null;
}
}); });
if(userData.bubbleConfig && userData.bubbleConfig.displayMode == 'hover'){ //单击
this.state.objs.find(e => e.uuid == realObj.uuid).baseObjHelper.title = userData.displayName || null; this.r3d.on(EVENT_TYPE_CORE.Click, (evt) => {
} if (evt.button === 0 && evt.object && evt.object.type === 'Mesh') {
const userData = evt.object.parent.userData;
if(userData && userData.dataConfig && userData.dataConfig.dataDetailUrl){
conmmonGetService(userData.dataConfig.dataDetailUrl).then(
data => {
this.setState({ modelModal: true , detailData: data.dataList});
},
error =>{
console.error(userData.dataConfig.dataDetailUrl + '请求元素详情失败');
} }
}); );
// 鼠标移出事件
this.r3d.on('mouseout', (evt) => {
// console.log('mouseout');
if (evt.object && evt.object.type === 'Mesh') {
const realObj = evt.object.parent;
const userData = realObj.userData;
if(userData.bubbleConfig && userData.bubbleConfig.displayMode == 'hover'){
this.state.objs.find(e => e.uuid == realObj.uuid).baseObjHelper.title = null;
} }
} }
}); });
}; };
afterRender = () => {
}
handleModelParserData = (parser, fmtData) => { handleModelParserData = (parser, fmtData) => {
// 将 eid 绑定到 parser 的 node 上 // 将 fmtData 绑定到 parser 的 node.userData 上
// Object.assign(parser.obj.userData, { eid: fmtData.eid, displayName: fmtData.displayName }) // Object.assign(parser.obj.userData, fmtData)
// or parser.bindUserData(fmtData);
parser.bindUserData(deepCopy(fmtData)); const { sceneryConfig: { visible, position, imgUrlKey } = {},displayName } = fmtData;
const image = imageStyles.filter(image => image.key === imgUrlKey);
//为模型添加顶牌属性 const imageUrl = image.length > 0 ? image[0].imgUrl : imgStatic.defaultScenery ;
let obj = parser.obj; if (visible) {
const boh = new BaseObjHelper({ obj }); parser.objHelper.titleConfig = {
obj.baseObjHelper = boh;
obj.baseObjHelper.titleConfig = {
// 顶牌平面参数
planeOptions: { planeOptions: {
...obj.userData.displayName,
width: 256 * 0.1, width: 256 * 0.1,
height: 128 * 0.1, height: 128 * 0.1,
position:{ x: 0, y: 30, z: 0 }, // 顶牌相对于 parser 模型的位置
position,
// 是否双面
doubleSide: true
}, },
canvasOptions: { canvasOptions: {
fillStyle: 'rgb(51, 51, 51)', fillStyle: 'rgb(51, 51, 51)',
font: '32px sans-serif', font: '32px sans-serif',
textBaseline: 'middle', textBaseline: 'middle'
}, },
// 设置顶牌大小及图片路径
imgWidth: 256, imgWidth: 256,
imgHeight: 128, imgHeight: 128,
// 设置顶牌 图片路径 image: imageUrl
image: `/src/assets/planMgmt/center.png`
}; };
if(obj.userData.displayName && obj.userData.bubbleConfig && obj.userData.bubbleConfig.displayMode == 'show'){ parser.objHelper.title = displayName;
obj.baseObjHelper.title = obj.userData.displayName;
}else{
obj.baseObjHelper.title = null;
} }
this.state.objs.push(obj); this.objs.push(parser.obj);
} }
/** 处理所有的模型解析完毕之后 */ /** 处理所有的模型解析完毕之后 */
handleModelParserDone = (modelParser) => { handleModelParserDone = (modelParser) => {
const { content } = this.props; const { content } = this.props;
// const modelExistAttach = content.filter(userData => userData.attachments && userData.attachments.length > 0 ); const modelExistAttach = content.filter(userData => userData.attachments && userData.attachments.length > 0 );
// 改变模型关联关系 // 改变模型关联关系
// modelExistAttach.forEach(userData =>{ modelExistAttach.forEach(userData =>{
// const parentObj = modelParser.get(userData.eid); const parentObj = modelParser.get(userData.eid);
// userData.attachments.forEach(eid=>{ userData.attachments.forEach(eid=>{
// const attachModel = modelParser.get(eid); const attachModel = modelParser.get(eid);
// attachModel && parentObj.attach(attachModel); if (attachModel){
// }); // attachModel.node.position.set(0,10,0);
// }); parentObj.attach(attachModel);
}
});
});
} }
//model start //model start
...@@ -432,6 +406,7 @@ class StageActuator extends Component { ...@@ -432,6 +406,7 @@ class StageActuator extends Component {
baseObjs={baseObjs} baseObjs={baseObjs}
ref={node => this.a3dRef = node} ref={node => this.a3dRef = node}
disabledEdit disabledEdit
enableObjOutline
enablePen enablePen
penProps={penProps} penProps={penProps}
enableParticles enableParticles
......
...@@ -21,8 +21,8 @@ class taskTabs extends Component { ...@@ -21,8 +21,8 @@ class taskTabs extends Component {
this.state = { this.state = {
taskTabsShow: true, taskTabsShow: true,
tabs:[ tabs:[
{key:1, type:'person', icon:'person', models:[]}, {key:1, type:'human', icon:'person', models:[]},
{key:2, type:'car', icon:'car', models:[]} {key:2, type:'vehicle', icon:'car', models:[]}
], ],
activeKey: '', activeKey: '',
}; };
...@@ -31,8 +31,8 @@ class taskTabs extends Component { ...@@ -31,8 +31,8 @@ class taskTabs extends Component {
componentDidMount(){ componentDidMount(){
let { tabs } = this.state; let { tabs } = this.state;
let models = this.props.content || []; let models = this.props.content || [];
tabs[0].models = models.filter(e => e.key.indexOf('person') != -1); tabs[0].models = models.filter(e => e.stuffType === 'human');
tabs[1].models = models.filter(e => e.key.indexOf('car') != -1); tabs[1].models = models.filter(e => e.stuffType === 'vehicle');
this.setState({ tabs }); this.setState({ tabs });
this.tabsPubsub = PubSub.subscribe(eventTopics.plan_task_list,function(topic,message){ this.tabsPubsub = PubSub.subscribe(eventTopics.plan_task_list,function(topic,message){
...@@ -49,8 +49,8 @@ class taskTabs extends Component { ...@@ -49,8 +49,8 @@ class taskTabs extends Component {
if (!fastDeepEqual(prevProps.content, this.props.content)){ if (!fastDeepEqual(prevProps.content, this.props.content)){
let { tabs } = this.state; let { tabs } = this.state;
let models = this.props.content|| []; let models = this.props.content|| [];
tabs[0].models = models.filter(e => e.key.indexOf('person') != -1); tabs[0].models = models.filter(e => e.stuffType === 'human');
tabs[1].models = models.filter(e => e.key.indexOf('car') != -1); tabs[1].models = models.filter(e => e.stuffType === 'vehicle');
this.setState({ tabs }); this.setState({ tabs });
} }
} }
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
{ "objName": "ground_01.obj", "mtlName": "ground_01.mtl", "modelLevel": "Park" }, { "objName": "ground_01.obj", "mtlName": "ground_01.mtl", "modelLevel": "Park" },
{ "objName": "ground_02.obj", "mtlName": "ground_02.mtl", "modelLevel": "Park"}, { "objName": "ground_02.obj", "mtlName": "ground_02.mtl", "modelLevel": "Park"},
{ "objName": "guandao_02.obj", "mtlName": "guandao_02.mtl", "modelLevel": "Park" }, { "objName": "guandao_02.obj", "mtlName": "guandao_02.mtl", "modelLevel": "Park" },
{ "objName": "gis.obj", "mtlName": "gis.mtl", "modelLevel": "Building" }, { "objName": "gis.obj", "mtlName": "gis.mtl", "modelLevel": "Building" },
{ "objName": "gis_guandao_01.obj", "mtlName": "gis_guandao_01.mtl", "modelLevel": "Building" }, { "objName": "gis_guandao_01.obj", "mtlName": "gis_guandao_01.mtl", "modelLevel": "Building" },
{ "objName": "gis_guandao_02.obj", "mtlName": "gis_guandao_02.mtl", "modelLevel": "Building" }, { "objName": "gis_guandao_02.obj", "mtlName": "gis_guandao_02.mtl", "modelLevel": "Building" },
...@@ -29,13 +28,9 @@ ...@@ -29,13 +28,9 @@
{ "objName": "gis_guandao_14.obj", "mtlName": "gis_guandao_14.mtl", "modelLevel": "Building" }, { "objName": "gis_guandao_14.obj", "mtlName": "gis_guandao_14.mtl", "modelLevel": "Building" },
{ "objName": "gis_guandao_15.obj", "mtlName": "gis_guandao_15.mtl", "modelLevel": "Building" }, { "objName": "gis_guandao_15.obj", "mtlName": "gis_guandao_15.mtl", "modelLevel": "Building" },
{ "objName": "gis_guandao_16.obj", "mtlName": "gis_guandao_16.mtl", "modelLevel": "Building" }, { "objName": "gis_guandao_16.obj", "mtlName": "gis_guandao_16.mtl", "modelLevel": "Building" },
{ "objName": "szn_00.obj", "mtlName": "szn_00.mtl", "modelLevel": "Building" }, { "objName": "szn_00.obj", "mtlName": "szn_00.mtl", "modelLevel": "Building" },
{ "objName": "szn_01.obj", "mtlName": "szn_01.mtl", "modelLevel": "Building" }, { "objName": "szn_01.obj", "mtlName": "szn_01.mtl", "modelLevel": "Building" },
{ "objName": "szn_02.obj", "mtlName": "szn_02.mtl", "modelLevel": "Building" }, { "objName": "szn_02.obj", "mtlName": "szn_02.mtl", "modelLevel": "Building" },
{ "objName": "szn_03.obj", "mtlName": "szn_03.mtl", "modelLevel": "Building" },
{ "objName": "szn_04.obj", "mtlName": "szn_04.mtl", "modelLevel": "Building" }, { "objName": "szn_04.obj", "mtlName": "szn_04.mtl", "modelLevel": "Building" },
{ "objName": "szn_05.obj", "mtlName": "szn_05.mtl", "modelLevel": "Building" }, { "objName": "szn_05.obj", "mtlName": "szn_05.mtl", "modelLevel": "Building" },
{ "objName": "szn_06.obj", "mtlName": "szn_06.mtl", "modelLevel": "Building" }, { "objName": "szn_06.obj", "mtlName": "szn_06.mtl", "modelLevel": "Building" },
...@@ -49,24 +44,6 @@ ...@@ -49,24 +44,6 @@
{ "objName": "szn_22.obj", "mtlName": "szn_22.mtl", "modelLevel": "Building" }, { "objName": "szn_22.obj", "mtlName": "szn_22.mtl", "modelLevel": "Building" },
{ "objName": "szn_23.obj", "mtlName": "szn_23.mtl", "modelLevel": "Building" }, { "objName": "szn_23.obj", "mtlName": "szn_23.mtl", "modelLevel": "Building" },
{ "objName": "szn_24.obj", "mtlName": "szn_24.mtl", "modelLevel": "Building" }, { "objName": "szn_24.obj", "mtlName": "szn_24.mtl", "modelLevel": "Building" },
{ "objName": "valve-hall_01.obj", "mtlName": "valve-hall_01.mtl", "modelLevel": "Building", "foreignKey": "valve-hall_01" }, { "objName": "valve-hall_01.obj", "mtlName": "valve-hall_01.mtl", "modelLevel": "Building", "foreignKey": "valve-hall_01" },
{ "objName": "valve-hall_02.obj", "mtlName": "valve-hall_02.mtl", "modelLevel": "Building", "foreignKey": "valve-hall_02" }, { "objName": "valve-hall_02.obj", "mtlName": "valve-hall_02.mtl", "modelLevel": "Building", "foreignKey": "valve-hall_02" },
{ "objName": "valve-hall_03.obj", "mtlName": "valve-hall_03.mtl", "modelLevel": "Building", "foreignKey": "valve-hall_03" } { "objName": "valve-hall_03.obj", "mtlName": "valve-hall_03.mtl", "modelLevel": "Building", "foreignKey": "valve-hall_03" }
...@@ -114,15 +91,10 @@ ...@@ -114,15 +91,10 @@
]} ]}
], ],
"asyncModels": [ "asyncModels": [
{ "objName": "hlb_01.obj", "mtlName": "hlb_01.mtl", "modelLevel": "Building" }, { "objName": "hlb_01.obj", "mtlName": "hlb_01.mtl", "modelLevel": "Building" },
{ "objName": "hlb_02.obj", "mtlName": "hlb_02.mtl", "modelLevel": "Building" }, { "objName": "hlb_02.obj", "mtlName": "hlb_02.mtl", "modelLevel": "Building" },
{ "objName": "hlb_03.obj", "mtlName": "hlb_03.mtl", "modelLevel": "Building" }, { "objName": "hlb_03.obj", "mtlName": "hlb_03.mtl", "modelLevel": "Building" },
{ "objName": "hlb_04.obj", "mtlName": "hlb_04.mtl", "modelLevel": "Building" }, { "objName": "hlb_04.obj", "mtlName": "hlb_04.mtl", "modelLevel": "Building" },
{ "objName": "fkl_01.obj", "mtlName": "fkl_01.mtl", "modelLevel": "Building" }, { "objName": "fkl_01.obj", "mtlName": "fkl_01.mtl", "modelLevel": "Building" },
{ "objName": "fkl_02.obj", "mtlName": "fkl_02.mtl", "modelLevel": "Building" }, { "objName": "fkl_02.obj", "mtlName": "fkl_02.mtl", "modelLevel": "Building" },
{ "objName": "fklt_01.obj", "mtlName": "fklt_01.mtl", "modelLevel": "Building" }, { "objName": "fklt_01.obj", "mtlName": "fklt_01.mtl", "modelLevel": "Building" },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment