개정판 739d030a
issue #1054: 스트림 데이타 입력 세밀 조정
Change-Id: I2f8556a1e229d951973fbbe6c8f65bc90c2f5487
HYTOS/HYTOS/Shapes/EngineeringStreamlineItem.py | ||
---|---|---|
811 | 811 |
|
812 | 812 |
return rect |
813 | 813 |
|
814 |
def shape(self): |
|
815 |
"""return shape for non-rectangle shape""" |
|
816 |
path = None |
|
817 |
if self.isCreated: |
|
818 |
stroke = QPainterPathStroker() |
|
819 |
stroke.setWidth(10) |
|
820 |
return stroke.createStroke(self.path()) |
|
821 |
else: |
|
822 |
polygon = QPolygon() |
|
823 |
for pt in self._vertices: |
|
824 |
polygon.append(QPointF(pt[0], pt[1])) |
|
825 |
path = QPainterPath() |
|
826 |
path.addPolygon(polygon) |
|
827 |
|
|
828 |
return path |
|
829 |
|
|
830 |
|
|
814 | 831 |
''' |
815 | 832 |
@brief |
816 | 833 |
@author humkyung |
내보내기 Unified diff