def getColorTransferFunction(self):
		"""
		Returns the ctf of this object
		"""		
		if not self.dataSource and not self.ctf:
			Logging.backtrace()
			Logging.info("Using no ctf because datasource = ", self.dataSource, kw = "ctf")
			return None
		if not self.ctf:
			self.ctf = self.dataSource.getColorTransferFunction()
			#Logging.info("Ctf from datasource = ", self.ctf, kw = "ctf")
		return self.ctf
Example #2
0
    def onPaint(self, event):
        """
		Blit the buffer
		"""
        if self.renew:
            try:
                self.paintTrack()
            except Exception, e:
                Logging.backtrace()
                Logging.info("Failed to paint track", kw="animator")
                event.Skip()
            self.renew = False
	def onPaint(self, event):
		"""
		Blit the buffer
		""" 
		if self.renew:
			try:
				self.paintTrack()
			except Exception, e:
				Logging.backtrace()
				Logging.info("Failed to paint track", kw="animator")
				event.Skip()
			self.renew = False
Example #4
0
    def getColorTransferFunction(self):
        """
		Returns the ctf of this object
		"""
        if not self.dataSource and not self.ctf:
            Logging.backtrace()
            Logging.info("Using no ctf because datasource = ",
                         self.dataSource,
                         kw="ctf")
            return None
        if not self.ctf:
            self.ctf = self.dataSource.getColorTransferFunction()
            #Logging.info("Ctf from datasource = ", self.ctf, kw = "ctf")
        return self.ctf
Example #5
0
def onWarning(obj, evt, *args):
	"""
	Show VTK error messages
	"""
	Logging.backtrace()
	print "VTK message:\n", evt