8 namespace datastructure {
38 return Color(
"steelblue");
58 double locationX = INFINITY, locationY = INFINITY;
71 : color(hue), size(sz), shape(shp) {}
80 (sz < 0.001 || 200. < sz)
81 ?
throw "Invalid Size Value.. " + to_string(sz) +
82 " Must be in the [0.001,199.0] range"
122 if (opacity >= 0.0 && opacity <= 1.0)
123 color.
setAlpha( (
int) (opacity * 255.));
This class represents Color, and supports rgba, hexadecimal and named color values.
Definition: Color.h:50
int getAlpha() const
Definition: Color.h:286
void setAlpha(int a)
Definition: Color.h:326
This class maintains the visual properties of the a Bridges element.
Definition: ElementVisualizer.h:31
void setColor(const string &col)
Set the color to a named color.
Definition: ElementVisualizer.h:102
void setSize(const double &sz)
Definition: ElementVisualizer.h:79
void setOpacity(double opacity)
Set opacity of element.
Definition: ElementVisualizer.h:121
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
double getSize() const
Definition: ElementVisualizer.h:86
double getLocationY() const
get Y coordinate of element location
Definition: ElementVisualizer.h:173
Color getColor() const
Return the element color.
Definition: ElementVisualizer.h:110
static const Color DEFAULT_COLOR()
Definition: ElementVisualizer.h:37
ElementVisualizer(const Color &hue=DEFAULT_COLOR(), const double &sz=DEFAULT_SIZE(), const Shape &shp=DEFAULT_SHAPE())
Definition: ElementVisualizer.h:68
double getLocationX() const
get X coordinate of element location
Definition: ElementVisualizer.h:166
void setColor(const Color &col)
Set the color to "col".
Definition: ElementVisualizer.h:94
static constexpr Shape DEFAULT_SHAPE()
Definition: ElementVisualizer.h:44
void setLocation(const double &locX, const double &locY)
Definition: ElementVisualizer.h:157
double getOpacity()
Get opacity of element.
Definition: ElementVisualizer.h:131
static constexpr double DEFAULT_SIZE()
Definition: ElementVisualizer.h:51
Shape
Definition: ElementVisualizer.h:10
@ DIAMOND
Definition: ElementVisualizer.h:10
@ CIRCLE
Definition: ElementVisualizer.h:10
@ SQUARE
Definition: ElementVisualizer.h:10
@ STAR
Definition: ElementVisualizer.h:10
@ WYE
Definition: ElementVisualizer.h:10
@ TRIANGLE
Definition: ElementVisualizer.h:10
@ CROSS
Definition: ElementVisualizer.h:10
Support for drawing Bar charts.
Definition: alltypes.h:4