ROI fix - filled in missing rotate() method
This commit is contained in:
parent
48929a2aa6
commit
d1521dc7ed
@ -62,11 +62,11 @@ class ROI(GraphicsObject):
|
|||||||
|
|
||||||
self.handlePen = QtGui.QPen(QtGui.QColor(150, 255, 255))
|
self.handlePen = QtGui.QPen(QtGui.QColor(150, 255, 255))
|
||||||
self.handles = []
|
self.handles = []
|
||||||
self.state = {'pos': pos, 'size': size, 'angle': angle} ## angle is in degrees for ease of Qt integration
|
self.state = {'pos': Point(0,0), 'size': Point(1,1), 'angle': 0} ## angle is in degrees for ease of Qt integration
|
||||||
self.lastState = None
|
self.lastState = None
|
||||||
self.setPos(pos)
|
self.setPos(pos)
|
||||||
#self.rotate(-angle * 180. / np.pi)
|
self.setAngle(angle)
|
||||||
self.rotate(angle)
|
self.setSize(size)
|
||||||
self.setZValue(10)
|
self.setZValue(10)
|
||||||
self.isMoving = False
|
self.isMoving = False
|
||||||
|
|
||||||
@ -237,9 +237,8 @@ class ROI(GraphicsObject):
|
|||||||
#if 'update' not in kargs or kargs['update'] is True:
|
#if 'update' not in kargs or kargs['update'] is True:
|
||||||
#self.stateChanged()
|
#self.stateChanged()
|
||||||
|
|
||||||
def rotate(self, angle, center=(0,0), angleSnap=False, update=True, finish=True):
|
def rotate(self, angle, update=True, finish=True):
|
||||||
pass
|
self.setAngle(self.angle()+angle, update=update, finish=finish)
|
||||||
#self.setAngle(self.angle()+angle, update=update, finish=finish)
|
|
||||||
|
|
||||||
|
|
||||||
def addTranslateHandle(self, pos, axes=None, item=None, name=None):
|
def addTranslateHandle(self, pos, axes=None, item=None, name=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user