Go to the documentation of this file.
57 Image(
const char * filename,
double left,
double top,
double width,
double height = 0.0);
66 Image(
const char * filename,
const Rect & rect);
73 const std::string &
name()
const override;
202 void flushFIG(std::ostream & stream,
const TransformFIG & transform, std::map<Color, int> & colormap)
const override;
267 ~
Image()
override =
default;
270 static const std::string _name;
275 std::string _filename;
@copyright This source code is part of the Board project, a C++ library whose purpose is to allow sim...
A polygonal line described by a series of 2D points.
Definition: Polyline.h:38
Image(const char *filename, double left, double top, double width, double height=0.0)
Definition: Image.cpp:45
void scaleAll(double s) override
Definition: Image.cpp:156
Struct representing a rectangle on the plane.
Definition: Rect.h:39
Shape & translate(double dx, double dy) override
Definition: Image.cpp:111
void flushTikZ(std::ostream &stream, const TransformTikZ &transform) const override
Definition: Image.cpp:240
Shape & scale(double sx, double sy) override
Definition: Image.cpp:124
Struct representing a 2D point.
Definition: Point.h:42
void flushSVG(std::ostream &stream, const TransformSVG &transform) const override
Definition: Image.cpp:215
Image translated(double dx, double dy) const
Definition: Image.cpp:119
virtual void accept(ShapeVisitor &visitor) override
Accepts a visitor object.
Definition: Image.cpp:246
Abstract structure for a 2D shape.
Definition: Shape.h:63
Image * clone() const override
Definition: Image.cpp:78
A ConstShapeVisitor may visit const shapes of a composite shape tree in back-to-front order.
Definition: ShapeVisitor.h:78
void flushPostscript(std::ostream &stream, const TransformEPS &transform) const override
Definition: Image.cpp:163
const std::string & name() const override
Definition: Image.cpp:73
Shape & rotate(double angle, const Point ¢er) override
Definition: Image.cpp:83
void flushFIG(std::ostream &stream, const TransformFIG &transform, std::map< Color, int > &colormap) const override
Definition: Image.cpp:201
virtual Point center(LineWidthFlag lineWidthFlag=IgnoreLineWidth) const
Definition: Shape.cpp:59
Image rotated(double angle) const
Definition: Image.cpp:101
Image scaled(double sx, double sy)
Definition: Image.cpp:146
Rect boundingBox(LineWidthFlag lineWidthFlag) const override
Definition: Image.cpp:151
@copyright This source code is part of the Board project, a C++ library whose purpose is to allow sim...
A ShapeVisitor visits all shapes in a composite shape tree in back-to-front order.
Definition: ShapeVisitor.h:53
Structure for a bitmap image shape.
Definition: Image.h:41