Go to the documentation of this file.
26 #ifndef BOARD_ROUGH_VISITOR_H
27 #define BOARD_ROUGH_VISITOR_H
48 void setRepeat(
int n);
49 void setFilling(SketchFilling filling);
50 void setHachureAngle(
double angle);
51 void setHachureSpacing(
double spacing);
52 void setAutomaticHachureSpacing(
bool);
53 virtual Shape * map(
const Shape & shape)
override;
54 virtual Shape * map(
const Shape & shape)
const override;
55 virtual Shape * map(
const Line &)
override;
56 virtual Shape * map(
const Line &)
const override;
58 virtual Shape * map(
const Arrow &)
const override;
154 SketchFilling _filling;
155 double _hachureAngle;
156 double _hachureSpacing;
157 bool _automaticHachureSpacing;
static void slideRandomlyAwayFromSegmentInBox(Point &p, const Point &u, double uMagnitude, const Point &v, double vMagnitude)
Definition: RoughVisitor.cpp:362
static Point randomlySlidedAwayFromSegmentInBox(const Point &p, const Point &u, double uMagnitude, const Point &v, double vMagnitude)
Definition: RoughVisitor.cpp:370
The Point structure. @copyright This source code is part of the Board project, a C++ library whose pu...
A polygonal line described by a series of 2D points.
Definition: Polyline.h:38
@copyright This source code is part of the Board project, a C++ library whose purpose is to allow sim...
static Point randomlySlidedAwayFromSegment(const Point &p, const Point &a, const Point &b, const double magnitude)
Definition: RoughVisitor.cpp:339
A line between two points with an arrow at one extremity.
Definition: Arrow.h:38
static Point randomlySlided(const Point &point, const double &radius)
Definition: RoughVisitor.cpp:325
Definition: RoughVisitor.h:46
static void slideRandomlyAwayFromSegment(Point &p, const Point &a, const Point &b, const double magnitude)
Definition: RoughVisitor.cpp:332
Struct representing a 2D point.
Definition: Point.h:42
A line between two points.
Definition: Line.h:38
A cubice polygonal line described by a series of 2D points.
Definition: Bezier.h:40
Abstract structure for a 2D shape.
Definition: Shape.h:63
@copyright This source code is part of the Board project, a C++ library whose purpose is to allow sim...
An ellipse.
Definition: Ellipse.h:38
static void slideRandomly(Point &point, const double &radius)
Definition: RoughVisitor.cpp:320