You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
913 B
44 lines
913 B
|
|
import { ModelInfo_mark } from "src/app/babylon/model/info/mark/model-info-mark"; |
|
import { Event_Base } from "../event-base"; |
|
import { EventManager } from "../event-manager"; |
|
|
|
/** |
|
* MarkInfo(标绘物运行时数据)发生变化 |
|
*/ |
|
export class Event_MarkInfoChange extends Event_Base { |
|
|
|
eventType: MarkInfoChangeType; |
|
|
|
markInfo: ModelInfo_mark; |
|
|
|
static dispatch(eventType: MarkInfoChangeType, markInfo: ModelInfo_mark) { |
|
console.log("派发Event_MarkInfoChange"); |
|
let eventInfo = new Event_MarkInfoChange(); |
|
eventInfo.eventType = eventType; |
|
eventInfo.markInfo = markInfo; |
|
|
|
EventManager.dispatch(Event_MarkInfoChange, eventInfo); |
|
} |
|
} |
|
|
|
/** |
|
* 标绘物运行时数据发生变化 |
|
*/ |
|
export enum MarkInfoChangeType { |
|
|
|
/** |
|
* 创建 |
|
*/ |
|
Create, |
|
|
|
/** |
|
* 选中 |
|
*/ |
|
Select, |
|
/** |
|
* 取消选中 |
|
*/ |
|
UnSelect, |
|
|
|
} |