|
|
@ -1,6 +1,7 @@ |
|
|
|
import { EventManager } from "@angular/platform-browser"; |
|
|
|
import { EventManager } from "@angular/platform-browser"; |
|
|
|
import { AbstractMesh, Ray, RayHelper, Vector3 } from "@babylonjs/core"; |
|
|
|
import { AbstractMesh, Ray, RayHelper, Vector3 } from "@babylonjs/core"; |
|
|
|
import { classToClass } from "class-transformer"; |
|
|
|
import { classToClass } from "class-transformer"; |
|
|
|
|
|
|
|
import { PlanComponent } from "src/app/pages/plan/plan.component"; |
|
|
|
import { ModelChangeType } from "../../controller/data-manager"; |
|
|
|
import { ModelChangeType } from "../../controller/data-manager"; |
|
|
|
import { Event_KeyboardInput } from "../../controller/event-manager/events/event-keyboard-input"; |
|
|
|
import { Event_KeyboardInput } from "../../controller/event-manager/events/event-keyboard-input"; |
|
|
|
import { Event_ModelInfoChange } from "../../controller/event-manager/events/event-modelinfo-change"; |
|
|
|
import { Event_ModelInfoChange } from "../../controller/event-manager/events/event-modelinfo-change"; |
|
|
@ -23,7 +24,7 @@ import { FacilityInfoUIItem } from "./facilityinfo-ui-item"; |
|
|
|
//所有放在场景中的设备 信息界面
|
|
|
|
//所有放在场景中的设备 信息界面
|
|
|
|
export class FacilityInfoInSceneWindow extends UIBase { |
|
|
|
export class FacilityInfoInSceneWindow extends UIBase { |
|
|
|
static instance: FacilityInfoInSceneWindow; |
|
|
|
static instance: FacilityInfoInSceneWindow; |
|
|
|
// three: ThreeDimensionalHomeComponent;//前端组件
|
|
|
|
three: PlanComponent;//前端组件
|
|
|
|
// scrollView: ScrollViewer;
|
|
|
|
// scrollView: ScrollViewer;
|
|
|
|
// content: StackPanel;
|
|
|
|
// content: StackPanel;
|
|
|
|
|
|
|
|
|
|
|
@ -211,7 +212,7 @@ export class FacilityInfoInSceneWindow extends UIBase { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 根据类型获取数目 |
|
|
|
* 根据类型获取设备在UI中的显示状态 |
|
|
|
* @param facilityType
|
|
|
|
* @param facilityType
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
getFacilityUIShowType(facilityType: FacilityType): boolean { |
|
|
|
getFacilityUIShowType(facilityType: FacilityType): boolean { |
|
|
@ -221,7 +222,7 @@ export class FacilityInfoInSceneWindow extends UIBase { |
|
|
|
// return item.isShow;
|
|
|
|
// return item.isShow;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
return false; |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|