![]() |
Bridges-C++
3.1.1
Bridges(C++API)
|
#include <ElementVisualizer.h>
This class maintains the visual properties of the a Bridges element.
This class is used to store the visualization elements for Bridges Visualiztions, including the color, shape, and size of the node. Defaults of green, circle, and 10.0 respectively.
Size values must range from [1.0,50.0].
BRIDGES supports the shapes listed in Shape ("circle", "square", "diamond", "cross", "wye", "triangle", "star").
Objects of this class are stored as properties of all Element subclasses.
Public Member Functions | |
| ElementVisualizer (const Color &hue=DEFAULT_COLOR(), const double &sz=DEFAULT_SIZE(), const Shape &shp=DEFAULT_SHAPE()) | |
| void | setSize (const double &sz) |
| double | getSize () const |
| void | setColor (const Color &col) |
| Set the color to "col". More... | |
| void | setColor (const string &col) |
| Set the color to a named color. More... | |
| Color | getColor () const |
| void | setOpacity (double opacity) |
| double | getOpacity () |
| Get opacity of element. More... | |
| void | setShape (const Shape &shp) |
| Set the shape of the element. More... | |
| Shape | getShape () const |
| Return the shape of the element. More... | |
| void | setLocation (const double &locX, const double &locY) |
| double | getLocationX () const |
| double | getLocationY () const |
Static Public Member Functions | |
| static const Color | DEFAULT_COLOR () |
| static constexpr Shape | DEFAULT_SHAPE () |
| static constexpr double | DEFAULT_SIZE () |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
Return the element color
|
inline |
|
inline |
|
inline |
Get opacity of element.
|
inline |
Return the shape of the element.
|
inline |
|
inline |
Set the color to "col".
| col | The color of the element |
|
inline |
Set the color to a named color.
| col | The color name. Check the Color class for supported values. |
|
inline |
Set the location attributes of an element. Set location to INFINITY for bridges to chose the location.
| locX | X coordinate of the element location |
| locY | Y coordinate of the element location |
|
inline |
Set opacity of element - use the 4th color component
| opacity |
|
inline |
Set the shape of the element.
| shp | is one of Shape.CIRCLE, Shape.SQUARE, Shape.DIAMOND, Shape.CROSS, Shape.TRIANGLE, Shape.WYE, Shape.STAR. |
|
inline |
Sets size to "sz" Valid Range:[1,50]
| sz | The size in pixel weight of the element |
| string | If size is invalid |
1.8.13