Bridges-Python  3.4.3
Bridges(Python API)
Public Member Functions | Public Attributes | List of all members
bridges.circle.Circle Class Reference
Inheritance diagram for bridges.circle.Circle:
bridges.symbol.Symbol

Public Member Functions

None __init__ (self, **kwargs)
 Constructor for a circle symbol. More...
 
str get_shape_type (self)
 Gets the name of the shape/symbol. More...
 
float radius (self)
 Getter function for the radius of this circle. More...
 
None radius (self, r)
 Setter for the radius of this circle. More...
 
None set_circle (self, locx, locy, r)
 Set the location and size of the circle. More...
 
Tuple[float, float] center (self)
 
None center (self, Tuple[float, float] l)
 
dict get_json_representation (self)
 Get the json representation of the Circle object. 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)
 

Public Attributes

 radius
 

Constructor & Destructor Documentation

◆ __init__()

None bridges.circle.Circle.__init__ (   self,
**  kwargs 
)

Constructor for a circle symbol.

       (int) locx: x location of the circle
       (int) locy: y location of the circle
       (float) r: radius of the circle
Returns
None
Exceptions
ValueErrorif the radius is not a positive number

Member Function Documentation

◆ center() [1/2]

Tuple[float, float] bridges.circle.Circle.center (   self)

◆ center() [2/2]

None bridges.circle.Circle.center (   self,
Tuple[float, float]  l 
)

◆ get_json_representation()

dict bridges.circle.Circle.get_json_representation (   self)

Get the json representation of the Circle object.

Returns
dict representing the JSON

Reimplemented from bridges.symbol.Symbol.

◆ get_shape_type()

str bridges.circle.Circle.get_shape_type (   self)

Gets the name of the shape/symbol.

Returns
str representing the name

Reimplemented from bridges.symbol.Symbol.

◆ radius() [1/2]

float bridges.circle.Circle.radius (   self)

Getter function for the radius of this circle.

Returns
float representing radius

◆ radius() [2/2]

None bridges.circle.Circle.radius (   self,
  r 
)

Setter for the radius of this circle.

       (float) r: radius to be set
Returns
None
Exceptions
ValueErrorif the radius is not a positive number

◆ set_circle()

None bridges.circle.Circle.set_circle (   self,
  locx,
  locy,
  r 
)

Set the location and size of the circle.

       (float) locx: x coordinate of the center of the circle
       (float) locy: y coordinate of the center of the circle
       (float) r: radius of the circle
Returns
None
Exceptions
ValueErrorif the radius is not a positive number

Member Data Documentation

◆ radius

bridges.circle.Circle.radius

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