|
|
@ -11,6 +11,7 @@ import { Event_MarkInfoChange, MarkInfoChangeType } from "../../controller/event |
|
|
|
import { InputController } from "../../controller/inputController"; |
|
|
|
import { InputController } from "../../controller/inputController"; |
|
|
|
import { ModeManager, ModeType } from "../../controller/mode-manager"; |
|
|
|
import { ModeManager, ModeType } from "../../controller/mode-manager"; |
|
|
|
import { SceneManager } from "../../controller/scene-manager"; |
|
|
|
import { SceneManager } from "../../controller/scene-manager"; |
|
|
|
|
|
|
|
import { ServeManager } from "../../controller/serve-manager"; |
|
|
|
import { BuildingStatus } from "../../controller/status/building-status"; |
|
|
|
import { BuildingStatus } from "../../controller/status/building-status"; |
|
|
|
import { IndoorStatus } from "../../controller/status/indoor-status"; |
|
|
|
import { IndoorStatus } from "../../controller/status/indoor-status"; |
|
|
|
import { StatusManager } from "../../controller/status/status-manager"; |
|
|
|
import { StatusManager } from "../../controller/status/status-manager"; |
|
|
@ -18,6 +19,7 @@ import { UIManager } from "../../controller/ui-manager"; |
|
|
|
import { ArcRotateCameraData } from "../../model/data/camera-data"; |
|
|
|
import { ArcRotateCameraData } from "../../model/data/camera-data"; |
|
|
|
import { MarkData, MarkKindType, MarkTagPos, MarkType } from "../../model/data/mark/mark-data"; |
|
|
|
import { MarkData, MarkKindType, MarkTagPos, MarkType } from "../../model/data/mark/mark-data"; |
|
|
|
import { AllMarkPlanData, MarkNodeData, MarkPlanData, WeatherType, WindDirectionType, EnvironmentData, NatureData } from "../../model/data/mark/mark-plan-data"; |
|
|
|
import { AllMarkPlanData, MarkNodeData, MarkPlanData, WeatherType, WindDirectionType, EnvironmentData, NatureData } from "../../model/data/mark/mark-plan-data"; |
|
|
|
|
|
|
|
import { MarkTemplate } from "../../model/data/mark/mark-template-data"; |
|
|
|
import { ModelType } from "../../model/data/model-data/model-data"; |
|
|
|
import { ModelType } from "../../model/data/model-data/model-data"; |
|
|
|
import { FacilityType } from "../../model/data/model-data/model-data-facility"; |
|
|
|
import { FacilityType } from "../../model/data/model-data/model-data-facility"; |
|
|
|
import { BuildingInfo } from "../../model/info/building/building-info"; |
|
|
|
import { BuildingInfo } from "../../model/info/building/building-info"; |
|
|
@ -1329,11 +1331,11 @@ export class MarkWindow extends UIBase { |
|
|
|
let markData = environmentData.markDatas[i]; |
|
|
|
let markData = environmentData.markDatas[i]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (markData.belongtoBuildingId == key) { |
|
|
|
//if (markData.belongtoBuildingId == key) {
|
|
|
|
this.createMark(0, markData, false, null, buildingInfo, true, null, (modelInfo: ModelInfo_mark) => { |
|
|
|
this.createMark(0, markData, false, null, buildingInfo, true, null, (modelInfo: ModelInfo_mark) => { |
|
|
|
modelInfo.showFollowUI(instance.isShowProperty3d); |
|
|
|
modelInfo.showFollowUI(instance.isShowProperty3d); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
//}
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.shouWaterSource(this.isShowWaterSource); |
|
|
|
this.shouWaterSource(this.isShowWaterSource); |
|
|
@ -1581,5 +1583,53 @@ export class MarkWindow extends UIBase { |
|
|
|
//#endregion
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//#region 应急模板
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 所有应急模板 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
allSandBoxTemplate: MarkTemplate[]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 获取所有沙盒模板 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
getAllSandBoxTemplate() { |
|
|
|
|
|
|
|
let instance = this; |
|
|
|
|
|
|
|
this.allSandBoxTemplate = []; |
|
|
|
|
|
|
|
ServeManager.instance.getAllMarkTemplate((data: string) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 获取一个模板的详细内容 |
|
|
|
|
|
|
|
* @param id
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
getOneSandBoxTemplate(id: number) { |
|
|
|
|
|
|
|
let instance = this; |
|
|
|
|
|
|
|
ServeManager.instance.getOneMarkTemplate(id, (data: string) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 保存为模板 |
|
|
|
|
|
|
|
* @param id
|
|
|
|
|
|
|
|
* @param name
|
|
|
|
|
|
|
|
* @param data
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
saveToSandBoxTemplate(id: number, name: string, data: MarkPlanData) { |
|
|
|
|
|
|
|
let instance = this; |
|
|
|
|
|
|
|
ServeManager.instance.saveOneMarkTemplate(id, name, data, (data: string) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|