Eidolon
|
Classes | |
class | SmallButton |
Public Member Functions | |
def | __init__ (self, parent=None, minheight=240) |
def | getValues (self) |
def | setValues (self, colorIndex=None, alphaIndex=None) |
def | interpolateColor (self, t) |
def | setLinearAlpha (self, linear) |
def | setDoubleHeight (self, dblHeight) |
def | getSpectrumDim (self) |
def | mousePressEvent (self, e) |
def | mouseDoubleClickEvent (self, e) |
def | wheelEvent (self, e) |
def | mouseMoveEvent (self, e) |
def | keyPressEvent (self, e) |
def | paintEvent (self, e) |
Static Public Attributes | |
UPARROW | |
DOWNARROW | |
Private Member Functions | |
def | _markerRect (self, i) |
def | _getMarkerIndex (self, x, y) |
def | _getCtrlIndex (self, x, y) |
def | _chooseColor (self) |
def | _setSelectedColorPos (self, pos) |
def | _setSelectedAlphaPos (self, x, y) |
def | _remove (self) |
def | _setMouseToolTip (self, x, y) |
This widget implements a generic color spectrum with an alpha curve. The interface is defined a number of template methods that are used to pass data between instances of this widget and an associated spectrum object. It stores colors, positions, and alpha values, but does not define interpolation, this is left to the associated object.
def __init__ | ( | self, | |
parent = None , |
|||
minheight = 240 |
|||
) |
|
private |
|
private |
|
private |
|
private |
Get the dimensions of the rectangular marker area.
|
private |
|
private |
|
private |
|
private |
def getSpectrumDim | ( | self | ) |
Get the dimensions of the spectrum area.
def getValues | ( | self | ) |
Copy values from the spectrum object into members `colors', `colorpos', `alphactrls', and `isLinearAlpha'.
def interpolateColor | ( | self, | |
t | |||
) |
Get the interpolated color in the spectrum at unit position `t'.
def keyPressEvent | ( | self, | |
e | |||
) |
def mouseDoubleClickEvent | ( | self, | |
e | |||
) |
def mouseMoveEvent | ( | self, | |
e | |||
) |
def mousePressEvent | ( | self, | |
e | |||
) |
def paintEvent | ( | self, | |
e | |||
) |
def setDoubleHeight | ( | self, | |
dblHeight | |||
) |
def setLinearAlpha | ( | self, | |
linear | |||
) |
Set the alpha curve to be linear if `linear' is True, otherwise it's a cubic curve.
def setValues | ( | self, | |
colorIndex = None , |
|||
alphaIndex = None |
|||
) |
Set the values in the spectrum object. If `colorIndex' is not None, the color value from `color' and `colorpos' is set to that index in the object. If `alphaIndex' is not None, the alpha value from `alphactrls' is set to that index. If both are None, all the values from `color', `colorpos', and `alphactrls' are set in the spectrum object.
def wheelEvent | ( | self, | |
e | |||
) |
alphactrls |
alphaselected |
bar |
bg |
bottomheight |
colorpos |
colors |
colorselected |
ctrlradius |
delMarker |
|
static |
expandMarker |
isDblHeight |
isLinearAlpha |
linMarker |
margin |
markerangle |
markerheight |
markerwidth |
maxv |
maxx |
minheight |
minv |
minx |
|
static |