![]() |
Bridges-Python 3.5.1
Bridges(Python API)
|
This class defines a polygon and is part of the symbol collection. More...
Public Member Functions | |
| __init__ (self, pts=None) | |
| Constructor. | |
| get_shape_type (self) | |
| Get the name of the symbol. | |
| add_point (self, x, y) | |
| Add a point to the polyline. | |
| get_json_representation (self) | |
| Get the json representation of the Symbol class. | |
Public Member Functions inherited from bridges.symbol.Symbol | |
| print_mat (self, list m) | |
| print the current matrix for debugging | |
| list | identity (self, list m) |
| create the identity matrix | |
| list | mat_mult (self, list m1, list m2) |
| list | vec_mat_mult (self, list m, list v) |
| translate (self, float tx, float ty) | |
| scale (self, *args) | |
| scale the symbol from a particular center location | |
| rotate (self, *args) | |
| set_transform (self, float a, float b, float c, float d, float e, float f) | |
| add_all_json (self, symbol_json, parent) | |
Protected Attributes | |
| _points | |
Protected Attributes inherited from bridges.symbol.Symbol | |
| _label | |
| _fill_color | |
| _stroke_color | |
| _opacity | |
| _stroke_width | |
| _stroke_dash | |
| _layer | |
| _transform | |
| _xform | |
| _xform_flag | |
Properties | |
| points = property | |
| Get the number of points in polyline. | |
Properties inherited from bridges.symbol.Symbol | |
| label = property | |
| Getter for symbol label. | |
| fill_color = property | |
| Getter for the fill color. | |
| stroke_color = property | |
| Getter for the stroke color. | |
| stroke_width = property | |
| Getter for the stroke width. | |
| opacity = property | |
| Getter for opacity. | |
| stroke_dash = property | |
| Getter for stroke_dash. | |
| layer = property | |
| xform = property | |
This class defines a polygon and is part of the symbol collection.
A polygon has a set of vertices, with vertices connected by line segments. It differs from the polyline in the sense that the last and first vertex are connect to close the shape.
| bridges.polyline.Polyline.__init__ | ( | self, | |
pts = None |
|||
| ) |
Constructor.
Sets the number of points in the polyline
| pts | number of points to be used in constructing the polyline |
Reimplemented from bridges.symbol.Symbol.
Reimplemented in bridges.polygon.Polygon.
| bridges.polyline.Polyline.add_point | ( | self, | |
| x, | |||
| y | |||
| ) |
Add a point to the polyline.
| x | point's x coordinate |
| y | point's y coordinate |
| bridges.polyline.Polyline.get_json_representation | ( | self | ) |
Get the json representation of the Symbol class.
Reimplemented from bridges.symbol.Symbol.
| bridges.polyline.Polyline.get_shape_type | ( | self | ) |
Get the name of the symbol.
Reimplemented from bridges.symbol.Symbol.
Reimplemented in bridges.polygon.Polygon.
|
protected |
|
static |
Get the number of points in polyline.