개정판 2ccb1c69
issue #1202: calculate press drop(45%)
Change-Id: I9baaf5db6b8cc2a4537629b022866ddfe4c5c0d8
HYTOS/HYTOS/Shapes/SymbolSvgItem.py | ||
---|---|---|
231 | 231 |
''' |
232 | 232 |
def buildItem(self, name, _type, angle, scale, loc, origin, connPts, dbUid=None, pointsUids=None): |
233 | 233 |
try: |
234 |
if not hasattr(self, 'counters'): self.counters = {} |
|
235 |
if name in self.counters: |
|
236 |
self.counters[name] += 1 |
|
237 |
else: self.counters[name] = 1 |
|
238 |
|
|
234 | 239 |
self.name = name |
240 |
self.index = self.counters[name] |
|
235 | 241 |
self.type = _type |
236 | 242 |
self.angle = angle |
237 | 243 |
self._scale = scale |
내보내기 Unified diff