Bridges-Python
3.4.4
Bridges(Python API)
|
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.
Public Member Functions | |
def | __init__ (self, pts=None) |
Constructor. More... | |
def | get_shape_type (self) |
Get the name of the symbol. More... | |
def | add_point (self, x, y) |
Add a point to the polyline. More... | |
def | points (self) |
Get the number of points in polyline. More... | |
def | points (self, pts) |
Set the number of points in polyline. More... | |
def | get_json_representation (self) |
Get the json representation of the Symbol class. More... | |
Public Member Functions inherited from bridges.symbol.Symbol | |
def | __init__ (self) |
Constructor for a Symbol. More... | |
str | label (self) |
Getter for symbol label. More... | |
None | label (self, str label) |
Setter for symbol label. More... | |
Color | fill_color (self) |
Getter for the fill color. More... | |
None | fill_color (self, *args, **kwargs) |
Setter for the fill color. More... | |
Color | stroke_color (self) |
Getter for the stroke color. More... | |
None | stroke_color (self, *args, **kwargs) |
Setter for the stroke color. More... | |
float | stroke_width (self) |
Getter for the stroke width. More... | |
None | stroke_width (self, float width) |
Setter for the stroke width. More... | |
float | opacity (self) |
Getter for opacity. More... | |
def | opacity (self, float o) |
Setter for opacity. More... | |
float | stroke_dash (self) |
Getter for stroke_dash. More... | |
def | stroke_dash (self, float dash) |
Setter for stroke_dash. More... | |
int | layer (self) |
def | layer (self, int l) |
def | xform (self) |
def | print_mat (self, list m) |
list | identity (self, list m) |
list | mat_mult (self, list m1, list m2) |
list | vec_mat_mult (self, list m, list v) |
def | translate (self, float tx, float ty) |
def | scale (self, *args) |
scale the symbol from a particular center location More... | |
def | rotate (self, *args) |
def | set_transform (self, float a, float b, float c, float d, float e, float f) |
def | add_all_json (self, symbol_json, parent) |
def 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 in bridges.polygon.Polygon.
def bridges.polyline.Polyline.add_point | ( | self, | |
x, | |||
y | |||
) |
Add a point to the polyline.
x | point's x coordinate |
y | point's y coordinate |
def bridges.polyline.Polyline.get_json_representation | ( | self | ) |
Get the json representation of the Symbol class.
Reimplemented from bridges.symbol.Symbol.
def bridges.polyline.Polyline.get_shape_type | ( | self | ) |
Get the name of the symbol.
Reimplemented from bridges.symbol.Symbol.
Reimplemented in bridges.polygon.Polygon.
def bridges.polyline.Polyline.points | ( | self | ) |
Get the number of points in polyline.
def bridges.polyline.Polyline.points | ( | self, | |
pts | |||
) |
Set the number of points in polyline.
pts | the number of points in symbol. |