class DDrawingPrimitve contains primitives that are displayed in a viewer window. More...
Public Member Functions | |
| def | type |
| Returns the type of the primitve. More... | |
| def | red |
| red component of the color. More... | |
| def | green |
| green component of the color. More... | |
| def | blue |
| blue component of the color. More... | |
| def | alpha |
| alpha component of the color. More... | |
| def | setColor |
| Set the red, green, blue and alpha component of the color. More... | |
class DDrawingPrimitve contains primitives that are displayed in a viewer window.
Possible primitives are pixels, lines, strings and ellipses which are represented by the subclasses DDrawingPixel, DDrawingLine, DDrawingString and DDrawingEllipse respectively. In order to display drawing primitives in a DSubFrame they have to be passed to the DSubFrame by DSubFrame.setPaintList() or DSubFrame.addToPaintList().
| def dectris.albula.DDrawingPrimitive.alpha | ( | ) |
alpha component of the color.
alpha defines the opacity of the displayed primitive.
| def dectris.albula.DDrawingPrimitive.blue | ( | ) |
blue component of the color.
| def dectris.albula.DDrawingPrimitive.green | ( | ) |
green component of the color.
| def dectris.albula.DDrawingPrimitive.red | ( | ) |
red component of the color.
| def dectris.albula.DDrawingPrimitive.setColor | ( | red, | |
| green, | |||
| blue, | |||
| alpha | |||
| ) |
Set the red, green, blue and alpha component of the color.
| red | Integer between 0 and 255 |
| green | Integer between 0 and 255 |
| blue | Integer between 0 and 255 |
| alpha | Integer between 0 and 255. alpha defines the opacity of the displayed primitive. |
| def dectris.albula.DDrawingPrimitive.type | ( | ) |
Returns the type of the primitve.