7#ifndef KOENHANCEDPATHCOMMAND_H
8#define KOENHANCEDPATHCOMMAND_H
41 qreal
radSweepAngle(qreal start, qreal stop,
bool clockwise)
const;
43 qreal
degSweepAngle(qreal start, qreal stop,
bool clockwise)
const;
bool execute()
Executes the command on the specified path shape.
QString toString() const
Returns a string representation of the command.
QChar m_command
the actual command
QRectF rectFromPoints(const QPointF &tl, const QPointF &br) const
Returns rectangle from given points.
EnhancedPathShape * m_parent
the enhanced path owning the command
KoPathPoint * lastPathPoint() const
Returns the last path point of given path.
EnhancedPathCommand(const QChar &command, EnhancedPathShape *parent)
Constructs a new command from the given command type.
QList< QPointF > pointsFromParameters()
Returns a list of points, created from the parameter list.
QList< EnhancedPathParameter * > m_parameters
the commands parameters
void addParameter(EnhancedPathParameter *parameter)
Adds a new parameter to the command.
qreal radSweepAngle(qreal start, qreal stop, bool clockwise) const
Returns sweep angle from start to stop and given direction.
qreal degSweepAngle(qreal start, qreal stop, bool clockwise) const
Returns sweep angle from start to stop and given direction.
qreal angleFromPoint(const QPointF &point) const
Calculates angle from given point.
The abstract parameter class.
A KoPathPoint represents a point in a path.