class DDrawingLine is a DDrawingPrimitive that represents a line in the viewer window.
More...
Public Member Functions | |
| def | DDrawingLine (xBegin, xEnd, yBegin, yEnd, red, green, blue, alpha=255) |
Construct DDrawingLine by passing its starting-point and end-poin and its color. More... | |
| def | xBegin () |
X starting-point of line. More... | |
| def | xEnd () |
X end-point of line. More... | |
| def | yBegin () |
Y starting-point of line. More... | |
| def | yEnd () |
Y end-point of line. More... | |
| def | setXBegin (x) |
Set X starting-point of line. More... | |
| def | setXEnd (x) |
Set X end-point of line. More... | |
| def | setYBegin (y) |
Set Y starting-point of line. More... | |
| def | setYEnd (y) |
Set Y end-point of line. More... | |
Public Member Functions inherited from dectris.albula.DDrawingPrimitive | |
| 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 (red, green, blue, alpha) |
Set the red, green, blue and alpha component of the color. More... | |
class DDrawingLine is a DDrawingPrimitive that represents a line in the viewer window.
It is defined by its start and endpoints.
| def dectris.albula.DDrawingLine.DDrawingLine | ( | xBegin, | |
| xEnd, | |||
| yBegin, | |||
| yEnd, | |||
| red, | |||
| green, | |||
| blue, | |||
alpha = 255 |
|||
| ) |
Construct DDrawingLine by passing its starting-point and end-poin and its color.
| xBegin | Float. X starting-point of line. |
| xEnd | Float. X end-point of line. |
| yBegin | Float. Y starting-point of line. |
| yEnd | Float. Y end-point of line. |
| 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.DDrawingLine.setXBegin | ( | x | ) |
Set X starting-point of line.
| x | Float. |
| def dectris.albula.DDrawingLine.setXEnd | ( | x | ) |
Set X end-point of line.
| x | Float. |
| def dectris.albula.DDrawingLine.setYBegin | ( | y | ) |
Set Y starting-point of line.
| y | Float. |
| def dectris.albula.DDrawingLine.setYEnd | ( | y | ) |
Set Y end-point of line.
| y | Float. |
| def dectris.albula.DDrawingLine.xBegin | ( | ) |
X starting-point of line.
| def dectris.albula.DDrawingLine.xEnd | ( | ) |
X end-point of line.
| def dectris.albula.DDrawingLine.yBegin | ( | ) |
Y starting-point of line.
| def dectris.albula.DDrawingLine.yEnd | ( | ) |
Y end-point of line.