'Set the state of the ROI from a structure generated by saveState() or
getState().'

def setState(self, state, update=True):

    self.setPos(state['pos'], update=False)
    self.setSize(state['size'], update=False)
    self.setAngle(state['angle'], update=update)
