Go to the documentation of this file.
53 const std::string &
name()
const override;
55 Point center(LineWidthFlag flage = IgnoreLineWidth)
const override;
123 Dot &
scale(
double sx,
double sy)
override;
167 void flushFIG(std::ostream & stream,
const TransformFIG & transform, std::map<Color, int> & colormap)
const override;
224 Dot(
const Dot &) =
default;
226 Dot & operator=(
Dot &&) =
default;
227 Dot & operator=(
const Dot &) =
default;
228 ~
Dot()
override =
default;
231 static const std::string _name;
245 Dot::Dot(
double x,
double y, Color color,
double lineWidth)
246 : ShapeWithStyle(color, Color::Null, lineWidth, SolidStyle, RoundCap, MiterJoin), _x(x), _y(y)
250 Dot::Dot(
const Point & p, Color color,
double lineWidth)
251 : ShapeWithStyle(color, Color::Null, lineWidth, SolidStyle, RoundCap, MiterJoin), _x(p.x), _y(p.y)
static const Color & defaultPenColor()
defaultPenColor
Definition: Style.h:281
Rect boundingBox(LineWidthFlag) const override
Definition: Dot.cpp:195
@copyright This source code is part of the Board project, a C++ library whose purpose is to allow sim...
static const double & defaultLineWidth()
defaultLineWidth
Definition: Style.h:276
Dot * clone() const override
Definition: Dot.cpp:206
void flushSVG(std::ostream &stream, const TransformSVG &transform) const override
Definition: Dot.cpp:150
void flushTikZ(std::ostream &stream, const TransformTikZ &transform) const override
Definition: Dot.cpp:158
Struct representing a rectangle on the plane.
Definition: Rect.h:39
Dot & scale(double sx, double sy) override
Definition: Dot.cpp:93
void scaleAll(double s) override
Definition: Dot.cpp:113
void flushPostscript(std::ostream &stream, const TransformEPS &transform) const override
Definition: Dot.cpp:119
A line between two points.
Definition: Dot.h:42
Struct representing a 2D point.
Definition: Point.h:42
virtual void accept(ShapeVisitor &visitor) override
Accepts a visitor object.
Definition: Dot.cpp:165
Abstract structure for a 2D shape.
Definition: Shape.h:63
Dot rotated(double angle, const Point ¢er) const
Definition: Dot.cpp:66
A ConstShapeVisitor may visit const shapes of a composite shape tree in back-to-front order.
Definition: ShapeVisitor.h:78
void flushFIG(std::ostream &stream, const TransformFIG &transform, std::map< Color, int > &colormap) const override
Definition: Dot.cpp:128
Dot scaled(double sx, double sy) const
Definition: Dot.cpp:103
Point center(LineWidthFlag flage=IgnoreLineWidth) const override
Definition: Dot.cpp:55
Dot translated(double dx, double dy) const
Definition: Dot.cpp:88
Dot & translate(double dx, double dy) override
Definition: Dot.cpp:81
double _x
Definition: Dot.h:234
Dot & rotate(double angle, const Point ¢er) override
Definition: Dot.cpp:60
const std::string & name() const override
Definition: Dot.cpp:50
double _y
Definition: Dot.h:235
A ShapeVisitor visits all shapes in a composite shape tree in back-to-front order.
Definition: ShapeVisitor.h:53
Structure representing an RGB triple.
Definition: Color.h:43
Abstract structure for a 2D shape.
Definition: ShapeWithStyle.h:38