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
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 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
def onWarning(obj, evt, *args): """ Show VTK error messages """ Logging.backtrace() print "VTK message:\n", evt