C
DefaultPathDataStroker Class
class Qul::PlatformInterface::DefaultPathDataStrokerThe DefaultPathDataStroker provides a default implementation. More...
Header: | #include <platforminterface/pathdatastroker.h> |
Since: | Qt Quick Ultralite (Platform) 1.8 |
Inherits: | Qul::PlatformInterface::PathDataStroker |
Public Functions
DefaultPathDataStroker(const Qul::PlatformInterface::PathData *data) | |
const Qul::PlatformInterface::PathData & | getPath() const |
Reimplemented Protected Functions
virtual void | arcTo(float x, float y, float rx, float ry, float rotation, bool largeArc, bool clockwise) override |
virtual void | beginStroke() override |
virtual void | cubicTo(float c1x, float c1y, float c2x, float c2y, float ex, float ey) override |
virtual void | endStroke() override |
virtual void | lineTo(float x, float y) override |
virtual void | moveTo(float x, float y) override |
Detailed Description
Implements all the virtual functions of PathDataStroker to store requested stroke's path segments. It returns a basic PathData structure that is compatible with the platform interface's shape APIs.
See also Qul::PlatformInterface::PathDataStroker.
Member Function Documentation
DefaultPathDataStroker::DefaultPathDataStroker(const Qul::PlatformInterface::PathData *data)
Constructs a default stroker instance for shape defined in data.
See also setStrokeProperties().
[override virtual protected]
void DefaultPathDataStroker::arcTo(float x, float y, float rx, float ry, float rotation, bool largeArc, bool clockwise)
Reimplements: PathDataStroker::arcTo(float x, float y, float rx, float ry, float rotation, bool largeArc, bool clockwise).
Adds elliptical arc curve segment to the temporary storage vectors. Arc will be drawn from previous segment to the x and y coordinates. Size of the curve is defined by rx and ry, and radii by rotation. The largeArc and clockwise arguments define how the arc is drawn.
Note: This method is called by stroke().
[override virtual protected]
void DefaultPathDataStroker::beginStroke()
Reimplements: PathDataStroker::beginStroke().
Clears temporary storage vectors.
Note: This method is called by stroke().
[override virtual protected]
void DefaultPathDataStroker::cubicTo(float c1x, float c1y, float c2x, float c2y, float ex, float ey)
Reimplements: PathDataStroker::cubicTo(float c1x, float c1y, float c2x, float c2y, float ex, float ey).
Adds cubic segment to the temporary storage vectors. Cubic curve will be drawn from previous segment to the ex and ey coordinates, using c1x and c1y as the first control point, and c2x and c2y as the second control point of the curve.
Note: This method is called by stroke().
[override virtual protected]
void DefaultPathDataStroker::endStroke()
Reimplements: PathDataStroker::endStroke().
Builds the final data structure at the end of stroke generation. The generated path cannot be retrieved by getPath().
Note: This method is called by stroke().
See also getPath() and stroke().
const Qul::PlatformInterface::PathData &DefaultPathDataStroker::getPath() const
Returns a path representation of the stroke.
Note: Returned value is valid after calling stroke().
See also stroke().
[override virtual protected]
void DefaultPathDataStroker::lineTo(float x, float y)
Reimplements: PathDataStroker::lineTo(float x, float y).
Adds line segment to the temporary storage vectors. Line will be drawn from previous segment to the x and y coordinates.
Note: This method is called by stroke().
[override virtual protected]
void DefaultPathDataStroker::moveTo(float x, float y)
Reimplements: PathDataStroker::moveTo(float x, float y).
Adds move segment to the temporary storage vectors. Cursor will be moved to the x and y coordinates.
Note: This method is called by stroke().
Available under certain Qt licenses.
Find out more.