|
void | setRepeat (int n) |
|
void | setFilling (SketchFilling filling) |
|
void | setHachureAngle (double angle) |
|
void | setHachureSpacing (double spacing) |
|
void | setAutomaticHachureSpacing (bool) |
|
virtual Shape * | map (const Shape &shape) override |
|
virtual Shape * | map (const Shape &shape) const override |
|
virtual Shape * | map (const Line &) override |
|
virtual Shape * | map (const Line &) const override |
|
virtual Shape * | map (const Arrow &) override |
|
virtual Shape * | map (const Arrow &) const override |
|
virtual Shape * | map (const Polyline &) override |
|
virtual Shape * | map (const Polyline &) const override |
|
virtual Shape * | map (const Ellipse &) override |
|
virtual Shape * | map (const Ellipse &) const override |
|
virtual Shape * | map (const Bezier &) override |
|
virtual Shape * | map (const Bezier &) const override |
|
virtual Shape * | map (const Dot &) |
|
virtual Shape * | map (const Dot &) const |
|
virtual Shape * | map (const Text &) |
|
virtual Shape * | map (const Text &) const |
|
|
static void | slideRandomly (Point &point, const double &radius) |
|
static Point | randomlySlided (const Point &point, const double &radius) |
|
static void | slideRandomlyAwayFromSegment (Point &p, const Point &a, const Point &b, const double magnitude) |
|
static Point | randomlySlidedAwayFromSegment (const Point &p, const Point &a, const Point &b, const double magnitude) |
|
static void | slideRandomlyAwayFromSegment (Point &p, const Point &a, const Point &b) |
|
static Point | randomlySlidedAwayFromSegment (const Point &p, const Point &a, const Point &b) |
|
static void | slideRandomlyAwayFromSegmentInBox (Point &p, const Point &u, double uMagnitude, const Point &v, double vMagnitude) |
|
static Point | randomlySlidedAwayFromSegmentInBox (const Point &p, const Point &u, double uMagnitude, const Point &v, double vMagnitude) |
|
◆ randomlySlided()
Point LibBoard::RoughVisitor::randomlySlided |
( |
const Point & |
point, |
|
|
const double & |
radius |
|
) |
| |
|
static |
Return a point randomly slided withing a surrounding disk
- Parameters
-
point | A point. |
radius | Maximum radius of the motion. |
- Returns
- The slided point, once translated.
Referenced by slideRandomly().
◆ randomlySlidedAwayFromSegment() [1/2]
Point LibBoard::RoughVisitor::randomlySlidedAwayFromSegment |
( |
const Point & |
p, |
|
|
const Point & |
a, |
|
|
const Point & |
b |
|
) |
| |
|
static |
Move the point randomly away from an axis, at most 0.5% away from it.
- Parameters
-
p | Point to be moved |
a | First extremity of the segment |
b | Second extremity of the segment |
- Returns
- The point once moved.
References slideRandomlyAwayFromSegment().
◆ randomlySlidedAwayFromSegment() [2/2]
Point LibBoard::RoughVisitor::randomlySlidedAwayFromSegment |
( |
const Point & |
p, |
|
|
const Point & |
a, |
|
|
const Point & |
b, |
|
|
const double |
magnitude |
|
) |
| |
|
static |
Move the point randomly away from an axis
- Parameters
-
p | Point to be moved |
a | First extremity of the segment |
b | Second extremity of the segment |
magnitude | Maximum distance from segment AB |
- Returns
- The point once moved.
References slideRandomlyAwayFromSegment().
◆ randomlySlidedAwayFromSegmentInBox()
Point LibBoard::RoughVisitor::randomlySlidedAwayFromSegmentInBox |
( |
const Point & |
p, |
|
|
const Point & |
u, |
|
|
double |
uMagnitude, |
|
|
const Point & |
v, |
|
|
double |
vMagnitude |
|
) |
| |
|
static |
Move a point randomly away from an axis within a parallelogram.
- Parameters
-
p | Point to be moved |
u | First unit vector |
uMagnitude | Maximum distance along u |
v | First unit vector |
vMagnitude | Maximum distance along v |
- Returns
- The point once moved.
References slideRandomlyAwayFromSegmentInBox().
◆ slideRandomly()
void LibBoard::RoughVisitor::slideRandomly |
( |
Point & |
point, |
|
|
const double & |
radius |
|
) |
| |
|
static |
Randomly slide a point withing a surrounding disk
- Parameters
-
point | A point. |
radius | Maximum radius of the motion. |
- Returns
- The point, once slided.
References randomlySlided().
◆ slideRandomlyAwayFromSegment() [1/2]
void LibBoard::RoughVisitor::slideRandomlyAwayFromSegment |
( |
Point & |
p, |
|
|
const Point & |
a, |
|
|
const Point & |
b |
|
) |
| |
|
static |
Move the point randomly away from an axis, at most 0.5% away from it.
- Parameters
-
p | Point to be moved |
a | First extremity of the segment |
b | Second extremity of the segment |
References LibBoard::Point::norm().
◆ slideRandomlyAwayFromSegment() [2/2]
void LibBoard::RoughVisitor::slideRandomlyAwayFromSegment |
( |
Point & |
p, |
|
|
const Point & |
a, |
|
|
const Point & |
b, |
|
|
const double |
magnitude |
|
) |
| |
|
static |
Move the point randomly away from an axis
- Parameters
-
p | Point to be moved |
a | First extremity of the segment |
b | Second extremity of the segment |
magnitude | Maximum distance from segment AB |
Referenced by randomlySlidedAwayFromSegment().
◆ slideRandomlyAwayFromSegmentInBox()
void LibBoard::RoughVisitor::slideRandomlyAwayFromSegmentInBox |
( |
Point & |
p, |
|
|
const Point & |
u, |
|
|
double |
uMagnitude, |
|
|
const Point & |
v, |
|
|
double |
vMagnitude |
|
) |
| |
|
static |
Move a point randomly away from an axis within a parallelogram.
- Parameters
-
p | Point to be moved |
u | First unit vector |
uMagnitude | Maximum distance along u |
v | First unit vector |
vMagnitude | Maximum distance along v |
Referenced by randomlySlidedAwayFromSegmentInBox().
The documentation for this struct was generated from the following files: