Пример #1
0
 def getPropClrMap(self, tmrootnode, clrpropname):
     clrmap = TMColorMap(minclr=(0, 255, 0), maxclr=(255, 0, 0))
     minval = tmrootnode.minclr(clrpropname)
     maxval = tmrootnode.maxclr(clrpropname)
     neutralval = self.getNeutralVal(clrpropname, minval, maxval)
     clrmap.setlimits(minval, maxval, neutralval=neutralval)
     return clrmap
Пример #2
0
 def getPropClrMap(self, tmrootnode, clrpropname):
     clrmap = TMColorMap(minclr=(0, 255, 0), maxclr=(255, 0, 0))
     minval = tmrootnode.minclr(clrpropname)
     maxval = tmrootnode.maxclr(clrpropname)
     neutralval = self.getNeutralVal(clrpropname, minval, maxval)
     clrmap.setlimits(minval, maxval, neutralval=neutralval)
     return (clrmap)
Пример #3
0
 def getColormap(self,tmrootnode):
     clrmap = TMColorMap(minclr=(0,255,0),maxclr=(255,0,0))        
     minval = tmrootnode.minclr(CLR_PROP)
     maxval = tmrootnode.maxclr(CLR_PROP)
     clrmap.setlimits(minval,maxval, neutralval=3)
     return(clrmap)