|  | 
| None | __init__ (self, **kwargs) | 
|  | Constructor for the rectangle symbol.  More... 
 | 
|  | 
| str | get_shape_type (self) | 
|  | Getter for the name of the shape.  More... 
 | 
|  | 
| float | width (self) | 
|  | Getter for the rectangle width.  More... 
 | 
|  | 
| None | width (self, w) | 
|  | Setter for the width of the rectangles.  More... 
 | 
|  | 
| float | height (self) | 
|  | Getter for the height of the rectangle.  More... 
 | 
|  | 
| None | height (self, h) | 
|  | Setter for the height of the rectangle.  More... 
 | 
|  | 
| def | set_rectangle (self, locx, locy, w, h) | 
|  | Setter function for setting the rectangles size and location from scratch.  More... 
 | 
|  | 
| Tuple[float, float] | lower_left (self) | 
|  | 
| def | lower_left (self, Tuple[float, float] ll) | 
|  | 
| dict | get_json_representation (self) | 
|  | Getter function for the json representation of the data structure/shape.  More... 
 | 
|  | 
| 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... 
 | 
|  | 
| def | get_shape_type (self) | 
|  | 
| 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) | 
|  | 
| dict | get_json_representation (self) | 
|  | Get the json representation of the Symbol class.  More... 
 | 
|  | 
| def | add_all_json (self, symbol_json, parent) | 
|  | 
This class defines a rectangle and is part of the symbol collection. 
A rectangle is defined by the location of teh lower left corner (smaller values of x and y) and by height and width
- Author
- Matthew Mcquaigue 
- Date
- 2018, 7/23/19
- See also
- Shape collection tutorial, https://bridgesuncc.github.io/tutorials/Symbol_Collection.html