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