8 namespace datastructure {
31 return Color(
"steelblue");
43 double locationX = INFINITY, locationY = INFINITY;
56 : color(hue), size(sz), shape(shp) {}
66 ?
throw "Invalid Size Value.. " + to_string(sz) +
67 " Must be in the [1.0,50.0] range" 105 if (opacity >= 0.0 && opacity <= 1.0)
106 color.
setAlpha( (
int) (opacity * 255.));
int getAlpha() const
Definition: Color.h:287
static constexpr double DEFAULT_SIZE()
Definition: ElementVisualizer.h:36
double getLocationY() const
Definition: ElementVisualizer.h:153
double getLocationX() const
Definition: ElementVisualizer.h:147
Definition: ElementVisualizer.h:10
Definition: ElementVisualizer.h:10
void setOpacity(double opacity)
Definition: ElementVisualizer.h:104
Definition: ElementVisualizer.h:10
This class maintains the visual properties of the a Bridges element.
Definition: ElementVisualizer.h:28
void setAlpha(int a)
Definition: Color.h:327
void setColor(const Color &col)
Set the color to "col".
Definition: ElementVisualizer.h:79
double getOpacity()
Get opacity of element.
Definition: ElementVisualizer.h:114
This class represents Color, and supports rgba, hexadecimal and named color values.
Definition: Color.h:51
void setLocation(const double &locX, const double &locY)
Definition: ElementVisualizer.h:139
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4
void setSize(const double &sz)
Definition: ElementVisualizer.h:64
static constexpr Shape DEFAULT_SHAPE()
Definition: ElementVisualizer.h:33
ElementVisualizer(const Color &hue=DEFAULT_COLOR(), const double &sz=DEFAULT_SIZE(), const Shape &shp=DEFAULT_SHAPE())
Definition: ElementVisualizer.h:53
double getSize() const
Definition: ElementVisualizer.h:71
Color getColor() const
Definition: ElementVisualizer.h:95
Definition: ElementVisualizer.h:10
Shape
Definition: ElementVisualizer.h:10
void setColor(const string &col)
Set the color to a named color.
Definition: ElementVisualizer.h:87
Definition: ElementVisualizer.h:10
void setShape(const Shape &shp)
Set the shape of the element.
Definition: ElementVisualizer.h:122
Shape getShape() const
Return the shape of the element.
Definition: ElementVisualizer.h:129
Definition: ElementVisualizer.h:10
static const Color DEFAULT_COLOR()
Definition: ElementVisualizer.h:30
Definition: ElementVisualizer.h:10