'Set the angle of rotation (in degrees) for this ROI.
See setPos() for an explanation of the update and finish arguments.'

def setAngle(self, angle, update=True, finish=True):

    self.state['angle'] = angle
    tr = QtGui.QTransform()
    tr.rotate(angle)
    self.setTransform(tr)
    if update:
        self.stateChanged(finish=finish)
