개정판 a587998a
add line free drawing
Change-Id: I8bcc7ab7ef68f4e1298d842ec8a2def8b43b88dc
DTI_PID/DTI_PID/Commands/PlaceLineCommand.py | ||
---|---|---|
92 | 92 |
self._line_type = selected.lineType |
93 | 93 |
self.imageViewer.scene().addItem(self._polyline) |
94 | 94 |
self.imageViewer.scene().setFocusItem(self._polyline) |
95 |
elif selected is not None: |
|
96 |
self._polyline = QEngineeringPolylineItem() |
|
97 |
self._polyline._vertices.append([param[2].x(), param[2].y()]) |
|
98 |
self._line_type = None |
|
99 |
self.imageViewer.scene().addItem(self._polyline) |
|
100 |
self.imageViewer.scene().setFocusItem(self._polyline) |
|
95 | 101 |
else: |
96 | 102 |
try: |
97 | 103 |
QGraphicsView.mouseReleaseEvent(self.imageViewer, event) |
내보내기 Unified diff