46#define M_PI 3.14159265358979323846
50#define M_PI_2 1.57079632679489661923
57struct ConstShapeVisitor;
58struct CompositeShapeTransform;
81 virtual const std::string &
name()
const;
256 virtual void flushFIG(std::ostream & stream,
const TransformFIG & transform, std::map<Color, int> & colormap)
const = 0;
319 static const std::string _name;
The Color structure. @copyright This source code is part of the Board project, a C++ library whose pu...
@copyright This source code is part of the Board project, a C++ library whose purpose is to allow sim...
The Point structure. @copyright This source code is part of the Board project, a C++ library whose pu...
@copyright This source code is part of the Board project, a C++ library whose purpose is to allow sim...
The Point structure. @copyright This source code is part of the Board project, a C++ library whose pu...
@copyright This source code is part of the Board project, a C++ library whose purpose is to allow sim...
#define M_PI
Definition Shape.h:46
@copyright This source code is part of the Board project, a C++ library whose purpose is to allow sim...
LineWidthFlag
Definition Style.h:57
@ IgnoreLineWidth
Definition Style.h:58
A ConstShapeVisitor may visit const shapes of a composite shape tree in back-to-front order.
Definition ShapeVisitor.h:79
Struct representing a 2D point.
Definition Point.h:42
Struct representing a rectangle on the plane.
Definition Rect.h:40
A ShapeVisitor visits all shapes in a composite shape tree in back-to-front order.
Definition ShapeVisitor.h:54
Abstract structure for a 2D shape.
Definition Shape.h:64
Shape & moveCenter(double x, double y, LineWidthFlag lineWidthFlag=IgnoreLineWidth)
Definition Shape.cpp:64
Shape()
Definition Shape.h:330
virtual void flushFIG(std::ostream &stream, const TransformFIG &transform, std::map< Color, int > &colormap) const =0
virtual Rect boundingBox(LineWidthFlag) const =0
virtual Point center(LineWidthFlag lineWidthFlag=IgnoreLineWidth) const
Definition Shape.cpp:59
virtual void flushTikZ(std::ostream &stream, const TransformTikZ &transform) const =0
virtual void scaleAll(double s)=0
virtual void flushPostscript(std::ostream &stream, const TransformEPS &transform) const =0
virtual Shape & scale(double sx, double sy)=0
virtual Shape & translate(double dx, double dy)=0
Shape & resize(double width, double height, LineWidthFlag lineWidthFlag)
Definition Shape.cpp:78
virtual const std::string & name() const
Definition Shape.cpp:54
Shape & rotateDeg(double angle, const Point ¢er)
Definition Shape.h:337
Shape & scaleToWidth(double w, LineWidthFlag lineWidthFlag)
Definition Shape.cpp:85
Rect bbox(LineWidthFlag) const
Definition Shape.h:332
virtual Shape * clone() const =0
virtual void accept(ShapeVisitor &visitor)
Accepts a visitor object.
Definition Shape.cpp:99
virtual ~Shape()
Definition Shape.cpp:52
virtual Shape & rotate(double angle)=0
virtual Shape & scale(double s)=0
virtual void flushSVG(std::ostream &stream, const TransformSVG &transform) const =0
virtual Shape & rotate(double angle, const Point ¢er)=0
Shape & scaleToHeight(double h, LineWidthFlag lineWidthFlag)
Definition Shape.cpp:92