Ejemplo n.º 1
0
    def __init__(self, name=""):
        """
		Constructor
		"""
        CombinedDataUnit.__init__(self, name)
        self.handleOriginal = 0
        self.merging = 1
    def __init__(self, name=""):
        """
		Constructor
		"""
        CombinedDataUnit.__init__(self, name)
        self.handleOriginal = 0
        self.merging = 1
Ejemplo n.º 3
0
    def addSourceDataUnit(self, dataUnit, **args):
        """
		Adds a source data unit to this dataunit
		"""
        self.setOriginal(dataUnit)
        CombinedDataUnit.addSourceDataUnit(self, dataUnit, **args)
        self.name = "Manipulated %s" % dataUnit.getName()
        self.updateSettings()
	def addSourceDataUnit(self, dataUnit, **args):
		"""
		Adds a source data unit to this dataunit
		"""
		self.setOriginal(dataUnit)    
		CombinedDataUnit.addSourceDataUnit(self, dataUnit, **args)
		self.name = "Manipulated %s" % dataUnit.getName()
		self.updateSettings()
    def setOutputChannel(self, ch, flag):
        """
		Mark a channel as being part of the output
		"""
        # We duplicate a bit of functionality from combined data unit
        # with this, but because they need to function differently, it
        # is easier than to duplicate the doPreview() function
        self.sourceunits[ch].getSettings().set("PreviewChannel", flag)
        CombinedDataUnit.setOutputChannel(self, ch, flag)
Ejemplo n.º 6
0
    def __init__(self, name=""):
        """
		Constructor
		"""
        CombinedDataUnit.__init__(self, name)
        self.original = None
        self.initialized = 0
        self.checkDimensions = False
        self.modifiedDimensions = None
Ejemplo n.º 7
0
    def setOutputChannel(self, ch, flag):
        """
		Mark a channel as being part of the output
		"""
        # We duplicate a bit of functionality from combined data unit
        # with this, but because they need to function differently, it
        # is easier than to duplicate the doPreview() function
        self.sourceunits[ch].getSettings().set("PreviewChannel", flag)
        CombinedDataUnit.setOutputChannel(self, ch, flag)
	def __init__(self, name = ""):
		"""
		Constructor
		"""
		CombinedDataUnit.__init__(self, name)
		self.original = None
		self.initialized = 0
		self.checkDimensions = False
		self.modifiedDimensions = None
Ejemplo n.º 9
0
	def addSourceDataUnit(self, dataUnit, **args):
		"""
		Adds a source data unit to this dataunit
		"""
		self.setOriginal(dataUnit)    
		CombinedDataUnit.addSourceDataUnit(self, dataUnit, **args)
		self.name = "Adjusted %s" % dataUnit.getName()
		Logging.info("Updating settings for corrected source dataunit", kw = "processing")
		#print dataUnit.getColorTransferFunction()
		self.updateSettings()
Ejemplo n.º 10
0
    def getDimensions(self):
        """
		An method for getting the dataunit dimensions that can be overriden 
		"""
        if not self.modifiedDimensions:
            return CombinedDataUnit.getDimensions(self)
        else:
            return self.modifiedDimensions
	def getDimensions(self):
		"""
		An method for getting the dataunit dimensions that can be overriden 
		"""
		if not self.modifiedDimensions:
			return CombinedDataUnit.getDimensions(self)
		else:
			return self.modifiedDimensions
Ejemplo n.º 12
0
	def __init__(self, name = ""):
		"""
		Constructor
		"""
		CombinedDataUnit.__init__(self, name)
		self.original = None