8 namespace datastructure {
38 return Color(
"steelblue");
58 double locationX = INFINITY, locationY = INFINITY;
71 : color(hue), size(sz), shape(shp) {}
81 ?
throw "Invalid Size Value.. " + to_string(sz) +
82 " Must be in the [1.0,50.0] range" 122 if (opacity >= 0.0 && opacity <= 1.0)
123 color.
setAlpha( (
int) (opacity * 255.));
int getAlpha() const
Definition: Color.h:287
static constexpr double DEFAULT_SIZE()
Definition: ElementVisualizer.h:51
double getLocationY() const
get Y coordinate of element location
Definition: ElementVisualizer.h:173
double getLocationX() const
get X coordinate of element location
Definition: ElementVisualizer.h:166
Definition: ElementVisualizer.h:10
Definition: ElementVisualizer.h:10
void setOpacity(double opacity)
Set opacity of element.
Definition: ElementVisualizer.h:121
Definition: ElementVisualizer.h:10
This class maintains the visual properties of the a Bridges element.
Definition: ElementVisualizer.h:31
void setAlpha(int a)
Definition: Color.h:327
void setColor(const Color &col)
Set the color to "col".
Definition: ElementVisualizer.h:94
double getOpacity()
Get opacity of element.
Definition: ElementVisualizer.h:131
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:157
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:79
static constexpr Shape DEFAULT_SHAPE()
Definition: ElementVisualizer.h:44
ElementVisualizer(const Color &hue=DEFAULT_COLOR(), const double &sz=DEFAULT_SIZE(), const Shape &shp=DEFAULT_SHAPE())
Definition: ElementVisualizer.h:68
double getSize() const
Definition: ElementVisualizer.h:86
Color getColor() const
Return the element color.
Definition: ElementVisualizer.h:110
Definition: ElementVisualizer.h:10
Shape
Definition: ElementVisualizer.h:10
void setColor(const string &col)
Set the color to a named color.
Definition: ElementVisualizer.h:102
Definition: ElementVisualizer.h:10
void setShape(const Shape &shp)
Set the shape of the element.
Definition: ElementVisualizer.h:140
Shape getShape() const
Return the shape of the element.
Definition: ElementVisualizer.h:147
Definition: ElementVisualizer.h:10
static const Color DEFAULT_COLOR()
Definition: ElementVisualizer.h:37
Definition: ElementVisualizer.h:10