Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

QwtSimpleCompassRose Class Reference

#include <qwt_compass_rose.h>

Inheritance diagram for QwtSimpleCompassRose:

QwtCompassRose List of all members.

Public Member Functions

 QwtSimpleCompassRose (int numThorns=8, int numThornLevels=-1)
void setWidth (double w)
double width () const
void setNumThorns (int count)
int numThorns () const
void setNumThornLevels (int count)
int numThornLevels () const
void setShrinkFactor (double factor)
double shrinkFactor () const
virtual void draw (QPainter *, const QPoint &center, int radius, double north, QPalette::ColorGroup=QPalette::Active) const

Static Public Member Functions

void drawRose (QPainter *, const QPoint &center, int radius, double origin, double width, int numThorns, int numThornLevels, double shrinkFactor, const QColor &light, const QColor &dark)

Private Attributes

double d_width
int d_numThorns
int d_numThornLevels
double d_shrinkFactor

Constructor & Destructor Documentation

QwtSimpleCompassRose::QwtSimpleCompassRose int  numThorns = 8,
int  numThornLevels = -1
 

Definition at line 55 of file qwt_compass_rose.cpp.

References QwtCompassRose::palette(), and QwtCompassRose::setPalette().


Member Function Documentation

void QwtSimpleCompassRose::draw QPainter *  ,
const QPoint &  center,
int  radius,
double  north,
QPalette::ColorGroup  = QPalette::Active
const [virtual]
 

Implements QwtCompassRose.

Definition at line 76 of file qwt_compass_rose.cpp.

References d_numThornLevels, d_numThorns, d_shrinkFactor, d_width, drawRose(), and QwtCompassRose::palette().

void QwtSimpleCompassRose::drawRose QPainter *  ,
const QPoint &  center,
int  radius,
double  origin,
double  width,
int  numThorns,
int  numThornLevels,
double  shrinkFactor,
const QColor &  light,
const QColor &  dark
[static]
 

Definition at line 95 of file qwt_compass_rose.cpp.

References cutPoint(), M_PI, M_PI_2, and qwtPolar2Pos().

Referenced by draw().

int QwtSimpleCompassRose::numThornLevels  )  const
 

Definition at line 201 of file qwt_compass_rose.cpp.

References d_numThornLevels.

int QwtSimpleCompassRose::numThorns  )  const
 

Definition at line 191 of file qwt_compass_rose.cpp.

References d_numThorns.

void QwtSimpleCompassRose::setNumThornLevels int  count  ) 
 

Definition at line 196 of file qwt_compass_rose.cpp.

References d_numThornLevels.

void QwtSimpleCompassRose::setNumThorns int  count  ) 
 

Definition at line 180 of file qwt_compass_rose.cpp.

References d_numThorns.

void QwtSimpleCompassRose::setShrinkFactor double  factor  )  [inline]
 

Definition at line 48 of file qwt_compass_rose.h.

void QwtSimpleCompassRose::setWidth double  w  ) 
 

Set the width of the rose heads. Lower value make thinner heads. The range is limited from 0.03 to 0.4.

Definition at line 170 of file qwt_compass_rose.cpp.

References d_width.

double QwtSimpleCompassRose::shrinkFactor  )  const [inline]
 

Definition at line 49 of file qwt_compass_rose.h.

double QwtSimpleCompassRose::width  )  const [inline]
 

Definition at line 40 of file qwt_compass_rose.h.


Member Data Documentation

int QwtSimpleCompassRose::d_numThornLevels [private]
 

Definition at line 62 of file qwt_compass_rose.h.

Referenced by draw(), numThornLevels(), and setNumThornLevels().

int QwtSimpleCompassRose::d_numThorns [private]
 

Definition at line 61 of file qwt_compass_rose.h.

Referenced by draw(), numThorns(), and setNumThorns().

double QwtSimpleCompassRose::d_shrinkFactor [private]
 

Definition at line 63 of file qwt_compass_rose.h.

Referenced by draw().

double QwtSimpleCompassRose::d_width [private]
 

Definition at line 60 of file qwt_compass_rose.h.

Referenced by draw(), and setWidth().


The documentation for this class was generated from the following files:
Generated on Fri Nov 7 14:11:49 2003 for Qwt Developer's Guide by doxygen 1.3.2