![]() |
Bridges-Python 3.5.0-dev1
Bridges(Python API)
|
Public Member Functions | |
__init__ (self, pts=None) | |
Constructor. | |
get_shape_type (self) | |
Get the name of this symbol. | |
![]() | |
add_point (self, x, y) | |
Add a point to the polyline. | |
get_json_representation (self) | |
Get the json representation of the Symbol class. | |
![]() | |
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) | |
Additional Inherited Members | |
![]() | |
_points | |
![]() | |
_label | |
_fill_color | |
_stroke_color | |
_opacity | |
_stroke_width | |
_stroke_dash | |
_layer | |
_transform | |
_xform | |
_xform_flag | |
![]() | |
points = property | |
Get the number of points in polyline. | |
![]() | |
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 | |
bridges.polygon.Polygon.__init__ | ( | self, | |
pts = None |
|||
) |
Constructor.
Sets the number of points in the polygon
pts | number of points to be used in constructing the polygon |
Reimplemented from bridges.polyline.Polyline.
bridges.polygon.Polygon.get_shape_type | ( | self | ) |
Get the name of this symbol.
Reimplemented from bridges.polyline.Polyline.