Provides an interface for classes that implement the conversion of Vis.Path2D objects into rendering backend specific path descriptions or drawing operations.
More...
Provides an interface for classes that implement the conversion of Vis.Path2D objects into rendering backend specific path descriptions or drawing operations.
- See also
- Vis.Renderer2D
- Since
- 1.1
◆ getObjectID()
int CDPL.Vis.Path2DConverter.getObjectID |
( |
| ) |
|
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python Path2DConverter instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b
thus cannot tell reliably whether the two Path2DConverter instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID()
.
- Returns
- The numeric ID of the internally referenced C++ class instance.
◆ moveTo()
None CDPL.Vis.Path2DConverter.moveTo |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
Called when a Vis.Path2D element created by a Vis.Path2D.moveTo() call is encountered.
- Parameters
-
x | The x-coordinate of the newly set current position. |
y | The y-coordinate of the newly set current position. |
◆ arcTo()
None CDPL.Vis.Path2DConverter.arcTo |
( |
float |
cx, |
|
|
float |
cy, |
|
|
float |
rx, |
|
|
float |
ry, |
|
|
float |
start_ang, |
|
|
float |
sweep |
|
) |
| |
Called when a Vis.Path2D element created by a Vis.Path2D.arcTo() call is encountered.
- Parameters
-
cx | The x-coordinate of the ellipse center. |
cy | The y-coordinate of the ellipse center. |
rx | The x-radius of the ellipse. |
ry | The y-radius of the ellipse. |
start_ang | The start angle of the arg in degrees. |
sweep | The length of the arg in degrees. |
◆ lineTo()
None CDPL.Vis.Path2DConverter.lineTo |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
Called when a Vis.Path2D element created by a Vis.Path2D.lineTo() call is encountered.
- Parameters
-
x | Specifies the x-coordinate of the line's end point. |
y | Specifies the y-coordinate of the line's end point. |