13#define StarShapeId "StarShape"
100 void setSize(
const QSizeF &newSize)
override;
107 void moveHandleAction(
int handleId,
const QPointF &point, Qt::KeyboardModifiers modifiers = Qt::NoModifier)
override;
QSizeF size() const override
reimplemented
QString pathShapeId() const override
reimplemented
uint cornerCount() const
Returns the number of corners.
qreal m_zoomY
scaling in y
bool m_convex
controls if the star is convex
void moveHandleAction(int handleId, const QPointF &point, Qt::KeyboardModifiers modifiers=Qt::NoModifier) override
Updates the internal state of a KoParameterShape.
void setSize(const QSizeF &newSize) override
reimplemented
void setBaseRadius(qreal baseRadius)
uint m_cornerCount
number of corners
QPointF starCenter() const
std::array< qreal, 2 > m_radius
the different radii
void setCornerCount(uint cornerCount)
QPointF computeCenter() const
Computes the star center point from the inner points.
bool convex() const
Returns if the star represents a regular polygon.
qreal m_zoomX
scaling in x
double defaultAngleRadian() const
Returns the default offset angle in radian.
void setTipRadius(qreal tipRadius)
KoShape * cloneShape() const override
creates a deep copy of the shape or shape's subtree
void setTipRoundness(qreal tipRoundness)
qreal baseRadius() const
Returns the base radius.
void createPoints(int requiredPointCount)
recreates the path points when the corner count or convexity changes
qreal tipRadius() const
Returns the tip radius.
std::array< qreal, 2 > m_roundness
the roundness at the handles
std::array< qreal, 2 > m_angles
the offset angles
void updatePath(const QSizeF &size) override
Update the path of the parameter shape.
void setBaseRoundness(qreal baseRoundness)
void setConvex(bool convex)
QPointF m_center
the star center point