class DDrawingEllipse is a DDrawingPrimitive that represents a ellipse in the viewer window.
More...
Public Member Functions | |
| def | DDrawingEllipse (x, y, rx, ry, rotation, red, green, blue, alpha=255) |
Contruct DDrawingEllipse. More... | |
| def | x () |
X position of the centre. More... | |
| def | y () |
Y position of the centre. More... | |
| def | rx () |
X-Radius. More... | |
| def | ry () |
Y-Radius. More... | |
| def | rotation () |
Angle in radians by which the ellipse is rotated clockwise around its centre. More... | |
| def | setX (x) |
Set X position of the centre. More... | |
| def | setY (y) |
Set Y position of the centre. More... | |
| def | setRx (rx) |
Set X-Radius. More... | |
| def | setRy (ry) |
Set Y-Radius. More... | |
| def | setRotation (rotation) |
Set rotation angle. 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 DDrawingEllipse is a DDrawingPrimitive that represents a ellipse in the viewer window.
It is defined by its centre (x,y) its x and y radius (rx, ry) and a rotation angle (rotation), which rotates the ellipse clockwise around its centre.
| def dectris.albula.DDrawingEllipse.DDrawingEllipse | ( | x, | |
| y, | |||
| rx, | |||
| ry, | |||
| rotation, | |||
| red, | |||
| green, | |||
| blue, | |||
alpha = 255 |
|||
| ) |
Contruct DDrawingEllipse.
Pass the centre (x,y) the radius (rx, ry) and a rotation angle (rotation), which rotates the ellipse clockwise around its centre.
| x | Float. X position of the centre. |
| y | Float. Y position of the centre. |
| rx | Float. X-Radius. |
| ry | Float. Y-Radius. |
| rotation | Float. Angle in radians by which the ellipse is rotated clockwise around its centre. |
| 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.DDrawingEllipse.rotation | ( | ) |
Angle in radians by which the ellipse is rotated clockwise around its centre.
| def dectris.albula.DDrawingEllipse.rx | ( | ) |
X-Radius.
| def dectris.albula.DDrawingEllipse.ry | ( | ) |
Y-Radius.
| def dectris.albula.DDrawingEllipse.setRotation | ( | rotation | ) |
Set rotation angle.
Angle in radians by which the ellipse is rotated clockwise around its centre.
| rotation | Float. |
| def dectris.albula.DDrawingEllipse.setRx | ( | rx | ) |
Set X-Radius.
| rx | Float. |
| def dectris.albula.DDrawingEllipse.setRy | ( | ry | ) |
Set Y-Radius.
| ry | Float. |
| def dectris.albula.DDrawingEllipse.setX | ( | x | ) |
Set X position of the centre.
| x | Float. |
| def dectris.albula.DDrawingEllipse.setY | ( | y | ) |
Set Y position of the centre.
| y | Float. |
| def dectris.albula.DDrawingEllipse.x | ( | ) |
X position of the centre.
| def dectris.albula.DDrawingEllipse.y | ( | ) |
Y position of the centre.