class BaseModuleDataItemMgr(PropertyMgr, QObject): """ abstract base class for modules controlling a DataItem """ name = "BaseModuleDataItemMgr" def __init__(self, dataItemImage): self.dataItem = dataItemImage PropertyMgr.__init__(self, dataItemImage) QObject.__init__(self) self.overlayReferences = OverlayReferenceMgr() self.globalMgr = None def onModuleStart(self): pass def onModuleStop(self): pass def getOverlayRefs(self): return self.overlayReferences def insertOverlayRef(self, position, ov): self.overlayReferences.insert(position, ov) def addOverlayRef(self, ov): if len(self.overlayReferences) >= 1: self.overlayReferences.insert(1, ov) else: self.overlayReferences.insert(0, ov) def serialize(self, h5g, destbegin=(0, 0, 0), destend=(0, 0, 0), srcbegin=(0, 0, 0), srcend=(0, 0, 0), destshape=(0, 0, 0)): pass def deserialize(self, h5g, offsets, shape): pass
class BaseModuleDataItemMgr(PropertyMgr, QObject): """ abstract base class for modules controlling a DataItem """ name = "BaseModuleDataItemMgr" def __init__(self, dataItemImage): self.dataItem = dataItemImage PropertyMgr.__init__(self, dataItemImage) QObject.__init__(self) self.overlayReferences = OverlayReferenceMgr() self.globalMgr = None def onModuleStart(self): pass def onModuleStop(self): pass def getOverlayRefs(self): return self.overlayReferences def insertOverlayRef(self, position, ov): self.overlayReferences.insert(position, ov) def addOverlayRef(self, ov): if len(self.overlayReferences) >= 1: self.overlayReferences.insert(1, ov) else: self.overlayReferences.insert(0, ov) def serialize(self, h5g, destbegin = (0,0,0), destend = (0,0,0), srcbegin = (0,0,0), srcend = (0,0,0), destshape = (0,0,0) ): pass def deserialize(self, h5g, offsets, shape): pass
def __init__(self, dataItemImage): self.dataItem = dataItemImage PropertyMgr.__init__(self, dataItemImage) QObject.__init__(self) self.overlayReferences = OverlayReferenceMgr() self.globalMgr = None