This class defines a rectangle and is part of the symbol collection. A rectangle has height and width.
- Author
- Kalpathi Subramanian
- Date
- 12/23/18, 7/12/19
|
| | Rectangle () |
| | default constructor - rectangle with lower left at origin and unit length sides More...
|
| |
| | Rectangle (int w, int h) |
| | create rectangle with width w and height h More...
|
| |
| | Rectangle (float locx, float locy, float w, float h) |
| | create rectangle with width w and height h and located at given position More...
|
| |
| string | getDataStructType () |
| | This method gets the data type name. More...
|
| |
| string | getName () const |
| | This method gets the name of the shape. More...
|
| |
| void | setWidth (float w) |
| | This method sets the shape width. More...
|
| |
| void | setHeight (float h) |
| | This method sets the shape height. More...
|
| |
| void | translate (float tx, float ty) |
| | Translate the rectangle. More...
|
| |
| void | scale (float sx, float sy) |
| | Scale the rectangle about its center. More...
|
| |
| vector< float > | getDimensions () const |
| |
| void | setRectangle (float locx, float locy, float w, float h) |
| |
| virtual const string | getSymbolRepresentation () const |
| | This method returns the JSON representation of the shape. More...
|
| |
| | Symbol () |
| | default constructor More...
|
| |
| | Symbol (string symb) |
| | Create a symbol of type "symb". More...
|
| |
| int | getIdentifier () |
| | return the symbol identifier. More...
|
| |
| void | setLabel (string lbl) |
| | Set the symbol label. More...
|
| |
| string | getLabel () const |
| | Get the symbol label. More...
|
| |
| void | setFillColor (Color c) |
| | Set the symbol fill color. More...
|
| |
| void | setFillColor (string c) |
| | This method sets the symbol fill color. More...
|
| |
| Color | getFillColor () |
| | This method gets fill color. More...
|
| |
| void | setStrokeColor (Color c) |
| |
| void | setStrokeColor (string c) |
| | This method sets the symbol stroke color. More...
|
| |
| Color | getStrokeColor () |
| | This method gets stroke color. More...
|
| |
| void | setStrokeWidth (float strk_width) |
| | This method sets the symbol stroke width. More...
|
| |
| float | getStrokeWidth () |
| | This method gets stroke width. More...
|
| |
| void | setOpacity (float op) |
| | This method sets the symbol opacity. More...
|
| |
| float | getOpacity () |
| | This method gets symbol opacity. More...
|
| |
| void | setStrokeDash (int dash) |
| | This method sets the stroke dash level. More...
|
| |
| int | getStrokeDash () |
| | This method gets stroke dash level. More...
|
| |
| void | setLocation (int x, int y) |
| | This method sets the symbol location. More...
|
| |
| void | setLocation (double x, double y) |
| | This method sets the symbol location. More...
|
| |
| void | setCenter (float x, float y) |
| | This method sets the symbol location. More...
|
| |
| void | setLocation (float x, float y) |
| | This method sets the ssymbol location. More...
|
| |
| const float * | getLocation () const |
| | This method gets the symbol location. More...
|
| |
| string | getName () const |
| | This method gets the name of the symbol. More...
|
| |