Board  0.9.5
Public Member Functions | Static Public Member Functions | List of all members
LibBoard::RoughVisitor Struct Reference
Inheritance diagram for LibBoard::RoughVisitor:
LibBoard::CompositeShapeTransform

Public Member Functions

void setRepeat (int n)
 
void setFilling (SketchFilling filling)
 
void setHachureAngle (double angle)
 
void setHachureSpacing (double spacing)
 
void setAutomaticHachureSpacing (bool)
 
virtual Shapemap (const Shape &shape) override
 
virtual Shapemap (const Shape &shape) const override
 
virtual Shapemap (const Line &) override
 
virtual Shapemap (const Line &) const override
 
virtual Shapemap (const Arrow &) override
 
virtual Shapemap (const Arrow &) const override
 
virtual Shapemap (const Polyline &) override
 
virtual Shapemap (const Polyline &) const override
 
virtual Shapemap (const Ellipse &) override
 
virtual Shapemap (const Ellipse &) const override
 
virtual Shapemap (const Bezier &) override
 
virtual Shapemap (const Bezier &) const override
 
- Public Member Functions inherited from LibBoard::CompositeShapeTransform
virtual Shapemap (const Dot &)
 
virtual Shapemap (const Dot &) const
 
virtual Shapemap (const Text &)
 
virtual Shapemap (const Text &) const
 

Static Public Member Functions

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)
 

Member Function Documentation

◆ randomlySlided()

Point LibBoard::RoughVisitor::randomlySlided ( const Point point,
const double &  radius 
)
static

Return a point randomly slided withing a surrounding disk

Parameters
pointA point.
radiusMaximum 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
pPoint to be moved
aFirst extremity of the segment
bSecond 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
pPoint to be moved
aFirst extremity of the segment
bSecond extremity of the segment
magnitudeMaximum 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
pPoint to be moved
uFirst unit vector
uMagnitudeMaximum distance along u
vFirst unit vector
vMagnitudeMaximum 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
pointA point.
radiusMaximum 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
pPoint to be moved
aFirst extremity of the segment
bSecond 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
pPoint to be moved
aFirst extremity of the segment
bSecond extremity of the segment
magnitudeMaximum 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
pPoint to be moved
uFirst unit vector
uMagnitudeMaximum distance along u
vFirst unit vector
vMagnitudeMaximum distance along v

Referenced by randomlySlidedAwayFromSegmentInBox().


The documentation for this struct was generated from the following files: