Empirical
|
Track a circle shape to be drawn on a canvas. More...
#include <CanvasShape.h>
Public Member Functions | |
CanvasCircle (double _x, double _y, double _r, const std::string &fc="", const std::string &lc="", double lw=1.0) | |
CanvasCircle (Point _p, double _r, const std::string &fc="", const std::string &lc="", double lw=1.0) | |
CanvasCircle (emp::Circle circle, const std::string &fc="", const std::string &lc="", double lw=1.0) | |
void | Apply () |
Apply current action to emp_i.ctx. More... | |
CanvasAction * | Clone () const |
Make a copy of the current action. More... | |
void | MoveTo (Point _p) |
Shift the position of this shape to a point. More... | |
void | MoveTo (double _x, double _y) |
Shift the position of this shape to coordinates. More... | |
void | SetLineWidth (double lw=1.0) |
Setup details needed before drawing lines. More... | |
void | SetFillColor (const std::string &color) |
Change the fill color of this shape. More... | |
void | SetLineColor (const std::string &color) |
Change the stroke color of this shape. More... | |
void | ApplyColor () |
Actually change the color on screen. More... | |
Protected Member Functions | |
void | Fill (const std::string &style="") |
Helper function to set the fill status. More... | |
void | Stroke (const std::string &style="") |
Helper function to set the stroke status. More... | |
void | LineWidth (double line_width=1.0) |
Helper function to set the stroke status. More... | |
Protected Attributes | |
Point | p |
Anchor point for this shape. More... | |
std::string | fill_color |
Internal color to fill shape with. More... | |
std::string | line_color |
Border color for shape. More... | |
double | line_width |
How wide should lines be? More... | |
Track a circle shape to be drawn on a canvas.
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Apply current action to emp_i.ctx.
Implements emp::web::CanvasAction.
|
inlineinherited |
Actually change the color on screen.
|
inlinevirtual |
Make a copy of the current action.
Implements emp::web::CanvasAction.
|
inlineprotectedinherited |
Helper function to set the fill status.
|
inlineprotectedinherited |
Helper function to set the stroke status.
|
inlineinherited |
Shift the position of this shape to a point.
|
inlineinherited |
Shift the position of this shape to coordinates.
|
inlineinherited |
Change the fill color of this shape.
|
inlineinherited |
Change the stroke color of this shape.
|
inlineinherited |
Setup details needed before drawing lines.
|
inlineprotectedinherited |
Helper function to set the stroke status.
|
protectedinherited |
Internal color to fill shape with.
|
protectedinherited |
Border color for shape.
|
protectedinherited |
How wide should lines be?
|
protectedinherited |
Anchor point for this shape.