Bridges-Python  3.2.0
Bridges(PythonAPI)
Public Member Functions | Public Attributes | List of all members
bridges.polygon.Polygon Class Reference
Inheritance diagram for bridges.polygon.Polygon:
bridges.polyline.Polyline bridges.symbol.Symbol

Public Member Functions

def __init__ (self, pts=None)
 Constructor. More...
 
def get_name (self)
 Get the name of this symbol. More...
 
- Public Member Functions inherited from bridges.polyline.Polyline
def __init__ (self, pts=None)
 Constructor. More...
 
def get_name (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_dimensions (self)
 Get the bounding box of the polyline. More...
 
def translate (self, tx, ty)
 Translate the polyline by tx, ty along X and Y respectively. More...
 
def rotate (self, angle)
 Rotat the polyline by 'angle' (2D rotation) More...
 
def scale (self, sx, sy)
 Scale the polyline by sx, sy along X and Y respectively. More...
 
def get_center (self, center)
 Get the center of the polyline (use the bounding box center) More...
 
def get_json_representation (self)
 
- Public Member Functions inherited from bridges.symbol.Symbol
def __init__ (self)
 Constructor for a Symbol. More...
 
def label (self)
 Getter for symbol label. More...
 
def label
 Setter for symbol label. More...
 
def identifier (self)
 Getter for the symbols identifier. More...
 
def fill_color (self)
 Getter for the fill color. More...
 
def fill_color (self, args, kwargs)
 Setter for the fill color. More...
 
def stroke_color (self)
 Getter for the stroke color. More...
 
def stroke_color (self, args, kwargs)
 Setter for the stroke color. More...
 
def stroke_width (self)
 Getter for the stroke width. More...
 
def stroke_width
 Setter for the stroke width. More...
 
def opacity (self)
 Getter for opacity. More...
 
def opacity
 Setter for opacity. More...
 
def stroke_dash (self)
 Getter for stroke_dash. More...
 
def stroke_dash
 Setter for stroke_dash. More...
 
def shape_type (self)
 Get the shape type (string) More...
 
def shape_type (self, shape)
 Set the shape type (string) More...
 
def set_location
 Setter for the location of the center of the symbol. More...
 
def get_location (self)
 Getter for the location of a symbol. More...
 
def get_dimensions (self)
 Getter for the dimensions. More...
 
def translate_point (self, pt, tx, ty)
 Translate a point by tx, ty along X and Y respectively. More...
 
def scale_point (self, pt, sx, sy)
 Scale a point by sx, sy along X and Y respectively. More...
 
def rotate_point (self, pt, angle)
 Rotate a point by 'angle' (2D rotation) More...
 
def get_json_representation (self)
 Get the json representation of the Symbol class. More...
 

Public Attributes

 shape_type
 

Constructor & Destructor Documentation

◆ __init__()

def 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

Member Function Documentation

◆ get_name()

def bridges.polygon.Polygon.get_name (   self)

Get the name of this symbol.

Member Data Documentation

◆ shape_type

bridges.polygon.Polygon.shape_type

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