25 #ifndef _BOARD_IMAGE_H_
26 #define _BOARD_IMAGE_H_
56 Image(
const char * filename,
57 double left,
double top,
double width,
double height = 0.0,
69 Image(
const char * filename,
const Rect & rect,
int depth = -1 );
81 const std::string &
name()
const;
236 void flushFIG( std::ostream & stream,
238 std::map<Color,int> & colormap )
const;
247 void flushSVG( std::ostream & stream,
261 static const std::string _name;
266 std::string _filename;
Abstract structure for a 2D shape.
Definition: Shapes.h:56
Point center() const
Definition: Image.cpp:89
Rect boundingBox() const
Definition: Image.cpp:168
void flushFIG(std::ostream &stream, const TransformFIG &transform, std::map< Color, int > &colormap) const
Definition: Image.cpp:216
Shape & scale(double sx, double sy)
Definition: Image.cpp:140
Image translated(double dx, double dy) const
Definition: Image.cpp:134
Shape & rotateDeg(double angle, const Point ¢er)
Struct representing a 2D point.
Definition: Point.h:38
void flushSVG(std::ostream &stream, const TransformSVG &transform) const
Definition: Image.cpp:234
Shape & rotate(double angle, const Point ¢er)
Definition: Image.cpp:95
Structure for a bitmap image shape.
Definition: Image.h:39
void scaleAll(double s)
Definition: Image.cpp:174
void flushTikZ(std::ostream &stream, const TransformTikZ &transform) const
Definition: Image.cpp:259
Image * clone() const
Definition: Image.cpp:83
Image scaled(double sx, double sy)
Definition: Image.cpp:162
A rectangle.
Definition: Shapes.h:924
Image(const char *filename, double left, double top, double width, double height=0.0, int depth=-1)
Definition: Image.cpp:43
@copyright This source code is part of the Board project, a C++ library whose purpose is to allow sim...
~Image()
Definition: Image.h:269
Shape & translate(double dx, double dy)
Definition: Image.cpp:125
const std::string & name() const
Definition: Image.cpp:77
Image rotated(double angle) const
Definition: Image.cpp:114
Struct representing a rectangle on the plane.
Definition: Rect.h:38
void flushPostscript(std::ostream &stream, const TransformEPS &transform) const
Definition: Image.cpp:182