Eidolon
|
Inherits GraphicsObject.
Public Member Functions | |
def | __init__ (self, colormap, x, y, width, height, numticks) |
def | drawBar (self) |
def | paint (self, p, args) |
def | boundingRect (self) |
def | setValRange (self, minval, maxval) |
def | setParentHeight (self, h) |
Public Attributes | |
colormap | |
cx | |
cy | |
cwidth | |
cheight | |
minval | |
maxval | |
numticks | |
pic | |
Basic vertical color bar with labels ranging from a minimal to maximal value. The intent is for this to be embedded in a scene with another graph and share its color graph and height.
def __init__ | ( | self, | |
colormap, | |||
x, | |||
y, | |||
width, | |||
height, | |||
numticks | |||
) |
def boundingRect | ( | self | ) |
def drawBar | ( | self | ) |
Redraw the bar into the self.pic value. This should be called after changing any stored value.
def paint | ( | self, | |
p, | |||
args | |||
) |
def setParentHeight | ( | self, | |
h | |||
) |
Set the height of the bar based on the containing parent's height `h'.
def setValRange | ( | self, | |
minval, | |||
maxval | |||
) |
Set the bar's value range.
cheight |
colormap |
cwidth |
cx |
cy |
maxval |
minval |
numticks |
pic |