|
@@ -12,6 +12,7 @@ import { SImageLegendItem } from '../items/SImageLegendItem';
|
|
|
import { SImageMarkerItem } from '../items/SImageMarkerItem';
|
|
|
import { SLineMarkerItem } from '../items/SLineMarkerItem';
|
|
|
import { STextMarkerItem } from '../items/STextMarkerItem';
|
|
|
+import { TipelineItem } from '../items/TipelineItem';
|
|
|
|
|
|
/**
|
|
|
* 拓扑图信息解析器
|
|
@@ -67,16 +68,16 @@ export class STopologyParser extends SParser {
|
|
|
* */
|
|
|
private addLegend(t: Legend): void {
|
|
|
if (t.GraphElementType == SGraphElementType.None) {
|
|
|
- let item = this.factory.createNoneLegend(t);
|
|
|
+ let item = new SNoneLegendItem(null, t);
|
|
|
this.noneLegendList.push(item);
|
|
|
} else if (t.GraphElementType == SGraphElementType.Line) {
|
|
|
- let item = this.factory.createLineLegend(t);
|
|
|
+ let item = new SLineLegendItem(null, t)
|
|
|
this.lineLegendList.push(item);
|
|
|
} else if (t.GraphElementType == SGraphElementType.Zone) {
|
|
|
- let item = this.factory.createZoneLegend(t);
|
|
|
+ let item = new SZoneLegendItem(null, t);
|
|
|
this.zoneLegendList.push(item);
|
|
|
} else if (t.GraphElementType == SGraphElementType.Image) {
|
|
|
- let item = this.factory.createImageLegend(t);
|
|
|
+ let item = new SImageLegendItem(null, t);
|
|
|
this.imageLegendList.push(item);
|
|
|
}
|
|
|
} // Function addNode()
|
|
@@ -88,13 +89,13 @@ export class STopologyParser extends SParser {
|
|
|
* */
|
|
|
private addMarker(t: Marker): void {
|
|
|
if (t.Type == SMarkerType.Image) {
|
|
|
- let item = this.factory.createImageMarker(t);
|
|
|
+ let item = new SImageMarkerItem(null, t);
|
|
|
this.imageMarkerList.push(item);
|
|
|
} else if (t.Type == SMarkerType.Line) {
|
|
|
- let item = this.factory.createLineMarker(t);
|
|
|
+ let item = new SLineMarkerItem(null, t);
|
|
|
this.lineMarkerList.push(item);
|
|
|
} else if (t.Type == SMarkerType.Text) {
|
|
|
- let item = this.factory.createTextMarker(t);
|
|
|
+ let item = new STextMarkerItem(null, t);
|
|
|
this.textMarkerList.push(item);
|
|
|
}
|
|
|
} // Function addMarker()
|
|
@@ -105,7 +106,7 @@ export class STopologyParser extends SParser {
|
|
|
* @param t 管线关系对象数据
|
|
|
* */
|
|
|
private addRelation(t: Relation): void {
|
|
|
- let item = this.factory.createRelation(t);
|
|
|
+ let item = new TipelineItem(null, t);
|
|
|
this.relationList.push(item);
|
|
|
} // Function addRelation()
|
|
|
} // class STopologyParser
|