karbon
VStar Class Reference
#include <vstar.h>
Inheritance diagram for VStar:

Detailed Description
This shape offers star-like shapes with a lot of parameters :.Types :
Star - fully connected star shape. Star outline - like star but without the cross connections. Framed star - like star outline but with an enclosing path. Spoke - basically a star outline with inner radius of zero. Wheel - like spoke but with enclosing path. Polygon - like VPolygon. Gear - variant on star outline, resembling the KDE gear.
Parameters :
Edges - number of edges, which must be greater or equal to 3. Outer radius - radius amount of circumcircle of the star. Inner radius - inner radius where star has to connect to. This value doesn't apply to polygon, spoke and wheel. Inner angle - extra radius amount for inner radius. Roundness - uses curves instead of lines for the star shape.
Definition at line 47 of file vstar.h.
Public Types | |
enum | VStarType { star_outline, spoke, wheel, polygon, framed_star, star, gear } |
Public Member Functions | |
VStar (VObject *parent, VState state=edit) | |
VStar (VObject *parent, const KoPoint ¢er, double outerRadius, double innerRadius, uint edges, double angle=0.0, uint innerAngle=0, double roundness=0.0, VStarType type=star_outline) | |
virtual QString | name () const |
virtual void | save (QDomElement &element) const |
virtual void | load (const QDomElement &element) |
virtual VPath * | clone () const |
Static Public Member Functions | |
static double | getOptimalInnerRadius (uint edges, double outerRadius, uint innerAngle) |
Protected Member Functions | |
void | init () |
Member Function Documentation
QString VStar::name | ( | ) | const [virtual] |
void VStar::save | ( | QDomElement & | element | ) | const [virtual] |
void VStar::load | ( | const QDomElement & | element | ) | [virtual] |
VPath * VStar::clone | ( | ) | const [virtual] |
The documentation for this class was generated from the following files: