개정판 e053e26b
xml 내 Symbol에 StartPoint, Size 노드 추가
DTI_PID/DTI_PID/XmlGenerator.py | ||
---|---|---|
28 | 28 |
SSUB_ORIGINAL_POINT = "ORIGINALPOINT" |
29 | 29 |
SSUB_DECO_DIRECTION = "DECODIRECTION" |
30 | 30 |
SSUB_ANGLE = "ANGLE" |
31 |
SSUB_START_POINT = "STARTPOINT" |
|
32 |
SSUB_SIZE = "SIZE" |
|
31 | 33 |
|
32 | 34 |
|
33 | 35 |
|
... | ... | |
99 | 101 |
sText = symbol.getText() |
100 | 102 |
sOriginalPoint = symbol.getOriginalPoint() |
101 | 103 |
sDecoDirection = symbol.getDecoDirection() |
104 |
sWidth = symbol.getWidth() |
|
105 |
sHeight = symbol.getHeight() |
|
102 | 106 |
|
103 | 107 |
sCategoryNode = Element(SCATEGORY_NODE_NAME) |
104 | 108 |
|
... | ... | |
139 | 143 |
sTextNode = Element(SSUB_TEXT) |
140 | 144 |
sTextNode.text = sText |
141 | 145 |
|
146 |
sStartPointNode = Element(SSUB_START_POINT) |
|
147 |
sStartPointNode.text = str(sSp[0]) + "," + str(sSp[1]) |
|
148 |
|
|
149 |
sSizeNode = Element(SSUB_SIZE) |
|
150 |
sSizeNode.text = str(sWidth) + "," + str(sHeight) |
|
151 |
|
|
142 | 152 |
sCategoryNode.append(sSystemPathNode) |
143 | 153 |
sCategoryNode.append(sNameNode) |
144 | 154 |
sCategoryNode.append(sClassNode) |
... | ... | |
147 | 157 |
sCategoryNode.append(sOriginalPointNode) |
148 | 158 |
sCategoryNode.append(sAngleNode) |
149 | 159 |
sCategoryNode.append(sTextNode) |
160 |
sCategoryNode.append(sStartPointNode) |
|
161 |
sCategoryNode.append(sSizeNode) |
|
150 | 162 |
|
151 | 163 |
return sCategoryNode |
152 | 164 |
|
내보내기 Unified diff