class DDrawingLine is a DDrawingPrimitive that represents a line in the viewer window.
More...
|
| 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...
|
| |
| 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.
◆ DDrawingLine()
| 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.
- Parameters
-
| 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. |
◆ setXBegin()
| def dectris.albula.DDrawingLine.setXBegin |
( |
|
x | ) |
|
Set X starting-point of line.
- Parameters
-
◆ setXEnd()
| def dectris.albula.DDrawingLine.setXEnd |
( |
|
x | ) |
|
Set X end-point of line.
- Parameters
-
◆ setYBegin()
| def dectris.albula.DDrawingLine.setYBegin |
( |
|
y | ) |
|
Set Y starting-point of line.
- Parameters
-
◆ setYEnd()
| def dectris.albula.DDrawingLine.setYEnd |
( |
|
y | ) |
|
Set Y end-point of line.
- Parameters
-
◆ xBegin()
| def dectris.albula.DDrawingLine.xBegin |
( |
| ) |
|
X starting-point of line.
- Returns
- Float.
◆ xEnd()
| def dectris.albula.DDrawingLine.xEnd |
( |
| ) |
|
X end-point of line.
- Returns
- Float.
◆ yBegin()
| def dectris.albula.DDrawingLine.yBegin |
( |
| ) |
|
Y starting-point of line.
- Returns
- Float.
◆ yEnd()
| def dectris.albula.DDrawingLine.yEnd |
( |
| ) |
|
Y end-point of line.
- Returns
- Float.