def setup(self): ROIArea.setup(self) self.addScaleHandle([1, 1], [0, 0]) for n in self.masterDisplay.layerNames(): self.plots.append(self.slaveDisplay.addLayer( layer='%s - %s' % (self.name, n)))
def setup(self): ROIArea.setup(self) self.addScaleHandle([1, 1], [0, 0]) for n in self.masterDisplay.layerNames(): self.plots.append( self.slaveDisplay.addLayer(layer='%s - %s' % (self.name, n)))
def setup(self): ROIArea.setup(self) self.stdPlot = None self.rmsPlot = None self.plots = [] self.averaging = self.tool.pAveraging.value() self.calcVariance = self.tool.pStd.value() self.calcRMS = self.tool.pRMS.value() self.master.addItem(self.text) self.master.addItem(self) # CREATE ROI SHAPE rotation = self.tool.pRotatable.value() if rotation: self.addScaleRotateHandle([0, 0.5], [1, 0.5]) self.addScaleRotateHandle([1, 0.5], [0, 0.5]) self.addScaleHandle([0.5, 1], [0.5, 0.5]) else: self.addScaleHandle([1, 1], [0, 0]) self.setupUpdateView(rotation)
def __init__(self, *args, **kwargs): self.plots = [] ROIArea.__init__(self, *args, **kwargs)