karbon

VStar Class Reference

#include <vstar.h>

Inheritance diagram for VStar:

VPath VObject

List of all members.


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 &center, 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 VPathclone () 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]

Returns the name of the object.

Returns:
the object's name

Reimplemented from VObject.

Definition at line 265 of file vstar.cc.

void VStar::save ( QDomElement &  element  )  const [virtual]

Save this object's state to xml.

Parameters:
element the DOM element to which the attributes are saved

Reimplemented from VPath.

Definition at line 272 of file vstar.cc.

void VStar::load ( const QDomElement &  element  )  [virtual]

Load this object's state from xml and initialize this object accordingly.

Parameters:
element the DOM element from which the attributes are read

Reimplemented from VPath.

Definition at line 314 of file vstar.cc.

VPath * VStar::clone (  )  const [virtual]

Create an exact copy of this object.

Returns:
the exact object copy

Reimplemented from VPath.

Definition at line 345 of file vstar.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys