Bridges-Python 3.5.0-dev1
Bridges(Python API)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
bridges.polygon.Polygon Class Reference
Inheritance diagram for bridges.polygon.Polygon:
bridges.polyline.Polyline bridges.symbol.Symbol

Public Member Functions

 __init__ (self, pts=None)
 Constructor.
 
 get_shape_type (self)
 Get the name of this symbol.
 
- Public Member Functions inherited from bridges.polyline.Polyline
 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)
 

Additional Inherited Members

- Protected Attributes inherited from bridges.polyline.Polyline
 _points
 
- Protected Attributes inherited from bridges.symbol.Symbol
 _label
 
 _fill_color
 
 _stroke_color
 
 _opacity
 
 _stroke_width
 
 _stroke_dash
 
 _layer
 
 _transform
 
 _xform
 
 _xform_flag
 
- Properties inherited from bridges.polyline.Polyline
 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
 

Constructor & Destructor Documentation

◆ __init__()

bridges.polygon.Polygon.__init__ (   self,
  pts = None 
)

Constructor.

Sets the number of points in the polygon

Parameters
ptsnumber of points to be used in constructing the polygon

Reimplemented from bridges.polyline.Polyline.

Member Function Documentation

◆ get_shape_type()

bridges.polygon.Polygon.get_shape_type (   self)

Get the name of this symbol.

Reimplemented from bridges.polyline.Polyline.


The documentation for this class was generated from the following file: