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

Detailed Description

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.

Author
David Burlinson, Kalpathi Subramanian
Date
2018, 7/23/19
See also
Shape collection tutorial, http://bridgesuncc.github.io/tutorials/Symbol_Collection.html

Public Member Functions

def __init__ (self, pts=None)
 
def get_name (self)
 
def add_point (self, x, y)
 
def points (self)
 
def points (self, pts)
 
def get_dimensions (self)
 
def translate (self, tx, ty)
 
def rotate (self, angle)
 
def scale (self, sx, sy)
 
def get_center (self, center)
 
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)
 
def shape_type (self, shape)
 
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)
 
def scale_point (self, pt, sx, sy)
 
def rotate_point (self, pt, angle)
 
def get_json_representation (self)
 Get the json representation of the Symbol class. More...
 

Constructor & Destructor Documentation

◆ __init__()

def bridges.polyline.Polyline.__init__ (   self,
  pts = None 
)

Member Function Documentation

◆ add_point()

def bridges.polyline.Polyline.add_point (   self,
  x,
  y 
)

◆ get_center()

def bridges.polyline.Polyline.get_center (   self,
  center 
)

◆ get_dimensions()

def bridges.polyline.Polyline.get_dimensions (   self)

◆ get_json_representation()

def bridges.polyline.Polyline.get_json_representation (   self)

◆ get_name()

def bridges.polyline.Polyline.get_name (   self)

◆ points() [1/2]

def bridges.polyline.Polyline.points (   self)

◆ points() [2/2]

def bridges.polyline.Polyline.points (   self,
  pts 
)

◆ rotate()

def bridges.polyline.Polyline.rotate (   self,
  angle 
)

◆ scale()

def bridges.polyline.Polyline.scale (   self,
  sx,
  sy 
)

◆ translate()

def bridges.polyline.Polyline.translate (   self,
  tx,
  ty 
)

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