|
None | __init__ () |
| Constructs an empty point list primitive.
|
|
None | __init__ (PointListPrimitive2D prim) |
| Initializes a copy of the PointListPrimitive2D instance prim. More...
|
|
PointListPrimitive2D | assign (PointListPrimitive2D prim) |
| Replaces the current state of self with a copy of the state of the PointListPrimitive2D instance prim. More...
|
|
None | setPen (Pen pen) |
| Sets the pen defining the color and diameter of the points. More...
|
|
Pen | getPen () |
| Returns the pen defining the color and diameter of the points. More...
|
|
None | __init__ (PointArray2D array) |
| Initializes a copy of the PointArray2D instance array. More...
|
|
None | translate (Math.Vector2D vec) |
| Translates all points by vec. More...
|
|
None | getBounds (Rectangle2D bbox) |
|
None | __init__ (Vector2DArray array) |
| Initializes a copy of the Vector2DArray instance array. More...
|
|
None | __init__ (object a) |
| Initializes the Vector2DArray instance. More...
|
|
int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More...
|
|
int | getSize () |
| Returns the number of elements stored in the array. More...
|
|
bool | isEmpty () |
| Tells whether the array is empty (getSize() == 0). More...
|
|
None | resize (int num_elem, Vector2D value) |
| Inserts or erases elements at the end so that the size becomes num_elem. More...
|
|
None | reserve (int num_elem) |
| Preallocates memory for (at least) num_elem elements. More...
|
|
int | getCapacity () |
| Returns the number of elements for which memory has been allocated. More...
|
|
None | clear () |
| Erases all elements.
|
|
Vector2DArray | assign (Vector2DArray array) |
| Replaces the current state of self with a copy of the state of the Vector2DArray instance array. More...
|
|
None | assign (int num_elem, Vector2D value) |
| This function fills the array with num_elem copies of the given value. More...
|
|
None | assign (object a) |
| Replaces the current state of self with a copy of the state of the object instance a. More...
|
|
None | addElement (Vector2D value) |
| Inserts a new element at the end of the array. More...
|
|
None | addElements (Vector2DArray values) |
|
None | insertElement (int idx, Vector2D value) |
| Inserts a new element before the location specified by the index idx. More...
|
|
None | insertElements (int idx, int num_elem, Vector2D value) |
| Inserts num_elem copies of value before the location specified by the index idx. More...
|
|
None | insertElements (int index, Vector2DArray values) |
|
None | popLastElement () |
| Removes the last element of the array. More...
|
|
None | removeElement (int idx) |
| Removes the element at the position specified by the index idx. More...
|
|
None | removeElements (int begin_idx, int end_idx) |
|
Vector2D | getFirstElement () |
| Returns a reference to the first element of the array. More...
|
|
Vector2D | getLastElement () |
| Returns a reference to the last element of the array. More...
|
|
Vector2D | getElement (int idx) |
| Returns a reference to the element at index idx. More...
|
|
None | setElement (int idx, Vector2D value) |
| Assigns a new value to the element specified by the index idx. More...
|
|
object | toArray (bool as_vec) |
|
None | __delitem__ (int idx) |
|
Vector2D | __getitem__ (int idx) |
|
int | __len__ () |
|
None | __setitem__ (int index, Vector2D value) |
|
bool | __eq__ (object array) |
| Returns the result of the comparison operation self == array . More...
|
|
bool | __ne__ (object array) |
| Returns the result of the comparison operation self != array . More...
|
|
int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More...
|
|
None | render (Renderer2D renderer) |
| Visualizes the graphics primitive by means of the Renderer2D instance renderer. More...
|
|
None | getBounds (Rectangle2D bounds, FontMetrics font_metrics=0) |
| Calculates the bounds of the graphics primitive. More...
|
|
GraphicsPrimitive2D | clone () |
| Creates a dynamically allocated copy of the graphics primitive. More...
|
|
A graphics primitive representing a list of points.