|
@@ -1,3488 +0,0 @@
|
|
|
-import { threeWorld } from "@/stores/threeWorld.ts";
|
|
|
-import { courseChapter3dShow } from "@/stores/courseChapter3dShow.ts";
|
|
|
-import { ModelHtml5Audio } from "./ModelHtml5Audio.ts";
|
|
|
-
|
|
|
-/**
|
|
|
- * 根据配置的流程切换对应的3d界面逻辑
|
|
|
- */
|
|
|
-export class TypeViewEvent {
|
|
|
-
|
|
|
- // 可以被调用的 iframe 对象
|
|
|
- public objIframe : any = null;
|
|
|
-
|
|
|
- // 三维对象
|
|
|
- public ChengGuangYuanJing : any = null;
|
|
|
-
|
|
|
- // babylon 对象
|
|
|
- public BABYLON : any = null;
|
|
|
-
|
|
|
- /**
|
|
|
- * 车相机的名字
|
|
|
- */
|
|
|
- public cameraCarName = "arcRotateCameraCar";
|
|
|
-
|
|
|
- // 灯光的唯一code
|
|
|
- public lightCode = "spotLightCameraEventLightCode";
|
|
|
-
|
|
|
- // 灯光的唯一code
|
|
|
- public pointLightCode = "spotLightCameraEventPointLightCode";
|
|
|
-
|
|
|
- /**
|
|
|
- * 上一步是否显示 回调方法
|
|
|
- * open true - 显示, false - 隐藏
|
|
|
- */
|
|
|
- public tipsBtnsUpOpenEventCallback : any = null;
|
|
|
- /**
|
|
|
- * 下一步是否显示 回调方法
|
|
|
- * open true - 显示, false - 隐藏
|
|
|
- */
|
|
|
- public tipsBtnsDownOpenEventCallback : any = null;
|
|
|
-
|
|
|
- // 可拖拽旋转对象
|
|
|
- public objGizmoManagerOne : any = null;
|
|
|
- public objGizmoManagerTwo : any = null;
|
|
|
-
|
|
|
- public wearTextureNo:any = null;
|
|
|
- public wearTextureYes:any = null;
|
|
|
-
|
|
|
- // 处理高光的对象
|
|
|
- public objHighlightLayerEvent : any = null;
|
|
|
-
|
|
|
- // 播放声音的对象
|
|
|
- public objModelHtml5Audio : any = null;
|
|
|
-
|
|
|
- // 配置对应要播放的声音
|
|
|
- public musicConfig : any = {};
|
|
|
-
|
|
|
- // 每次 new 出对象则会调用这个构造函数
|
|
|
- constructor() {
|
|
|
-
|
|
|
- this.objModelHtml5Audio = new ModelHtml5Audio();
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 上一步是否显示
|
|
|
- * open true - 显示, false - 隐藏
|
|
|
- */
|
|
|
- public tipsBtnsUpOpenEvent = (open : Boolean) => {
|
|
|
- if (this.tipsBtnsUpOpenEventCallback != null && this.tipsBtnsUpOpenEventCallback != undefined) {
|
|
|
- this.tipsBtnsUpOpenEventCallback(open);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 下一步是否显示
|
|
|
- * open true - 显示, false - 隐藏
|
|
|
- */
|
|
|
- public tipsBtnsDownOpenEvent = (open : Boolean) => {
|
|
|
- if (this.tipsBtnsDownOpenEventCallback != null && this.tipsBtnsDownOpenEventCallback != undefined) {
|
|
|
- this.tipsBtnsDownOpenEventCallback(open);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- public gizmoManagerExitClose = () => {
|
|
|
- // @ts-ignore 添加帧事件
|
|
|
- let CommonVal = this.ChengGuangYuanJing.CommonVal;
|
|
|
- // 关闭所有可拖拽
|
|
|
- CommonVal.find().gizmoManagerExit();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 将车的相机更新是否可见
|
|
|
- * 因为车的相机,在下井,和不是下井,看到的是不一样的
|
|
|
- * visibilityBool true - 可见, false - 隐藏
|
|
|
- *
|
|
|
- */
|
|
|
- public arcRotateCameraCarUpdate = (visibilityBool : any) => {
|
|
|
-
|
|
|
- let BABYLON = this.BABYLON;
|
|
|
-
|
|
|
- courseChapter3dShow().show.arcRotateCameraCarUpdateOpen = visibilityBool;
|
|
|
-
|
|
|
- let objArcRotateCameraCodeGetObj = this.arcRotateCameraCodeGetObj(this.cameraCarName);
|
|
|
-
|
|
|
- if (visibilityBool == true) {
|
|
|
-
|
|
|
- // let config : any = {
|
|
|
- // viewportX : 0.5,
|
|
|
- // viewportY : 0.5,
|
|
|
- // viewportW : 0.5,
|
|
|
- // viewportH : 0.5,
|
|
|
- // }
|
|
|
-
|
|
|
- let config : any = {
|
|
|
- viewportX : 0,
|
|
|
- viewportY : 0,
|
|
|
- viewportW : 1,
|
|
|
- viewportH : 1,
|
|
|
- }
|
|
|
-
|
|
|
- // @ts-ignore 更新可视区域
|
|
|
- objArcRotateCameraCodeGetObj.viewport = new BABYLON.Viewport(
|
|
|
- parseFloat(config.viewportX),
|
|
|
- parseFloat(config.viewportY),
|
|
|
- parseFloat(config.viewportW),
|
|
|
- parseFloat(config.viewportH)
|
|
|
- );
|
|
|
-
|
|
|
-
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- let config : any = {
|
|
|
- viewportX : 0,
|
|
|
- viewportY : 0,
|
|
|
- viewportW : 0,
|
|
|
- viewportH : 0,
|
|
|
- }
|
|
|
-
|
|
|
- // @ts-ignore 更新可视区域
|
|
|
- objArcRotateCameraCodeGetObj.viewport = new BABYLON.Viewport(
|
|
|
- parseFloat(config.viewportX),
|
|
|
- parseFloat(config.viewportY),
|
|
|
- parseFloat(config.viewportW),
|
|
|
- parseFloat(config.viewportH)
|
|
|
- );
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 根据 code 获取可以操作的相机,不存在则会自己创建
|
|
|
- * code 唯一code
|
|
|
- */
|
|
|
- public arcRotateCameraCodeGetObj = (code : String) => {
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- var objCamera = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objScene.getCameraByID(code);
|
|
|
- if (objCamera != null && objCamera != undefined) {
|
|
|
- // console.log("【没有】创建相机逻辑", code);
|
|
|
- return objCamera;
|
|
|
- }
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- objCamera = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CameraArray.find().newArcRotateCamera(
|
|
|
- code,
|
|
|
- -Math.PI / 2,
|
|
|
- Math.PI / 2.2,
|
|
|
- 12,
|
|
|
- new this.BABYLON.Vector3(0, 1.0, 0),
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objScene
|
|
|
- );
|
|
|
-
|
|
|
- objCamera.id = code;
|
|
|
- objCamera.name = code;
|
|
|
-
|
|
|
- return objCamera;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 判断是否添加渲染车的相机
|
|
|
- */
|
|
|
- public arcRotateCameraCarPushEvent = () => {
|
|
|
-
|
|
|
- // @ts-ignore 【 注意这里的相机的添加顺序。 越是后面追加的,则越置顶显示 】
|
|
|
- let activeCameras = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objScene.activeCameras;
|
|
|
-
|
|
|
- for (var i = 0; i < activeCameras.length; i++) {
|
|
|
-
|
|
|
- let objActiveCameras = activeCameras[i];
|
|
|
- // 已经存在相机
|
|
|
- if (objActiveCameras.id == this.cameraCarName) {
|
|
|
-
|
|
|
- // 如果是当前不切换到当前视角的时候
|
|
|
- if (courseChapter3dShow().show.arcRotateCameraCarUpdateOpen == false) {
|
|
|
-
|
|
|
- // @ts-ignore console.log("删除第几个相机", i);
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objScene.activeCameras.splice(i, 1);
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- if (courseChapter3dShow().show.arcRotateCameraCarUpdateOpen == false) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- // 追加渲染的相机
|
|
|
- let objArcRotateCameraCodeGetObj = this.arcRotateCameraCodeGetObj(this.cameraCarName);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objScene.activeCameras.push(objArcRotateCameraCodeGetObj);
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 该方法每帧被调用,用于更新下井的时候,车相机的坐标,朝向往哪里看
|
|
|
- */
|
|
|
- public arcRotateCameraCarEvent = () => {
|
|
|
-
|
|
|
- if (courseChapter3dShow().show.arcRotateCameraCarUpdateOpen == false) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- let objArcRotateCameraCodeGetObj = this.arcRotateCameraCodeGetObj(this.cameraCarName);
|
|
|
- // @ts-ignore 角色
|
|
|
- let car = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.Role.find().objRole;
|
|
|
- // 车坐标点
|
|
|
- let positionCar = car.position;
|
|
|
- // @ts-ignore 当前选中的相机
|
|
|
- let objSceneActiveCamera = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objSceneActiveCamera;
|
|
|
-
|
|
|
- if (objSceneActiveCamera == null || objSceneActiveCamera == undefined) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- // 当前选中的坐标
|
|
|
- let objSceneActiveCameraPosition = objSceneActiveCamera.position;
|
|
|
- // console.log(
|
|
|
- // "objSceneActiveCameraPosition", objSceneActiveCameraPosition
|
|
|
- // );
|
|
|
-
|
|
|
- // 要用这个方式更新坐标逻辑 setPosition 你会发现没用
|
|
|
- objArcRotateCameraCodeGetObj.setTarget(
|
|
|
- new this.BABYLON.Vector3(
|
|
|
- parseFloat(objSceneActiveCameraPosition.x),
|
|
|
- parseFloat(objSceneActiveCameraPosition.y) + courseChapter3dShow().show.carCameraPositionYNew,
|
|
|
- parseFloat(objSceneActiveCameraPosition.z),
|
|
|
- )
|
|
|
- );
|
|
|
-
|
|
|
- // // 得到现在应该结果的旋转角度
|
|
|
- // let newAlpha = objSceneActiveCamera.alpha + courseChapter3dShow().show.carCameraAlpha;
|
|
|
- // let newBeta = objSceneActiveCamera.beta + courseChapter3dShow().show.carCameraBeta;
|
|
|
-
|
|
|
- // 控制前视还是后视
|
|
|
- let addAlpha = courseChapter3dShow().show.lookAfterOrFront == 'front' ? 0 : Math.PI;
|
|
|
-
|
|
|
- // 控制上下左右相机旋转
|
|
|
- objArcRotateCameraCodeGetObj.alpha = objSceneActiveCamera.alpha + courseChapter3dShow().show.carCameraAlphaNew + addAlpha;
|
|
|
- objArcRotateCameraCodeGetObj.beta = objSceneActiveCamera.beta + courseChapter3dShow().show.carCameraBetaNew;
|
|
|
-
|
|
|
- objArcRotateCameraCodeGetObj.radius = objSceneActiveCamera.radius;
|
|
|
-
|
|
|
- // 控制车相机的放大缩小
|
|
|
- objArcRotateCameraCodeGetObj.fov = courseChapter3dShow().show.carCameraFovNew;
|
|
|
-
|
|
|
- // 控制车的左右轮子旋转
|
|
|
- objSceneActiveCamera.alpha = Math.PI + courseChapter3dShow().show.carCameraAlphaWheelNew;
|
|
|
-
|
|
|
- // console.log(
|
|
|
- // "objSceneActiveCamera.alpha", objSceneActiveCamera.alpha
|
|
|
- // );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 获取聚光灯【类似手电筒】
|
|
|
- * code 唯一code
|
|
|
- */
|
|
|
- public getSpotLight = (code : any) => {
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- var objLight = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objScene.getLightById(code);
|
|
|
-
|
|
|
- if (objLight != null || objLight != undefined) {
|
|
|
- return objLight;
|
|
|
- }
|
|
|
-
|
|
|
- // 添加灯光【聚光灯,类似手电筒】
|
|
|
- var objLight = new this.BABYLON.SpotLight(
|
|
|
- code,
|
|
|
- new this.BABYLON.Vector3(0, 50, -10),
|
|
|
- new this.BABYLON.Vector3(0, -10, 0), Math.PI / 3,
|
|
|
- 1,
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objScene
|
|
|
- );
|
|
|
-
|
|
|
- objLight.id = code;
|
|
|
- objLight.name = code;
|
|
|
-
|
|
|
- // 对于点光和聚光灯,可以使用范围range属性,设置灯光到达目标的距离
|
|
|
- // objLight.range = 9999;
|
|
|
- // objLight.range = 10;
|
|
|
- // objLight.range = 300;
|
|
|
- objLight.range = 9999;
|
|
|
- // 强度
|
|
|
- objLight.intensity = 0;
|
|
|
- // 角度
|
|
|
- // objLight.angle = Math.PI / 3;
|
|
|
- // objLight.angle = Math.PI / 10;
|
|
|
- // objLight.angle = 0.78;
|
|
|
- // objLight.angle = 1;
|
|
|
- // objLight.angle = Math.PI / 2;
|
|
|
- // objLight.angle = Math.PI / 1.2;
|
|
|
- // objLight.angle = Math.PI / 2;
|
|
|
- // objLight.angle = Math.PI * 2;
|
|
|
- objLight.angle = Math.PI / 3;
|
|
|
-
|
|
|
- // 光的衰减
|
|
|
- objLight.exponent = 80;
|
|
|
-
|
|
|
- // // 灯光颜色【反射】
|
|
|
- // objLight.diffuse = new BABYLON.Color3(255, 255, 0);
|
|
|
- // 灯光颜色【漫射】
|
|
|
- objLight.specular = new this.BABYLON.Color3(255, 255, 255);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- // console.log(
|
|
|
- // "创建灯光" + code
|
|
|
- // );
|
|
|
-
|
|
|
- return objLight;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 更新聚光灯的参数来让该灯光是否有用
|
|
|
- * intensity 强度
|
|
|
- *
|
|
|
- */
|
|
|
- public spotLightCameraUpdateConfig = (intensity : any) => {
|
|
|
-
|
|
|
- let objLight = this.getSpotLight(this.lightCode);
|
|
|
- objLight.intensity = intensity;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 获取点光【类似灯泡】
|
|
|
- * code 唯一code
|
|
|
- */
|
|
|
- public getPointLight = (code : any) => {
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- var objLight = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objScene.getLightById(code);
|
|
|
-
|
|
|
- if (objLight != null || objLight != undefined) {
|
|
|
- return objLight;
|
|
|
- }
|
|
|
-
|
|
|
- // 添加灯光点光【类似灯泡】
|
|
|
- var objLight = new this.BABYLON.PointLight(
|
|
|
- code,
|
|
|
- new this.BABYLON.Vector3(
|
|
|
- 0,
|
|
|
- 0,
|
|
|
- 0
|
|
|
- ),
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objScene
|
|
|
- );
|
|
|
-
|
|
|
- objLight.id = code;
|
|
|
- objLight.name = code;
|
|
|
-
|
|
|
- // 对于点光和聚光灯,可以使用范围range属性,设置灯光到达目标的距离
|
|
|
- objLight.range = 100;
|
|
|
- // 强度
|
|
|
- objLight.intensity = 0;
|
|
|
- // 光的衰减
|
|
|
- objLight.exponent = 150;
|
|
|
-
|
|
|
- // // 灯光颜色【反射】
|
|
|
- // objLight.diffuse = new this.BABYLON.Color3(255, 255, 0);
|
|
|
- // 灯光颜色【漫射】
|
|
|
- objLight.specular = new this.BABYLON.Color3(255, 255, 255);
|
|
|
-
|
|
|
- // console.log(
|
|
|
- // " 创建灯光 点光【类似灯泡】 " + code
|
|
|
- // );
|
|
|
-
|
|
|
- return objLight;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 更新点光灯的参数来让该灯光是否有用
|
|
|
- * intensity 强度
|
|
|
- *
|
|
|
- */
|
|
|
- public pointLightCameraUpdateConfig = (intensity : any) => {
|
|
|
-
|
|
|
- let objLight = this.getPointLight(this.pointLightCode);
|
|
|
- objLight.intensity = intensity;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 让相机和灯光绑在一起,灯光跟着相机方向发射光
|
|
|
- */
|
|
|
- public spotLightCameraEvent = () => {
|
|
|
-
|
|
|
- if (courseChapter3dShow().show.arcRotateCameraCarUpdateOpen == false) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- let objLight = this.getSpotLight(this.lightCode);
|
|
|
-
|
|
|
- // @ts-ignore 当前选中的相机
|
|
|
- let objSceneActiveCamera = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objSceneActiveCamera;
|
|
|
-
|
|
|
- let objArcRotateCameraCodeGetObj = this.arcRotateCameraCodeGetObj(this.cameraCarName);
|
|
|
-
|
|
|
- if (objSceneActiveCamera == null || objSceneActiveCamera == undefined) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- var origin = new this.BABYLON.Vector3(objArcRotateCameraCodeGetObj.position.x, objArcRotateCameraCodeGetObj.position.y, objArcRotateCameraCodeGetObj.position.z);
|
|
|
- var target = new this.BABYLON.Vector3(objArcRotateCameraCodeGetObj.target.x, objArcRotateCameraCodeGetObj.target.y, objArcRotateCameraCodeGetObj.target.z);
|
|
|
-
|
|
|
- var targetVector = new this.BABYLON.Vector3(
|
|
|
- target.x - origin.x,
|
|
|
- target.y - origin.y,
|
|
|
- target.z - origin.z
|
|
|
- );
|
|
|
-
|
|
|
-
|
|
|
- targetVector = targetVector.normalize();
|
|
|
-
|
|
|
- // 聚光灯朝向往前挪
|
|
|
- objLight.position.x = origin.x + (targetVector.x * 0);
|
|
|
- objLight.position.y = origin.y + (targetVector.y * 0);
|
|
|
- objLight.position.z = origin.z + (targetVector.z * 0);
|
|
|
-
|
|
|
-
|
|
|
- // 聚光灯的朝向
|
|
|
- objLight.direction = new this.BABYLON.Vector3(
|
|
|
- targetVector.x,
|
|
|
- targetVector.y,
|
|
|
- targetVector.z
|
|
|
- );
|
|
|
-
|
|
|
- // 点光灯
|
|
|
- let objPointLight = this.getPointLight(this.pointLightCode);
|
|
|
-
|
|
|
- // 把灯光往朝向往前挪
|
|
|
- objPointLight.position.x = origin.x + (targetVector.x * 0);
|
|
|
- objPointLight.position.y = origin.y + (targetVector.y * 0);
|
|
|
- objPointLight.position.z = origin.z + (targetVector.z * 0);
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 优先将其他组件隐藏
|
|
|
- */
|
|
|
- public viewHide = () => {
|
|
|
-
|
|
|
- this.gizmoManagerExitClose();
|
|
|
-
|
|
|
- // 车的相机隐藏
|
|
|
- this.arcRotateCameraCarUpdate(false);
|
|
|
-
|
|
|
- // @ts-ignore 允许键盘的操作
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonEvent.find().keyEventOpenApi = true;
|
|
|
-
|
|
|
- // 不使用该灯光
|
|
|
- courseChapter3dShow().show.lightMain = 0;
|
|
|
- courseChapter3dShow().show.lightAssist = 0;
|
|
|
- this.pointLightCameraUpdateConfig(0);
|
|
|
-
|
|
|
- // 取消拖拽
|
|
|
- this.gizmoManagerEventUpdate(null, null);
|
|
|
-
|
|
|
- // 初始化为前置摄像头
|
|
|
- courseChapter3dShow().show.lookAfterOrFront = "front";
|
|
|
-
|
|
|
- // 不触发鼠标移动逻辑
|
|
|
- courseChapter3dShow().show.pickResultMoveBool = false;
|
|
|
-
|
|
|
- // 停止车的移动
|
|
|
- courseChapter3dShow().show.carStatus = "stopMove";
|
|
|
- courseChapter3dShow().show.carMoveLv = 0;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(true);
|
|
|
- this.tipsBtnsDownOpenEvent(true);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showVideoBgBool = true;
|
|
|
- courseChapter3dShow().show.courseChapter3dMainStyle = "z-index:0;";
|
|
|
-
|
|
|
- courseChapter3dShow().show.threeWorldMask = false;
|
|
|
- courseChapter3dShow().show.showOperationHelpViewBool = false;
|
|
|
- courseChapter3dShow().show.showMouseViewBool = false;
|
|
|
- courseChapter3dShow().show.showThreeRotationViewBool = false;
|
|
|
- courseChapter3dShow().show.showStudyRightViewBool = false;
|
|
|
- courseChapter3dShow().show.showMatterViewBool = false;
|
|
|
- courseChapter3dShow().show.showVideoViewBool = false;
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
- courseChapter3dShow().show.showTitleViewBool = false;
|
|
|
- courseChapter3dShow().show.showLinkOkViewBool = false;
|
|
|
- courseChapter3dShow().show.showToolMenuRightViewBool = false;
|
|
|
- courseChapter3dShow().show.showCarEyeViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showLinkOkNextBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showCarEyeViewBoolSpeeding = false;
|
|
|
- courseChapter3dShow().show.showCarEyeViewBoolSpeeding2 = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showCongratulationsViewBool = false;
|
|
|
- courseChapter3dShow().show.showEndViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showClickRotationViewBool = false;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 操作帮助
|
|
|
- */
|
|
|
- public operationHelpEvent = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
-
|
|
|
- courseChapter3dShow().show.showOperationHelpViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 设备拆解
|
|
|
- */
|
|
|
- public equipmentDisassemblyEvent = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("检测车");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showMouseViewBool = true;
|
|
|
- courseChapter3dShow().show.showThreeRotationViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 切换对应的动画结果
|
|
|
- * type 类型
|
|
|
- */
|
|
|
- public animationAllTypeUpdate = (type : any) => {
|
|
|
-
|
|
|
- // 通过配置来更新动画
|
|
|
- let list : any = [];
|
|
|
-
|
|
|
- switch (type) {
|
|
|
-
|
|
|
- // 停止所有动画放到对应的合理位置
|
|
|
- case 'stopAll':
|
|
|
-
|
|
|
- list = [
|
|
|
-
|
|
|
- { "name" : "井盖002", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "井盖002|西区实训基地|BaseLayer", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "安全桩001|西区实训基地|BaseLayer.001", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "安全桩004|西区实训基地|BaseLayer.001", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "安全桩003|西区实训基地|BaseLayer.001", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "安全桩002|西区实训基地|BaseLayer.001", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
-
|
|
|
- { "name" : "鞋子|", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "安全帽", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "裤子", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "上衣", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
-
|
|
|
- { "name" : "绕线车盒021", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "绕线车盒041", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "爬行车盒031", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "爬行车盒021", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "爬行车盒041", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "绕线车盒031", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "Armature", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
-
|
|
|
- { "name" : "叉1", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "叉2", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "上机", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
-
|
|
|
- { "name" : "电池锁", "speed" : 1, "from" : 61, "to" : 61 },
|
|
|
- { "name" : "电缆01", "speed" : 1, "from" : 80, "to" : 80 },
|
|
|
- { "name" : "手柄", "speed" : 1, "from" : 32, "to" : 32 },
|
|
|
- { "name" : "防撞杆锁", "speed" : 1, "from" : 61, "to" : 61 },
|
|
|
- { "name" : "防撞杆", "speed" : 100, "from" : 61, "to" : 61 },
|
|
|
- { "name" : "绕线车-电源线", "speed" : 1, "from" : 32, "to" : 32 },
|
|
|
- { "name" : "锂电池", "speed" : 1, "from" : 32, "to" : 32 },
|
|
|
- { "name" : "绕线车-纠偏轮", "speed" : 1, "from" : 32, "to" : 32 },
|
|
|
-
|
|
|
- { "name" : "10”后轮左轴", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "10”后轮左", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
-
|
|
|
- { "name" : "10”前轮左轴", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "10”前轮左", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
-
|
|
|
- { "name" : "10”前轮右轴", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "10”前轮右", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
-
|
|
|
- { "name" : "10”后轮右轴", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "10”后轮右", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
-
|
|
|
-
|
|
|
- { "name" : "6”前轮右", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "6”中轮右", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "6”后轮右", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "6”后轮左", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "6”中轮左", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "6”前轮左", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
-
|
|
|
- { "name" : "相机", "speed" : 1, "from" : 40, "to" : 40 },
|
|
|
- { "name" : "镜头架", "speed" : 1, "from" : 40, "to" : 40 },
|
|
|
-
|
|
|
- { "name" : "电脑", "speed" : 1, "from" : 41, "to" : 41 },
|
|
|
- { "name" : "电脑主机", "speed" : 1, "from" : 41, "to" : 41 },
|
|
|
- { "name" : "电脑屏幕轴", "speed" : 1, "from" : 61, "to" : 61 },
|
|
|
- { "name" : "电脑屏幕", "speed" : 1, "from" : 41, "to" : 41 },
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- ];
|
|
|
-
|
|
|
- break;
|
|
|
-
|
|
|
- // 进入拆箱前的动画
|
|
|
- case 'beforeUnboxing':
|
|
|
-
|
|
|
- list = [
|
|
|
-
|
|
|
- { "name" : "鞋子|", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "安全帽", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "裤子", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "上衣", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
-
|
|
|
- { "name" : "井盖002", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "井盖002|西区实训基地|BaseLayer", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "绕线车盒021", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "绕线车盒041", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "爬行车盒031", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "爬行车盒021", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "爬行车盒041", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "绕线车盒031", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "Armature", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
-
|
|
|
- { "name" : "叉1", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "叉2", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "上机", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
-
|
|
|
- { "name" : "电池锁", "speed" : 1, "from" : 61, "to" : 61 },
|
|
|
- { "name" : "电缆01", "speed" : 1, "from" : 80, "to" : 80 },
|
|
|
- { "name" : "手柄", "speed" : 1, "from" : 32, "to" : 32 },
|
|
|
- { "name" : "防撞杆锁", "speed" : 1, "from" : 61, "to" : 61 },
|
|
|
- { "name" : "防撞杆", "speed" : 100, "from" : 61, "to" : 61 },
|
|
|
- { "name" : "绕线车-电源线", "speed" : 1, "from" : 32, "to" : 32 },
|
|
|
- { "name" : "锂电池", "speed" : 1, "from" : 32, "to" : 32 },
|
|
|
- { "name" : "绕线车-纠偏轮", "speed" : 1, "from" : 32, "to" : 32 },
|
|
|
-
|
|
|
- { "name" : "10”后轮左轴", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "10”后轮左", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
-
|
|
|
- { "name" : "10”前轮左轴", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "10”前轮左", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
-
|
|
|
- { "name" : "10”前轮右轴", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "10”前轮右", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
-
|
|
|
- { "name" : "10”后轮右轴", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "10”后轮右", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
-
|
|
|
- { "name" : "6”前轮右", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "6”中轮右", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "6”后轮右", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "6”后轮左", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "6”中轮左", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "6”前轮左", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
-
|
|
|
- { "name" : "相机", "speed" : 1, "from" : 40, "to" : 40 },
|
|
|
- { "name" : "镜头架", "speed" : 1, "from" : 40, "to" : 40 },
|
|
|
-
|
|
|
- { "name" : "电脑", "speed" : 1, "from" : 41, "to" : 41 },
|
|
|
- { "name" : "电脑主机", "speed" : 1, "from" : 41, "to" : 41 },
|
|
|
- { "name" : "电脑屏幕轴", "speed" : 1, "from" : 41, "to" : 41 },
|
|
|
- { "name" : "电脑屏幕", "speed" : 1, "from" : 41, "to" : 41 },
|
|
|
-
|
|
|
- ];
|
|
|
-
|
|
|
- break;
|
|
|
-
|
|
|
- // 将对应的物体零件摆放到对应的位置
|
|
|
- case 'part':
|
|
|
-
|
|
|
- list = [
|
|
|
-
|
|
|
- { "name" : "电池锁", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "电缆01", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "手柄", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "防撞杆锁", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "防撞杆", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "绕线车-电源线", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "锂电池", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "绕线车-纠偏轮", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
-
|
|
|
- { "name" : "10”后轮左轴", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "10”后轮左", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
-
|
|
|
- { "name" : "10”前轮左轴", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "10”前轮左", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
-
|
|
|
- { "name" : "10”前轮右轴", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "10”前轮右", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
-
|
|
|
- { "name" : "10”后轮右轴", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "10”后轮右", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
-
|
|
|
- { "name" : "6”前轮右", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "6”中轮右", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "6”后轮右", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "6”后轮左", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "6”中轮左", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "6”前轮左", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
-
|
|
|
- { "name" : "相机", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "镜头架", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
-
|
|
|
- { "name" : "电脑", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "电脑主机", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "电脑屏幕轴", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "电脑屏幕", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
-
|
|
|
- ];
|
|
|
-
|
|
|
- break;
|
|
|
-
|
|
|
- // 将对应的物体零件【 轮胎 】摆放到对应的位置
|
|
|
- case 'tyre':
|
|
|
-
|
|
|
- list = [
|
|
|
-
|
|
|
- { "name" : "10”后轮左轴", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "10”后轮左", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
-
|
|
|
- { "name" : "10”前轮左轴", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "10”前轮左", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
-
|
|
|
- { "name" : "10”前轮右轴", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "10”前轮右", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
-
|
|
|
- { "name" : "10”后轮右轴", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "10”后轮右", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
-
|
|
|
- { "name" : "6”前轮右", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "6”中轮右", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "6”后轮右", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "6”后轮左", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "6”中轮左", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- { "name" : "6”前轮左", "speed" : 1, "from" : 200, "to" : 200 },
|
|
|
- ];
|
|
|
-
|
|
|
- break;
|
|
|
-
|
|
|
- // 将对应的物体零件【 防撞杆 】摆放到对应的位置
|
|
|
- case 'antiCollisionBar':
|
|
|
-
|
|
|
- list = [
|
|
|
- { "name" : "防撞杆", "speed" : 100, "from" : 61, "to" : 61 },
|
|
|
- ];
|
|
|
-
|
|
|
- break;
|
|
|
-
|
|
|
- // 将对应的物体零件【 防撞杆锁 】摆放到对应的位置
|
|
|
- case 'antiCollisionLock':
|
|
|
- list = [
|
|
|
- { "name" : "防撞杆锁", "speed" : 1, "from" : 61, "to" : 61 },
|
|
|
- ];
|
|
|
- break;
|
|
|
-
|
|
|
- // 将对应的物体零件【 镜头架 】摆放到对应的位置
|
|
|
- case 'lensHolder':
|
|
|
- list = [
|
|
|
- { "name" : "镜头架", "speed" : 1, "from" : 40, "to" : 40 },
|
|
|
- ];
|
|
|
- break;
|
|
|
-
|
|
|
- // 将对应的物体零件【 相机 】摆放到对应的位置
|
|
|
- case 'camera':
|
|
|
- list = [
|
|
|
- { "name" : "相机", "speed" : 1, "from" : 40, "to" : 40 },
|
|
|
- ];
|
|
|
- break;
|
|
|
-
|
|
|
- // 将对应的物体零件【 电源线 】摆放到对应的位置
|
|
|
- case 'powerCord':
|
|
|
- list = [
|
|
|
- { "name" : "绕线车-电源线", "speed" : 1, "from" : 32, "to" : 32 },
|
|
|
- ];
|
|
|
- break;
|
|
|
-
|
|
|
- // 将对应的物体零件【 纠偏轮 】摆放到对应的位置
|
|
|
- case 'correctionWheel':
|
|
|
- list = [
|
|
|
- { "name" : "绕线车-纠偏轮", "speed" : 1, "from" : 32, "to" : 32 },
|
|
|
- ];
|
|
|
- break;
|
|
|
-
|
|
|
- // 将对应的物体零件【 锂电池 】摆放到对应的位置
|
|
|
- case 'lithiumBattery':
|
|
|
- list = [
|
|
|
- { "name" : "电池锁", "speed" : 1, "from" : 61, "to" : 61 },
|
|
|
- { "name" : "锂电池", "speed" : 1, "from" : 32, "to" : 32 },
|
|
|
- ];
|
|
|
- break;
|
|
|
-
|
|
|
- // 将对应的物体零件【 电脑主机 】摆放到对应的位置
|
|
|
- case 'computerHost':
|
|
|
- list = [
|
|
|
-
|
|
|
- { "name" : "电脑", "speed" : 1, "from" : 41, "to" : 41 },
|
|
|
- { "name" : "电脑主机", "speed" : 1, "from" : 41, "to" : 41 },
|
|
|
- { "name" : "电脑屏幕轴", "speed" : 1, "from" : 41, "to" : 41 },
|
|
|
- { "name" : "电脑屏幕", "speed" : 1, "from" : 41, "to" : 41 },
|
|
|
-
|
|
|
- ];
|
|
|
- break;
|
|
|
-
|
|
|
- // 将对应的物体零件【 手柄 】摆放到对应的位置
|
|
|
- case 'handle':
|
|
|
- list = [
|
|
|
- { "name" : "手柄", "speed" : 1, "from" : 32, "to" : 32 },
|
|
|
- ];
|
|
|
- break;
|
|
|
-
|
|
|
- // 将对应的物体零件【 电缆 】摆放到对应的位置
|
|
|
- case 'cable':
|
|
|
- list = [
|
|
|
- { "name" : "电缆01", "speed" : 1, "from" : 0, "to" : 80 },
|
|
|
- ];
|
|
|
- break;
|
|
|
-
|
|
|
- // 重置井盖位置
|
|
|
- case 'manholeCoverZero':
|
|
|
- list = [
|
|
|
- { "name" : "井盖002", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- { "name" : "井盖002|西区实训基地|BaseLayer", "speed" : 1, "from" : 0, "to" : 0 },
|
|
|
- ];
|
|
|
- break;
|
|
|
-
|
|
|
- // case '':
|
|
|
- // break;
|
|
|
-
|
|
|
- // case '':
|
|
|
- // break;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- for (let i = 0; i < list.length; i++) {
|
|
|
-
|
|
|
- let thisList = list[i];
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().animationGroupsEventCallback(
|
|
|
- thisList.name, 'start', thisList.speed, thisList.from, thisList.to, false, null, function(state : any, objAnimation : any) {
|
|
|
-
|
|
|
- if (state == "播放完成") {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- };
|
|
|
-
|
|
|
- /**
|
|
|
- * 爬行器模块
|
|
|
- */
|
|
|
- public crawlerModuleEvent = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
-
|
|
|
- // 触发鼠标移动逻辑
|
|
|
- courseChapter3dShow().show.pickResultMoveBool = true;
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("检测车标注");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- this.crawlerModuleTxtUpdate("crawlerModule");
|
|
|
- courseChapter3dShow().show.showStudyRightViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 爬行器 - 内容
|
|
|
- * type 类型
|
|
|
- */
|
|
|
- public crawlerModuleTxtUpdate = (type : String) => {
|
|
|
-
|
|
|
- switch (type) {
|
|
|
- // 爬行器
|
|
|
- case 'crawlerModule':
|
|
|
-
|
|
|
- courseChapter3dShow().show.showStudyRightTitle = "爬行器";
|
|
|
- courseChapter3dShow().show.showStudyRightTxtList = [
|
|
|
- "一般的检测机器人车体主要包括车身、云台摄像机、LED灯光模块、升降架(适应不同管径)以及不同尺寸的轮组。",
|
|
|
- "1、 高清云台摄像机:满足360°轴向旋转,同时具备一定角度的径向旋转,可以满足拍摄管道中各个角度的管道图像,尤其是在拍摄管道接口位置时,可以采集完整的接口位置图像,以提高检测数据的完整性,方便数据分析人员对管道状况进行准确评估。",
|
|
|
- "2、 LED灯光模块:一般包含前置远光灯组、近光灯组以及后视灯组,可以保证云台拍摄时画面的清晰度,同时也可帮助地面控制人员控制机器人行走。 ",
|
|
|
- "3、 升降架:根据相关检测标准,检测机器人在管道中进行检测时,云台位置应处于管道的中心位置,以保证检测视频获取完整的非失真的管道图像,为了满足这一要求,-般检测机器人会配备升降机构,从而可以将云台根据不同管径的大小调整到管道的中心位置。 ",
|
|
|
- "4、 机器人底盘:一般包含电机、控制电路系统、信号处理系统等,是机器人的核心部分,目前的检测机器人一般配备了多个电机组,支持差速控制,既能满足机器人前进后退的行走需求,也可以满足机器人原地转弯等特殊操作需求。 ",
|
|
|
- " 轮组:由于不同的管道其管径大小不同,所以需要检测时根据不同的管径大小采用不同的轮组,以满足检测的需求。目前的检测机器人一般配备了多种尺寸的轮组,并采用快拆设计,保证更换方便。 ",
|
|
|
- ];
|
|
|
- break;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 线缆卷盘
|
|
|
- */
|
|
|
- public cableReelEvent = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 触发鼠标移动逻辑
|
|
|
- courseChapter3dShow().show.pickResultMoveBool = true;
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("绕线车标注");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showStudyRightTitle = "线缆卷盘";
|
|
|
- courseChapter3dShow().show.showStudyRightTxtList = [
|
|
|
- "线缆卷盘一般由线缆、计米器、收放线控制系统、电源系统、通信系统等组成。",
|
|
|
- "1、 收线模块:一般线缆卷盘采用几种收线方式,手动收线、电动收线、全自动收线。手动收线即通过摇杆等方式将线缆收回;电动收线则通过按动线缆卷盘上收线开关由线缆卷盘内部的电机进行收线或通过控制终端控制收线;全自动收线是收线控制系统根据机器人回退的速度自动调整收线电机的收线速度,从而将线缆自动收回。",
|
|
|
- "2、 通信模块:线缆卷盘一般可通过有线通信与无线通信两种方式与控制终端进行通信。一般有线通信方式主要采用外接通信线方式将线缆卷盘与控制终端进行连接;无线通信方式是技术更为先进的通信方式,控制终端能够通过无线方式通过线缆卷盘控制机器人并获取机器人采集的图像视频信息。计米器:线缆卷盘通过配备计米器模块,可以准确计算出机器人在管道中行走的距离,从而能够准确定位缺陷所在的位置,同时可以计算出管道的长度,方便工程量计算以及项目验收。",
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showStudyRightViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 检测实训注意事项
|
|
|
- * durationStudyMin 学习时间
|
|
|
- */
|
|
|
- public precautionsForTestingTrainingEvent = (durationStudyMin : any) => {
|
|
|
-
|
|
|
- // console.log(
|
|
|
- // "检测实训注意事项",
|
|
|
- // props.config
|
|
|
- // );
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.showMatterViewBool = true;
|
|
|
- courseChapter3dShow().show.showMatterDurationStudyMin = durationStudyMin;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 设备下井实验视频
|
|
|
- */
|
|
|
- public equipmentDownHoleExperimentVideoEvent = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.showVideoTitle = "检测机器人设备组装";
|
|
|
- courseChapter3dShow().show.showVideoUrl = "https://www.3dyzt.com/eduTrain/video/2_CCTV检测机器人设备组装.mp4";
|
|
|
- courseChapter3dShow().show.showVideoViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 设置角色到地面的区域位置
|
|
|
- */
|
|
|
- public roleRegion = () => {
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- let objRole = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.Role.find().objRole;
|
|
|
- // @ts-ignore
|
|
|
- let CommonVal = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal;
|
|
|
-
|
|
|
- // objRole.position.x = (-30);
|
|
|
- // objRole.position.y = (1.01);
|
|
|
- // objRole.position.z = (1.25);
|
|
|
-
|
|
|
- objRole.position.x = (-32);
|
|
|
- objRole.position.y = (1.01);
|
|
|
- objRole.position.z = (1.8);
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- // 请走到工作区域
|
|
|
- public work_1 = () => {
|
|
|
-
|
|
|
- // 没有穿衣服
|
|
|
- this.workRoleClothingUpdate("no", false);
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 切换动画
|
|
|
- this.animationAllTypeUpdate("beforeUnboxing");
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("准备区域");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(true);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- let thisBirthPoint = courseChapter3dShow().show.birthPoint["地面出生点"];
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- let objRole = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.Role.find().objRole;
|
|
|
- // @ts-ignore
|
|
|
- let CommonVal = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal;
|
|
|
-
|
|
|
- objRole.position.x = thisBirthPoint.positionTarget.x;
|
|
|
- objRole.position.y = thisBirthPoint.positionTarget.y;
|
|
|
- objRole.position.z = thisBirthPoint.positionTarget.z;
|
|
|
-
|
|
|
- // CommonVal.find().objSceneActiveCamera.alpha = thisBirthPoint.alpha;
|
|
|
- // CommonVal.find().objSceneActiveCamera.beta = thisBirthPoint.beta;
|
|
|
-
|
|
|
- CommonVal.find().objSceneActiveCamera.alpha = 3.1617563103769375;
|
|
|
- CommonVal.find().objSceneActiveCamera.beta = 1.4440851199999976;
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().releaseCameraVisualAngle = 1;
|
|
|
- // @ts-ignore 第三人称视角
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CameraArray.find().cameraVisualAngle = 1;
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.modelPeopleLook(1);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CameraArray.find().cameraLookRoleZoomInNoStrEvent();
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 更新工作人员的衣服
|
|
|
- * wear no - 不穿, yes - 穿
|
|
|
- * heightLightBool true - 高亮, false - 不高亮
|
|
|
- */
|
|
|
- public workRoleClothingUpdate = (wear : String, heightLightBool : Boolean) => {
|
|
|
-
|
|
|
- // // 被更新的衣服服装id列表
|
|
|
- // let list = [
|
|
|
- // "exhibition_html_1705997189149_node66",
|
|
|
- // "exhibition_html_1705997189149_node68",
|
|
|
- // "exhibition_html_1705997189149_node70",
|
|
|
- // "exhibition_html_1705997189149_node72",
|
|
|
- // "exhibition_html_1705997189149_node74",
|
|
|
- // "exhibition_html_1705997189149_node76",
|
|
|
- // ];
|
|
|
-
|
|
|
- // for (let i = 0; i < list.length; i++) {
|
|
|
-
|
|
|
- // let objMeshId = list[i];
|
|
|
- // // @ts-ignore
|
|
|
- // let objMesh = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objScene.getMeshById(objMeshId);
|
|
|
- // if (objMesh != null && objMesh != undefined && objMesh.material != null && objMesh.material != undefined) {
|
|
|
- // objMesh.material.albedoTexture = wear == "no" ? wearTextureNo : wearTextureYes;
|
|
|
- // }
|
|
|
-
|
|
|
- // }
|
|
|
-
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- let roleCode = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.Role.find().roleCode;
|
|
|
-
|
|
|
- // 循环所有的物体
|
|
|
- // @ts-ignore
|
|
|
- let objMeshes = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objScene.meshes;
|
|
|
- for (let i = 0; i < objMeshes.length; i++) {
|
|
|
-
|
|
|
- let objMesh = objMeshes[i];
|
|
|
- if (objMesh != null && objMesh != undefined && objMesh.material != null && objMesh.material != undefined) {
|
|
|
-
|
|
|
- try {
|
|
|
-
|
|
|
- if (
|
|
|
- objMesh.id.indexOf(roleCode) >= 0
|
|
|
- && objMesh.id.indexOf("M_SML_Construction_01_primitive0") >= 0
|
|
|
- ) {
|
|
|
- objMesh.material.albedoTexture = wear == "no" ? this.wearTextureNo : this.wearTextureYes;
|
|
|
- }
|
|
|
-
|
|
|
- } catch (e) {}
|
|
|
-
|
|
|
- if (
|
|
|
- objMesh.id.indexOf(roleCode) >= 0
|
|
|
- ) {
|
|
|
-
|
|
|
- if (heightLightBool == true) {
|
|
|
- this.objHighlightLayerEvent.objHighlightLayerInit();
|
|
|
- this.objHighlightLayerEvent.objHighlightLayer.addMesh(
|
|
|
- objMesh,
|
|
|
- new this.BABYLON.Color3(0 / 255, 230 / 255, 255 / 255)
|
|
|
- );
|
|
|
-
|
|
|
- // console.log(
|
|
|
- // "设置高光", this.objHighlightLayerEvent
|
|
|
- // );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 请点击人物进行穿搭衣服
|
|
|
- public work_2 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- this.workRoleClothingUpdate("no", true);
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("穿工作服", false);
|
|
|
- // @ts-ignore
|
|
|
- // threeWorld().obj.newIframe.roleShow(true);
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- // 人物到指定坐标
|
|
|
- this.roleRegion();
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- // 将四个安全桩放置到正确的位置
|
|
|
- public work_3 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- // threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("划安全区");
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("摆放安全桩", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 是否触发完成动画了
|
|
|
- */
|
|
|
- public partEventBool = false;
|
|
|
-
|
|
|
- /**
|
|
|
- *
|
|
|
- */
|
|
|
- public partEvent = () => {
|
|
|
-
|
|
|
- if (this.partEventBool == true) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- this.partEventBool = true;
|
|
|
-
|
|
|
- this.animationAllTypeUpdate("part");
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 将盒子拆开把设备拿出来
|
|
|
- public work_4 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 切换动画
|
|
|
- this.animationAllTypeUpdate("beforeUnboxing");
|
|
|
-
|
|
|
- this.partEventBool = false;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("开箱", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- // 将盒子拆开把设备放置在安全的位置
|
|
|
- public work_5 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("开箱", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 将检测机器人6寸轮子安装到正确位置
|
|
|
- public work_6_0 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("6“轮安装5", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 将检测机器人的轮子安装到正确的位置(10寸轮子安装)
|
|
|
- public work_6 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("10“轮安装4", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 将检测机器人6寸右侧轮子安装到正确位置
|
|
|
- public work_6_right = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("6“轮安装5", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 将检测机器人6寸左侧轮子安装到正确位置
|
|
|
- public work_6_left = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("6“轮安装1", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 将检测机器人10寸右侧轮子安装到正确位置
|
|
|
- public work_10_right = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("10“轮安装3", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 将检测机器人10寸左侧轮子安装到正确位置
|
|
|
- public work_10_left = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("10“轮安装1", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 将检测机器人的防撞杆安装到正确的位置
|
|
|
- public work_7 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("防撞杆安装", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 将检测机器人的防撞杆锁安装到正确的位置
|
|
|
- public work_8 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("防撞杆锁安装", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 将检测机器人的镜头架安装到正确的位置
|
|
|
- public work_9 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("相机安装", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 将检测机器人的相机安装到正确的位置
|
|
|
- public work_10 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("相机安装", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 将绕线车的电源线安装到正确的位置
|
|
|
- public work_11 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("电源线安装", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 将绕线车的纠偏轮安装到正确的位置
|
|
|
- public work_12 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("纠偏轮安装", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 将绕线车的锂电池安装到正确的位置
|
|
|
- public work_13 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("电池安装", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 将绕线车的电脑主机放置到正确的位置
|
|
|
- public work_14 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("电脑安装", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 将绕线车的手柄安装到正确的位置
|
|
|
- public work_15 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("手柄安装", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 将绕线车的电缆安装到正确的位置
|
|
|
- public work_16 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("连接电缆", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 抬升支架降至最低
|
|
|
- public work_17 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("相机上升", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "设备下井工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 将抬升支架降至最低,触发动画
|
|
|
- * objMesh 被点击的目标物体
|
|
|
- * statue 流程状态
|
|
|
- */
|
|
|
- public openSupport = (objMesh : any, statue : any) => {
|
|
|
-
|
|
|
- let thisObj = this;
|
|
|
-
|
|
|
- if (objMesh == null || objMesh == undefined) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- if (statue != "抬升支架降至最低") {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- // console.log(
|
|
|
- // "将盒子拆开把设备拿出来,触发动画",
|
|
|
- // objMesh.id
|
|
|
- // );
|
|
|
-
|
|
|
- if (
|
|
|
-
|
|
|
- objMesh.id == "exhibition_html_1710385814466_上机_primitive0"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_上机_primitive1"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_上机_primitive2"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_上机_primitive3"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_上机_primitive4"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_上机_primitive5"
|
|
|
-
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_基座_primitive0"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_基座_primitive1"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_基座_primitive2"
|
|
|
-
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_叉1_primitive0"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_叉1_primitive1"
|
|
|
-
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_叉2_primitive0"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_叉2_primitive1"
|
|
|
-
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_镜头架_primitive0"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_镜头架_primitive1"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_镜头架_primitive2"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_镜头架_primitive3"
|
|
|
-
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_相机_primitive0"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_相机_primitive1"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_相机_primitive2"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_相机_primitive3"
|
|
|
-
|
|
|
- ) {
|
|
|
-
|
|
|
- let list = [
|
|
|
-
|
|
|
- { "name" : "叉1", "speed" : 1, "from" : 160, "to" : 401 },
|
|
|
- { "name" : "叉2", "speed" : 1, "from" : 160, "to" : 401 },
|
|
|
- { "name" : "上机", "speed" : 1, "from" : 160, "to" : 401 },
|
|
|
- { "name" : "相机", "speed" : 1, "from" : 160, "to" : 401 },
|
|
|
- { "name" : "镜头架", "speed" : 1, "from" : 160, "to" : 401 },
|
|
|
-
|
|
|
- ];
|
|
|
-
|
|
|
- for (let i = 0; i < list.length; i++) {
|
|
|
-
|
|
|
- let thisList = list[i];
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().animationGroupsEventCallback(
|
|
|
- thisList.name, 'start', thisList.speed, thisList.from, thisList.to, false, null, function(state : any, objAnimation : any) {
|
|
|
-
|
|
|
- if (state == "播放完成") {
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- thisObj.tipsBtnsUpOpenEvent(true);
|
|
|
- thisObj.tipsBtnsDownOpenEvent(true);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showCongratulationsViewBool = true;
|
|
|
- courseChapter3dShow().show.showEndViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- // 镜头旋转至正上方
|
|
|
- public work_18 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("相机降低", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "设备下井工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 镜头旋转至正上方,触发动画
|
|
|
- * objMesh 被点击的目标物体
|
|
|
- * statue 流程状态
|
|
|
- */
|
|
|
- public openShotUp = (objMesh : any, statue : any) => {
|
|
|
-
|
|
|
- let thisObj = this;
|
|
|
-
|
|
|
- if (objMesh == null || objMesh == undefined) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- if (statue != "镜头旋转至正上方") {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- if (
|
|
|
-
|
|
|
- objMesh.id == "exhibition_html_1710385814466_相机_primitive0"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_相机_primitive1"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_相机_primitive2"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_相机_primitive3"
|
|
|
-
|
|
|
- ) {
|
|
|
-
|
|
|
- let list = [
|
|
|
-
|
|
|
- { "name" : "相机", "speed" : 0.1, "from" : 123, "to" : 132 },
|
|
|
-
|
|
|
- ];
|
|
|
-
|
|
|
- for (let i = 0; i < list.length; i++) {
|
|
|
-
|
|
|
- let thisList = list[i];
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().animationGroupsEventCallback(
|
|
|
- thisList.name, 'start', thisList.speed, thisList.from, thisList.to, false, null, function(state : any, objAnimation : any) {
|
|
|
-
|
|
|
- if (state == "播放完成") {
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- thisObj.tipsBtnsUpOpenEvent(true);
|
|
|
- thisObj.tipsBtnsDownOpenEvent(true);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showCongratulationsViewBool = true;
|
|
|
- courseChapter3dShow().show.showEndViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 镜头归位
|
|
|
- public work_19 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("镜头归位", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "设备下井工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 镜头归位,触发动画
|
|
|
- * objMesh 被点击的目标物体
|
|
|
- * statue 流程状态
|
|
|
- */
|
|
|
- public openShotRet = (objMesh : any, statue : any) => {
|
|
|
-
|
|
|
- let thisObj = this;
|
|
|
-
|
|
|
- if (objMesh == null || objMesh == undefined) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- if (statue != "镜头归位") {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- if (
|
|
|
-
|
|
|
- objMesh.id == "exhibition_html_1710385814466_相机_primitive0"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_相机_primitive1"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_相机_primitive2"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_相机_primitive3"
|
|
|
-
|
|
|
- ) {
|
|
|
-
|
|
|
- let list = [
|
|
|
-
|
|
|
- { "name" : "相机", "speed" : 0.1, "from" : 132, "to" : 123 },
|
|
|
-
|
|
|
- ];
|
|
|
-
|
|
|
- for (let i = 0; i < list.length; i++) {
|
|
|
-
|
|
|
- let thisList = list[i];
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().animationGroupsEventCallback(
|
|
|
- thisList.name, 'start', thisList.speed, thisList.from, thisList.to, false, null, function(state : any, objAnimation : any) {
|
|
|
-
|
|
|
- if (state == "播放完成") {
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- thisObj.tipsBtnsUpOpenEvent(true);
|
|
|
- thisObj.tipsBtnsDownOpenEvent(true);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showCongratulationsViewBool = true;
|
|
|
- courseChapter3dShow().show.showEndViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 调节行驶方向正确放置过线滑轮
|
|
|
- public work_20 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("偏放", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "设备下井工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- // "调节行驶方向正确放置过线滑轮"
|
|
|
- ];
|
|
|
- // courseChapter3dShow().show.showToastViewBool = true;
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- setTimeout(function() {
|
|
|
- courseChapter3dShow().show.showClickRotationViewBool = true;
|
|
|
- }, 1500);
|
|
|
-
|
|
|
- // 更新旋转
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- let CommonVal = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal;
|
|
|
- let raoXianChe = CommonVal.find().objScene.getNodeById("exhibition_html_1709910293850__RaoXianChe");
|
|
|
-
|
|
|
- raoXianChe.rotationQuaternion.x = 0.6793041089752351;
|
|
|
- raoXianChe.rotationQuaternion.y = 0.19633155278297382;
|
|
|
- raoXianChe.rotationQuaternion.z = -0.19633149598661914;
|
|
|
- raoXianChe.rotationQuaternion.w = 0.6793039029733633;
|
|
|
-
|
|
|
-
|
|
|
- // for (let i = 0; i < raoXianChe._children.length; i++) {
|
|
|
- // let thisChildren = raoXianChe._children[i];
|
|
|
- // thisChildren.rotation.z = Math.PI / 3;
|
|
|
- // }
|
|
|
-
|
|
|
- // raoXianChe.rotation.y = Math.PI / 3;
|
|
|
-
|
|
|
- let paXingChe = CommonVal.find().objScene.getNodeById("exhibition_html_1709910293850__PaXingChe");
|
|
|
- paXingChe.rotationQuaternion.x = 0.6783627735004868;
|
|
|
- paXingChe.rotationQuaternion.y = -0.1995597575308167;
|
|
|
- paXingChe.rotationQuaternion.z = 0.1995597111999094;
|
|
|
- paXingChe.rotationQuaternion.w = 0.6783625670456601;
|
|
|
-
|
|
|
-
|
|
|
- // for (let i = 0; i < paXingChe._children.length; i++) {
|
|
|
- // let thisChildren = paXingChe._children[i];
|
|
|
- // thisChildren.rotation.z = Math.PI / 3;
|
|
|
- // }
|
|
|
-
|
|
|
- // paXingChe.rotation.y = Math.PI / 3;
|
|
|
- // console.log(
|
|
|
- // raoXianChe,
|
|
|
- // paXingChe
|
|
|
- // );
|
|
|
-
|
|
|
- this.gizmoManagerEventUpdate(raoXianChe, paXingChe);
|
|
|
-
|
|
|
- // 判断是否正确
|
|
|
- this.work_20_event(raoXianChe, paXingChe);
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * objOne 被操作的对象1
|
|
|
- * objTwo 被操作的对象2
|
|
|
- */
|
|
|
- public work_20_event = (objOne : any, objTwo : any) => {
|
|
|
-
|
|
|
- // console.log(
|
|
|
- // " const work_20_event = (objOne : any, objTwo : any) => { ",
|
|
|
- // objOne.rotationQuaternion,
|
|
|
- // objTwo.rotationQuaternion
|
|
|
- // );
|
|
|
-
|
|
|
-
|
|
|
- // 优先清除其他高光
|
|
|
- this.objHighlightLayerEvent.removeAll();
|
|
|
-
|
|
|
- // 方向调整正确
|
|
|
- if (
|
|
|
- objOne.rotationQuaternion.y >= -0.05
|
|
|
- && objOne.rotationQuaternion.y <= 0.015
|
|
|
- ) {
|
|
|
-
|
|
|
- this.objHighlightLayerEvent.meshListAdd2(
|
|
|
- [
|
|
|
- "exhibition_html_1709910293850__RaoXianChe",
|
|
|
- ],
|
|
|
- new this.BABYLON.Color3(0 / 255, 230 / 255, 255 / 255)
|
|
|
- );
|
|
|
-
|
|
|
- } else {
|
|
|
-
|
|
|
- // 方向调整错误
|
|
|
- this.objHighlightLayerEvent.meshListAdd2(
|
|
|
- [
|
|
|
- "exhibition_html_1709910293850__RaoXianChe",
|
|
|
- ],
|
|
|
- new this.BABYLON.Color3(255 / 255, 0 / 255, 0 / 255)
|
|
|
- );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 方向调整正确
|
|
|
- if (
|
|
|
- objTwo.rotationQuaternion.y >= -0.05
|
|
|
- && objTwo.rotationQuaternion.y <= 0.015
|
|
|
- ) {
|
|
|
-
|
|
|
- this.objHighlightLayerEvent.meshListAdd2(
|
|
|
- [
|
|
|
- "exhibition_html_1709910293850__PaXingChe",
|
|
|
- ],
|
|
|
- new this.BABYLON.Color3(0 / 255, 230 / 255, 255 / 255)
|
|
|
- );
|
|
|
-
|
|
|
- } else {
|
|
|
-
|
|
|
- // 方向调整错误
|
|
|
- this.objHighlightLayerEvent.meshListAdd2(
|
|
|
- [
|
|
|
- "exhibition_html_1709910293850__PaXingChe",
|
|
|
- ],
|
|
|
- new this.BABYLON.Color3(255 / 255, 0 / 255, 0 / 255)
|
|
|
- );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- this.objHighlightLayerEvent.meshListAdd2(
|
|
|
- [
|
|
|
- "exhibition_html_1709910293850_电缆-特效",
|
|
|
- ],
|
|
|
- new this.BABYLON.Color3(0 / 255, 230 / 255, 255 / 255)
|
|
|
- );
|
|
|
-
|
|
|
- courseChapter3dShow().show.showDirectionViewBool = false;
|
|
|
-
|
|
|
- if (
|
|
|
- objOne.rotationQuaternion.y >= -0.05
|
|
|
- && objOne.rotationQuaternion.y <= 0.015
|
|
|
- && objTwo.rotationQuaternion.y >= -0.05
|
|
|
- && objTwo.rotationQuaternion.y <= 0.015
|
|
|
- ) {
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(true);
|
|
|
- this.tipsBtnsDownOpenEvent(true);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showEndViewBool = true;
|
|
|
-
|
|
|
- } else {
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showEndViewBool = false;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 可操作的旋转对象
|
|
|
- * objOne 被操作的对象1
|
|
|
- * objTwo 被操作的对象2
|
|
|
- */
|
|
|
- public gizmoManagerEventUpdate = (objOne : any, objTwo : any) => {
|
|
|
-
|
|
|
- let BABYLON = this.BABYLON;
|
|
|
-
|
|
|
- let thisObj = this;
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- let objChengGuangYuanJing = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing;
|
|
|
-
|
|
|
- if (this.objGizmoManagerOne == null || this.objGizmoManagerOne == undefined) {
|
|
|
- this.objGizmoManagerOne = new BABYLON.GizmoManager(objChengGuangYuanJing.CommonVal.find().objScene);
|
|
|
- }
|
|
|
-
|
|
|
- if (this.objGizmoManagerTwo == null || this.objGizmoManagerTwo == undefined) {
|
|
|
- this.objGizmoManagerTwo = new BABYLON.GizmoManager(objChengGuangYuanJing.CommonVal.find().objScene);
|
|
|
- }
|
|
|
-
|
|
|
- // 是否开启边界盒子,此时点击的物体,可以进行拖拽改变尺寸大小
|
|
|
- this.objGizmoManagerOne.boundingBoxGizmoEnabled = false;
|
|
|
- // 是否开启控制坐标,点击物体,可进行移动
|
|
|
- this.objGizmoManagerOne.positionGizmoEnabled = false;
|
|
|
- // 是否开启控制旋转,点击物体,可进行旋转
|
|
|
- this.objGizmoManagerOne.rotationGizmoEnabled = false;
|
|
|
- // 是否开启控制缩放,点击物体可进行缩放
|
|
|
- this.objGizmoManagerOne.scaleGizmoEnabled = false;
|
|
|
-
|
|
|
- /**
|
|
|
- * 控制是否可以点击物体,来进行拖拽。false 此时如果你选中了一个物体,那么在点击其他物体,则不能锁定其他物体,而是固定一直在当前的物体
|
|
|
- * true 就是,你点击什么物体,就立刻锁定当前点击物体,来进行可以拖拽
|
|
|
- */
|
|
|
- this.objGizmoManagerOne.enableAutoPicking = false;
|
|
|
-
|
|
|
- // 是否开启边界盒子,此时点击的物体,可以进行拖拽改变尺寸大小
|
|
|
- this.objGizmoManagerTwo.boundingBoxGizmoEnabled = false;
|
|
|
- // 是否开启控制坐标,点击物体,可进行移动
|
|
|
- this.objGizmoManagerTwo.positionGizmoEnabled = false;
|
|
|
- // 是否开启控制旋转,点击物体,可进行旋转
|
|
|
- this.objGizmoManagerTwo.rotationGizmoEnabled = false;
|
|
|
- // 是否开启控制缩放,点击物体可进行缩放
|
|
|
- this.objGizmoManagerTwo.scaleGizmoEnabled = false;
|
|
|
- /**
|
|
|
- * 控制是否可以点击物体,来进行拖拽。false 此时如果你选中了一个物体,那么在点击其他物体,则不能锁定其他物体,而是固定一直在当前的物体
|
|
|
- * true 就是,你点击什么物体,就立刻锁定当前点击物体,来进行可以拖拽
|
|
|
- */
|
|
|
- this.objGizmoManagerTwo.enableAutoPicking = false;
|
|
|
-
|
|
|
- if (objOne != null && objOne != undefined) {
|
|
|
- this.objGizmoManagerOne.enableAutoPicking = true;
|
|
|
- this.objGizmoManagerOne.attachToMesh(objOne);
|
|
|
- this.objGizmoManagerOne.enableAutoPicking = false;
|
|
|
-
|
|
|
- this.objGizmoManagerOne.rotationGizmoEnabled = true;
|
|
|
-
|
|
|
- this.objGizmoManagerOne.gizmos.rotationGizmo.xGizmo.isEnabled = false;
|
|
|
- this.objGizmoManagerOne.gizmos.rotationGizmo.yGizmo.isEnabled = false;
|
|
|
- this.objGizmoManagerOne.gizmos.rotationGizmo.zGizmo.isEnabled = true;
|
|
|
-
|
|
|
- // // 清空所有的事件
|
|
|
- // this.objGizmoManagerOne.gizmos.rotationGizmo.onDragStartObservable.clear();
|
|
|
- // // 添加事件
|
|
|
- // this.objGizmoManagerOne.gizmos.rotationGizmo.onDragStartObservable.add(function() {
|
|
|
- // // console.log("【旋转】开始", this.objGizmoManagerOne._attachedMesh);
|
|
|
- // });
|
|
|
-
|
|
|
- // 清空所有的事件
|
|
|
- this.objGizmoManagerOne.gizmos.rotationGizmo.onDragEndObservable.clear();
|
|
|
- // 添加事件
|
|
|
- this.objGizmoManagerOne.gizmos.rotationGizmo.onDragEndObservable.add(function() {
|
|
|
- // console.log(
|
|
|
- // "【旋转】结束 1111111111 ",
|
|
|
- // // this.objGizmoManagerOne._attachedMesh,
|
|
|
- // // this.objGizmoManagerOne._attachedMesh.absoluteRotationQuaternion,
|
|
|
- // this.objGizmoManagerOne._attachedMesh.rotationQuaternion,
|
|
|
- // );
|
|
|
-
|
|
|
- thisObj.work_20_event(thisObj.objGizmoManagerOne._attachedMesh, thisObj.objGizmoManagerTwo._attachedMesh);
|
|
|
-
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- if (objTwo != null && objTwo != undefined) {
|
|
|
- this.objGizmoManagerTwo.enableAutoPicking = true;
|
|
|
- this.objGizmoManagerTwo.attachToMesh(objTwo);
|
|
|
- this.objGizmoManagerTwo.enableAutoPicking = false;
|
|
|
-
|
|
|
- this.objGizmoManagerTwo.rotationGizmoEnabled = true;
|
|
|
-
|
|
|
- // console.log(
|
|
|
- // "objGizmoManagerTwo", this.objGizmoManagerTwo.gizmos.rotationGizmo
|
|
|
- // );
|
|
|
-
|
|
|
- this.objGizmoManagerTwo.gizmos.rotationGizmo.xGizmo.isEnabled = false;
|
|
|
- this.objGizmoManagerTwo.gizmos.rotationGizmo.yGizmo.isEnabled = false;
|
|
|
- this.objGizmoManagerTwo.gizmos.rotationGizmo.zGizmo.isEnabled = true;
|
|
|
-
|
|
|
- // // 清空所有的事件
|
|
|
- // this.objGizmoManagerTwo.gizmos.rotationGizmo.onDragStartObservable.clear();
|
|
|
- // // 添加事件
|
|
|
- // this.objGizmoManagerTwo.gizmos.rotationGizmo.onDragStartObservable.add(function() {
|
|
|
- // // console.log("【旋转】开始", this.objGizmoManagerOne._attachedMesh);
|
|
|
- // });
|
|
|
-
|
|
|
- // 清空所有的事件
|
|
|
- this.objGizmoManagerTwo.gizmos.rotationGizmo.onDragEndObservable.clear();
|
|
|
- // 添加事件
|
|
|
- this.objGizmoManagerTwo.gizmos.rotationGizmo.onDragEndObservable.add(function() {
|
|
|
- // console.log(
|
|
|
- // "【旋转】结束 2222222222 ",
|
|
|
- // // objGizmoManagerTwo._attachedMesh,
|
|
|
- // // objGizmoManagerTwo._attachedMesh.absoluteRotationQuaternion,
|
|
|
- // objGizmoManagerTwo._attachedMesh.rotationQuaternion,
|
|
|
- // );
|
|
|
-
|
|
|
- thisObj.work_20_event(thisObj.objGizmoManagerOne._attachedMesh, thisObj.objGizmoManagerTwo._attachedMesh);
|
|
|
-
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 打开井盖
|
|
|
- public work_21 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.threeWorldMask = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- this.tipsBtnsUpOpenEvent(false);
|
|
|
- this.tipsBtnsDownOpenEvent(false);
|
|
|
-
|
|
|
- this.animationAllTypeUpdate("manholeCoverZero");
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("打开井盖", false);
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "设备下井工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- ""
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = false;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showThreeWorldIndicateViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 打开井盖,触发动画
|
|
|
- * objMesh 被点击的目标物体
|
|
|
- * statue 流程状态
|
|
|
- */
|
|
|
- public openManholeCover = (objMesh : any, statue : any) => {
|
|
|
-
|
|
|
- let thisObj = this;
|
|
|
-
|
|
|
- if (objMesh == null || objMesh == undefined) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- if (statue != "打开井盖") {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- if (
|
|
|
-
|
|
|
- objMesh.id == "model_1712911455459井盖002"
|
|
|
-
|
|
|
- ) {
|
|
|
-
|
|
|
- let list = [
|
|
|
-
|
|
|
- { "name" : "井盖002", "speed" : 3, "from" : 0, "to" : 120 },
|
|
|
- { "name" : "井盖002|西区实训基地|BaseLayer", "speed" : 3, "from" : 0, "to" : 120 },
|
|
|
-
|
|
|
- ];
|
|
|
-
|
|
|
- for (let i = 0; i < list.length; i++) {
|
|
|
-
|
|
|
- let thisList = list[i];
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().animationGroupsEventCallback(
|
|
|
- thisList.name, 'start', thisList.speed, thisList.from, thisList.to, false, null, function(state : any, objAnimation : any) {
|
|
|
-
|
|
|
- if (state == "播放完成") {
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- thisObj.tipsBtnsUpOpenEvent(true);
|
|
|
- thisObj.tipsBtnsDownOpenEvent(true);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showCongratulationsViewBool = true;
|
|
|
- courseChapter3dShow().show.showEndViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- // 下井视频
|
|
|
- public work_22 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("划安全区");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- // 设置角色到地面的区域位置
|
|
|
- this.roleRegion();
|
|
|
-
|
|
|
- courseChapter3dShow().show.showVideoTitle = "下井视频";
|
|
|
- courseChapter3dShow().show.showVideoUrl = "https://www.3dyzt.com/eduTrain/video/4_CCTV检测机器人下井操作.mp4";
|
|
|
- courseChapter3dShow().show.showVideoViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- // 设备回收视频
|
|
|
- public work_23 = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("划安全区");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- // 设置角色到地面的区域位置
|
|
|
- this.roleRegion();
|
|
|
-
|
|
|
- courseChapter3dShow().show.showVideoTitle = "设备回收视频";
|
|
|
- courseChapter3dShow().show.showVideoUrl = "https://www.3dyzt.com/eduTrain/video/6_CCTV检测机器人回收操作.mp4";
|
|
|
- courseChapter3dShow().show.showVideoViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 作业前准备工作1
|
|
|
- */
|
|
|
- public preparationWorkBeforeHomework1Event = () => {
|
|
|
-
|
|
|
- this.workRoleClothingUpdate("no", false);
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("制服");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = true;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- "1、安全防护设备穿戴 作业人员在抵达作业现场时,必须穿醒目的带反光警示标志工作服(或反光衣)和佩好安全帽。"
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "立即穿戴";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "立即穿戴";
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 划安全区 动画回归位置
|
|
|
- */
|
|
|
- public animationAllFpsToZeroSecurityZone = () => {
|
|
|
-
|
|
|
- let list = [
|
|
|
- "安全桩001|西区实训基地-烘|BaseLayer",
|
|
|
- "安全桩002|西区实训基地-烘|BaseLayer",
|
|
|
- "安全桩003|西区实训基地-烘|BaseLayer",
|
|
|
- "安全桩004|西区实训基地-烘|BaseLayer",
|
|
|
- ];
|
|
|
-
|
|
|
- for (let i = 0; i < list.length; i++) {
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().animationGroupsEventCallback(
|
|
|
- list[i], 'start', 1, 0, 0, false, null, function(state : any, objAnimation : any) {
|
|
|
-
|
|
|
- if (state == "播放完成") {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- };
|
|
|
-
|
|
|
- /**
|
|
|
- * 安全桩 划安全区
|
|
|
- * name 动画名字
|
|
|
- */
|
|
|
- public animationSecurityZoneStart = (name : String) => {
|
|
|
-
|
|
|
- let thisObj = this;
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().animationGroupsEventCallback(
|
|
|
- name, 'start', 1, null, null, false, null, function(state : any, objAnimation : any) {
|
|
|
-
|
|
|
- if (state == "播放完成") {
|
|
|
-
|
|
|
- if (name == "安全桩001|西区实训基地-烘|BaseLayer") {
|
|
|
- thisObj.animationSecurityZoneStart("安全桩002|西区实训基地-烘|BaseLayer");
|
|
|
- } else if (name == "安全桩002|西区实训基地-烘|BaseLayer") {
|
|
|
- thisObj.animationSecurityZoneStart("安全桩003|西区实训基地-烘|BaseLayer");
|
|
|
- } else if (name == "安全桩003|西区实训基地-烘|BaseLayer") {
|
|
|
- thisObj.animationSecurityZoneStart("安全桩004|西区实训基地-烘|BaseLayer");
|
|
|
- }
|
|
|
-
|
|
|
- // console.log(
|
|
|
- // "const animationSecurityZoneStart = (name : String) => {",
|
|
|
- // name
|
|
|
- // );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 作业前准备工作2
|
|
|
- */
|
|
|
- public preparationWorkBeforeHomework2Event = () => {
|
|
|
-
|
|
|
- this.animationAllFpsToZeroSecurityZone();
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("划安全区");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = true;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- "2、摆放反光锥",
|
|
|
- "管井口四周摆放安全警示反光锥。",
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "去摆放";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "去摆放";
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 作业前准备工作3
|
|
|
- */
|
|
|
- public preparationWorkBeforeHomework3Event = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("划安全区");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- "(1)确认管道水位情况",
|
|
|
- "确认管道水位不大于管道直径20%,若管道水位大于管道直径20%,进行管道封堵、导流;",
|
|
|
- "如需管道封堵、导流,提供开展封堵、导流提醒,并显示封堵、导流完成结果即可:",
|
|
|
- "(2)管道疏通、清洗",
|
|
|
- "当开展结构性,需针对管道进行疏通、清洗。提供开展高压清洗车进行清洗提醒,并疏通、清洗完成结果即可;",
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 作业前准备工作4
|
|
|
- */
|
|
|
- public preparationWorkBeforeHomework4Event = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("划安全区");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "作业前准备工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- "确认管道水位不大于管道直径20%,若管道水位大于管道直径20%,进行管道封堵、导流;",
|
|
|
- "如需管道封堵、导流,提供开展封堵、导流提醒,并显示封堵、导流完成结果即可:",
|
|
|
- "(2)管道疏通、清洗",
|
|
|
- "当开展结构性,需针对管道进行疏通、清洗。提供开展高压清洗车进行清洗提醒,并疏通、清洗完成结果即可;",
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 设备连接工作1
|
|
|
- */
|
|
|
- public deviceConnectionWork1Event = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("检测车");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "设备连接工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // courseChapter3dShow().show.showLinkOkViewBool = true;
|
|
|
- // courseChapter3dShow().show.showToolMenuRightViewBool = true;
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().animationGroupsEventCallback(
|
|
|
- "巡检车拆解", 'start', 1, null, null, false, null, function(state : any, objAnimation : any) {
|
|
|
-
|
|
|
- if (state == "播放完成") {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 设备连接工作2
|
|
|
- */
|
|
|
- public deviceConnectionWork2Event = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- // threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("相机降低");
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("检测车组");
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "设备连接工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- // courseChapter3dShow().show.showLinkOkViewBool = true;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToolMenuRightViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 设备调试工作
|
|
|
- */
|
|
|
- public equipmentDebuggingWorkEvent = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.showVideoTitle = "软件操作录屏视频";
|
|
|
- courseChapter3dShow().show.showVideoUrl = "https://www.3dyzt.com/eduTrain/video/3_CCTV检测机器人控制软件介绍.mp4";
|
|
|
- courseChapter3dShow().show.showVideoViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 录制准备视频
|
|
|
- public recordPreparationVideoEvent = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
- courseChapter3dShow().show.showVideoTitle = "录制准备";
|
|
|
- courseChapter3dShow().show.showVideoUrl = "https://www.3dyzt.com/eduTrain/video/3_CCTV检测机器人控制软件介绍.mp4";
|
|
|
- courseChapter3dShow().show.showVideoViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 设备下井工作1
|
|
|
- public equipmentDownHoleWork1Event = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("相机降低");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "设备下井工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = true;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- "1.将抬升支架降至最低",
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "将抬升支架降至最低";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "3D操作";
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 设备下井工作2
|
|
|
- public equipmentDownHoleWork2Event = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("相机降低");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "设备下井工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = true;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- "2.镜头旋转至正上方",
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "镜头旋转至正上方";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "3D操作";
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 设备下井工作3
|
|
|
- public equipmentDownHoleWork3Event = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("相机降低");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "设备下井工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = true;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- "3.摆放线缆盘,线缆盘方向与爬行器爬行的方向一致",
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "摆放线缆盘线缆盘方向与爬行器爬行的方向一致";
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "3D操作";
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 设备下井工作4
|
|
|
- public equipmentDownHoleWork4Event = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("相机降低");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "设备下井工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- "4.设备下井,云台摄像机朝下;设备下井时,应避免车体尾部线缆与井口、管壁发生摩擦导致线缆破损,线缆不能强拉硬拽。(建议在检测机器人尾部套入PVC水管弯头或购买导向轮,用于保护线缆)5.快到井底,尾部先下,镜头后下",
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "";
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 设备下井工作5
|
|
|
- public equipmentDownHoleWork5Event = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("相机上升");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showVideoBgBool = false;
|
|
|
- courseChapter3dShow().show.showVideoTitle = "下井视频演示";
|
|
|
- courseChapter3dShow().show.showVideoUrl = "https://www.3dyzt.com/eduTrain/video/4_CCTV检测机器人下井操作.mp4";
|
|
|
- courseChapter3dShow().show.showVideoViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 设备下井工作6
|
|
|
- public equipmentDownHoleWork6Event = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("相机降低");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "设备下井工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = true;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- "6.镜头归位",
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "镜头归位";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "3D操作";
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 设备下井工作7
|
|
|
- public equipmentDownHoleWork7Event = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("相机降低");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "设备下井工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = true;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- "7.调节行驶方向,正确放置过线滑轮",
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "调节行驶方向正确放置过线滑轮";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "3D操作";
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 下井检测
|
|
|
- public downHoleInspectionEvent = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
-
|
|
|
- courseChapter3dShow().show.courseChapter3dMainStyle = "z-index:107;";
|
|
|
-
|
|
|
- // 切换到车的相机
|
|
|
- this.arcRotateCameraCarUpdate(true);
|
|
|
- // @ts-ignore 关闭键盘的操作
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonEvent.find().keyEventOpenApi = false;
|
|
|
- // 使用灯光
|
|
|
- // courseChapter3dShow().show.lightMain = 50;
|
|
|
- courseChapter3dShow().show.lightMain = 10;
|
|
|
- // courseChapter3dShow().show.lightAssist = 50;
|
|
|
- courseChapter3dShow().show.lightAssist = 0;
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("问题点");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- let thisBirthPoint = courseChapter3dShow().show.birthPoint["下井检测"];
|
|
|
-
|
|
|
-
|
|
|
- // console.log(
|
|
|
- // "threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().cameraConfig",
|
|
|
- // // @ts-ignore
|
|
|
- // threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().cameraConfig,
|
|
|
- // thisBirthPoint
|
|
|
- // );
|
|
|
-
|
|
|
- // // 优先更新位置坐标,让后续切换到下井是直接切换
|
|
|
- // // @ts-ignore
|
|
|
- // threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().cameraConfig.alpha = thisBirthPoint.alpha;
|
|
|
- // // @ts-ignore
|
|
|
- // threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().cameraConfig.beta = thisBirthPoint.beta;
|
|
|
- // // @ts-ignore
|
|
|
- // threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().cameraConfig.position = thisBirthPoint.position;
|
|
|
- // // @ts-ignore
|
|
|
- // threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().cameraConfig.positionTarget = thisBirthPoint.positionTarget;
|
|
|
- // // @ts-ignore
|
|
|
- // threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().cameraConfig.radius = thisBirthPoint.radius;
|
|
|
-
|
|
|
-
|
|
|
- // // @ts-ignore
|
|
|
- // threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().roleConfig.alpha = thisBirthPoint.alpha;
|
|
|
- // // @ts-ignore
|
|
|
- // threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().roleConfig.beta = thisBirthPoint.beta;
|
|
|
- // // @ts-ignore
|
|
|
- // threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().roleConfig.position = thisBirthPoint.position;
|
|
|
- // // @ts-ignore
|
|
|
- // threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().roleConfig.positionTarget = thisBirthPoint.positionTarget;
|
|
|
- // // @ts-ignore
|
|
|
- // threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().roleConfig.radius = thisBirthPoint.radius;
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- let objRole = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.Role.find().objRole;
|
|
|
- // @ts-ignore
|
|
|
- let CommonVal = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal;
|
|
|
-
|
|
|
- objRole.position.x = thisBirthPoint.positionTarget.x;
|
|
|
- objRole.position.y = thisBirthPoint.positionTarget.y;
|
|
|
- objRole.position.z = thisBirthPoint.positionTarget.z;
|
|
|
-
|
|
|
- CommonVal.find().objSceneActiveCamera.alpha = thisBirthPoint.alpha;
|
|
|
- CommonVal.find().objSceneActiveCamera.beta = thisBirthPoint.beta;
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().releaseCameraVisualAngle = 0;
|
|
|
- // @ts-ignore 第一人称视角
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CameraArray.find().cameraVisualAngle = 0;
|
|
|
-
|
|
|
-
|
|
|
- // // @ts-ignore
|
|
|
- // threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().cameraConfig
|
|
|
-
|
|
|
- // this.cameraConfig = {
|
|
|
- // position : {
|
|
|
- // x : -0.041237659846068725,
|
|
|
- // y : 1.987358447239373,
|
|
|
- // z : 6.459729812549235
|
|
|
- // },
|
|
|
- // alpha : 1.6103164322646395,
|
|
|
- // beta : 1.4550484068033844,
|
|
|
- // radius : 5.169452113030256,
|
|
|
- // positionTarget : {
|
|
|
- // x : 0.1616397954342349,
|
|
|
- // y : 1.3903403041312212,
|
|
|
- // z : 1.3288775223491305
|
|
|
- // },
|
|
|
- // // 移动速度, 等于 null , 则会自动以 Role.find().speed 速度为准
|
|
|
- // speedMove : null,
|
|
|
- // };
|
|
|
-
|
|
|
- // @ts-ignore 切换到第一人称
|
|
|
- // threeWorld().obj.newIframe.modelPeopleLook(0);
|
|
|
-
|
|
|
- setTimeout(function() {
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.$(".previewBtnMove").css("display", "none");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.$(".previewBtnAction").css("display", "none");
|
|
|
- }, 1000);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- courseChapter3dShow().show.showCarEyeViewBool = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // 设备归位工作
|
|
|
- public equipmentRepositioningWorkEvent = () => {
|
|
|
-
|
|
|
- this.viewHide();
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("划安全区");
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showTitleTxt = "设备归位工作";
|
|
|
- courseChapter3dShow().show.showTitleViewBool = true;
|
|
|
-
|
|
|
- courseChapter3dShow().show.showToastBtnOpen = false;
|
|
|
- courseChapter3dShow().show.showToastTxtList = [
|
|
|
- "现场监督人员签字",
|
|
|
- ];
|
|
|
- courseChapter3dShow().show.showToastViewBool = true;
|
|
|
-
|
|
|
- // 配置状态,后续关闭隐藏后,触发不同的逻辑
|
|
|
- courseChapter3dShow().show.showToastState = "";
|
|
|
- courseChapter3dShow().show.showToastBtnTxt = "3D操作";
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 确定点击到了人物了,此时触发穿衣服逻辑
|
|
|
- * objMesh 被点击的目标物体
|
|
|
- * statue 流程状态
|
|
|
- */
|
|
|
- public wearingClothes = (objMesh : any, statue : any) => {
|
|
|
-
|
|
|
- if (objMesh == null || objMesh == undefined) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- if (statue != "请点击人物进行穿搭衣服") {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- // @ts-ignore
|
|
|
- let roleCode = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.Role.find().roleCode;
|
|
|
-
|
|
|
- console.log(
|
|
|
- "确定点击到了人物了,此时触发穿衣服逻辑",
|
|
|
- objMesh.id,
|
|
|
- roleCode
|
|
|
- );
|
|
|
-
|
|
|
-
|
|
|
- // if (
|
|
|
- // // 点击到人物了
|
|
|
- // objMesh.id.indexOf(roleCode) >= 0
|
|
|
- // || objMesh.id == "exhibition_html_1710834647553_裤子"
|
|
|
- // || objMesh.id == "exhibition_html_1710834647553_鞋子"
|
|
|
- // || objMesh.id == "exhibition_html_1710834647553_安全帽"
|
|
|
- // || objMesh.id == "exhibition_html_1710834647553_上衣"
|
|
|
- // ) {
|
|
|
-
|
|
|
- // this.workRoleClothingUpdate("yes", false);
|
|
|
-
|
|
|
- // // 隐藏对应的物体
|
|
|
- // let meshHideList = [
|
|
|
- // "exhibition_html_1710834647553_裤子",
|
|
|
- // "exhibition_html_1710834647553_鞋子",
|
|
|
- // "exhibition_html_1710834647553_安全帽",
|
|
|
- // "exhibition_html_1710834647553_上衣",
|
|
|
- // ];
|
|
|
-
|
|
|
- // for (let i = 0; i < meshHideList.length; i++) {
|
|
|
-
|
|
|
- // let thisMeshHideList = meshHideList[i];
|
|
|
- // // @ts-ignore
|
|
|
- // let objMesh = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objScene.getMeshById(thisMeshHideList);
|
|
|
- // if (objMesh != null && objMesh != undefined) {
|
|
|
- // objMesh.visibility = 0;
|
|
|
- // }
|
|
|
-
|
|
|
- // }
|
|
|
-
|
|
|
- // // 播放完成穿衣服的逻辑
|
|
|
- // courseChapter3dShow().show.showCongratulationsViewBool = true;
|
|
|
- // courseChapter3dShow().show.showEndViewBool = true;
|
|
|
-
|
|
|
- // // 上一步和下一步是否显示
|
|
|
- // this.tipsBtnsUpOpenEvent(true);
|
|
|
- // this.tipsBtnsDownOpenEvent(true);
|
|
|
-
|
|
|
- // }
|
|
|
-
|
|
|
- let thisObj = this;
|
|
|
-
|
|
|
- if (
|
|
|
- objMesh.id == "exhibition_html_1710899716162_安全帽"
|
|
|
- || objMesh.id == "exhibition_html_1710899716162_鞋子"
|
|
|
- || objMesh.id == "exhibition_html_1710899716162_上衣"
|
|
|
- || objMesh.id == "exhibition_html_1710899716162_巡检员_primitive0"
|
|
|
- || objMesh.id == "exhibition_html_1710899716162_巡检员_primitive1"
|
|
|
- || objMesh.id == "exhibition_html_1710899716162_裤子"
|
|
|
- ) {
|
|
|
-
|
|
|
- // 播放对应的动画
|
|
|
- let list = [
|
|
|
-
|
|
|
- { "name" : "鞋子|", "speed" : 1, "from" : 0, "to" : 82 },
|
|
|
- { "name" : "安全帽", "speed" : 1, "from" : 0, "to" : 82 },
|
|
|
- { "name" : "裤子", "speed" : 1, "from" : 0, "to" : 82 },
|
|
|
- { "name" : "上衣", "speed" : 1, "from" : 0, "to" : 82 },
|
|
|
-
|
|
|
- ];
|
|
|
-
|
|
|
- for (let i = 0; i < list.length; i++) {
|
|
|
-
|
|
|
- let thisList = list[i];
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().animationGroupsEventCallback(
|
|
|
- thisList.name, 'start', thisList.speed, thisList.from, thisList.to, false, null, function(state : any, objAnimation : any) {
|
|
|
-
|
|
|
- if (state == "播放完成") {
|
|
|
-
|
|
|
- // 播放完成穿衣服的逻辑
|
|
|
- courseChapter3dShow().show.showCongratulationsViewBool = true;
|
|
|
- courseChapter3dShow().show.showEndViewBool = true;
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- thisObj.tipsBtnsUpOpenEvent(true);
|
|
|
- thisObj.tipsBtnsDownOpenEvent(true);
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 将盒子拆开把设备拿出来,触发动画
|
|
|
- * objMesh 被点击的目标物体
|
|
|
- * statue 流程状态
|
|
|
- */
|
|
|
- public openBox = (objMesh : any, statue : any) => {
|
|
|
-
|
|
|
- let thisObj = this;
|
|
|
-
|
|
|
- if (objMesh == null || objMesh == undefined) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- if (statue != "将盒子拆开把设备拿出来") {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- // console.log(
|
|
|
- // "将盒子拆开把设备拿出来,触发动画",
|
|
|
- // objMesh.id
|
|
|
- // );
|
|
|
-
|
|
|
- if (
|
|
|
-
|
|
|
- objMesh.id == "exhibition_html_1710385814466_爬行车盒04"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_爬行车盒01"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_爬行车盒02"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_爬行车盒03"
|
|
|
-
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_绕线车盒03"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_绕线车盒01"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_绕线车盒02"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_绕线车盒04"
|
|
|
-
|
|
|
- ) {
|
|
|
-
|
|
|
- let list = [
|
|
|
-
|
|
|
- { "name" : "绕线车盒021", "speed" : 1, "from" : 0, "to" : 61 },
|
|
|
- { "name" : "绕线车盒041", "speed" : 1, "from" : 0, "to" : 61 },
|
|
|
- { "name" : "爬行车盒031", "speed" : 1, "from" : 0, "to" : 61 },
|
|
|
- { "name" : "爬行车盒021", "speed" : 1, "from" : 0, "to" : 61 },
|
|
|
- { "name" : "爬行车盒041", "speed" : 1, "from" : 0, "to" : 61 },
|
|
|
- { "name" : "绕线车盒031", "speed" : 1, "from" : 0, "to" : 61 },
|
|
|
- { "name" : "Armature", "speed" : 1, "from" : 0, "to" : 61 },
|
|
|
-
|
|
|
- ];
|
|
|
-
|
|
|
- for (let i = 0; i < list.length; i++) {
|
|
|
-
|
|
|
- let thisList = list[i];
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().animationGroupsEventCallback(
|
|
|
- thisList.name, 'start', thisList.speed, thisList.from, thisList.to, false, null, function(state : any, objAnimation : any) {
|
|
|
-
|
|
|
- if (state == "播放完成") {
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- thisObj.tipsBtnsUpOpenEvent(true);
|
|
|
- thisObj.tipsBtnsDownOpenEvent(true);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showCongratulationsViewBool = true;
|
|
|
- courseChapter3dShow().show.showEndViewBool = true;
|
|
|
-
|
|
|
- thisObj.partEvent();
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 将绕线车的电缆安装到正确的位置,触发动画
|
|
|
- * objMesh 被点击的目标物体
|
|
|
- * statue 流程状态
|
|
|
- */
|
|
|
- public openCable = (objMesh : any, statue : any) => {
|
|
|
-
|
|
|
- let thisObj = this;
|
|
|
-
|
|
|
- if (objMesh == null || objMesh == undefined) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- if (statue != "将绕线车的电缆安装到正确的位置") {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- // console.log(
|
|
|
- // "将盒子拆开把设备拿出来,触发动画",
|
|
|
- // objMesh.id
|
|
|
- // );
|
|
|
-
|
|
|
- if (
|
|
|
-
|
|
|
- objMesh.id == "exhibition_html_1710385814466_电缆01_primitive0"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_电缆01_primitive1"
|
|
|
- || objMesh.id == "exhibition_html_1710385814466_绕线车-电缆"
|
|
|
- ) {
|
|
|
-
|
|
|
- let list = [
|
|
|
-
|
|
|
- { "name" : "电缆01", "speed" : 1, "from" : 0, "to" : 80 },
|
|
|
-
|
|
|
- ];
|
|
|
-
|
|
|
- for (let i = 0; i < list.length; i++) {
|
|
|
-
|
|
|
- let thisList = list[i];
|
|
|
- // @ts-ignore
|
|
|
- threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().animationGroupsEventCallback(
|
|
|
- thisList.name, 'start', thisList.speed, thisList.from, thisList.to, false, null, function(state : any, objAnimation : any) {
|
|
|
-
|
|
|
- if (state == "播放完成") {
|
|
|
-
|
|
|
- thisObj.dianLan();
|
|
|
-
|
|
|
- // 上一步和下一步是否显示
|
|
|
- thisObj.tipsBtnsUpOpenEvent(true);
|
|
|
- thisObj.tipsBtnsDownOpenEvent(true);
|
|
|
-
|
|
|
- courseChapter3dShow().show.showCongratulationsViewBool = true;
|
|
|
- courseChapter3dShow().show.showEndViewBool = true;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 电缆物体显示出来
|
|
|
- */
|
|
|
- public dianLan = () => {
|
|
|
-
|
|
|
- // @ts-ignore 显示对应的物体
|
|
|
- let dianLanMesh = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objScene.getMeshById("exhibition_html_1709910293850_电缆-特效");
|
|
|
-
|
|
|
- if (dianLanMesh != null && dianLanMesh != undefined) {
|
|
|
- dianLanMesh.visibility = 1;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 根据指定的流程,来切换播放的声音
|
|
|
- * name 流程名称
|
|
|
- * type 播放的字段,例如 start 或者 end 等后续扩展
|
|
|
- *
|
|
|
- */
|
|
|
- public musicConfigPlay = (name : any, type : any) => {
|
|
|
-
|
|
|
- if (this.musicConfig[name] == null || this.musicConfig[name] == undefined) {
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
- if (this.musicConfig[name][type] == null || this.musicConfig[name][type] == undefined) {
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
- let config = this.musicConfig[name][type];
|
|
|
-
|
|
|
-
|
|
|
- if (this.objModelHtml5Audio != null && this.objModelHtml5Audio != undefined) {
|
|
|
- this.objModelHtml5Audio.pause();
|
|
|
- }
|
|
|
-
|
|
|
- // console.log(
|
|
|
- // "播放声音", config
|
|
|
- // );
|
|
|
-
|
|
|
- // 设置播放音乐的文件,或者地址
|
|
|
- this.objModelHtml5Audio.setUrl(config);
|
|
|
-
|
|
|
- // 不需要循环播放
|
|
|
- this.objModelHtml5Audio.loopClose();
|
|
|
- // 继续播放音乐
|
|
|
- this.objModelHtml5Audio.start();
|
|
|
-
|
|
|
- // console.log(
|
|
|
- // "播放的音乐",
|
|
|
- // config,
|
|
|
- // this.objModelHtml5Audio
|
|
|
- // );
|
|
|
-
|
|
|
- return this;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-}
|