Classes | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
QwtSimpleCompassRose Class Reference

A simple rose for QwtCompass. More...

#include <qwt_compass_rose.h>

Inheritance diagram for QwtSimpleCompassRose:
Inheritance graph
[legend]

Classes

class  PrivateData
 

Public Member Functions

virtual void draw (QPainter *, const QPointF &center, double radius, double north, QPalette::ColorGroup=QPalette::Active) const QWT_OVERRIDE
 
int numThornLevels () const
 
int numThorns () const
 
 QwtSimpleCompassRose (int numThorns=8, int numThornLevels=-1)
 
void setNumThornLevels (int)
 
void setNumThorns (int)
 
void setShrinkFactor (double factor)
 
void setWidth (double)
 
double shrinkFactor () const
 
double width () const
 
virtual ~QwtSimpleCompassRose ()
 Destructor. More...
 
- Public Member Functions inherited from QwtCompassRose
const QPalette & palette () const
 
 QwtCompassRose ()
 Constructor. More...
 
virtual void setPalette (const QPalette &)
 Assign a palette. More...
 
virtual ~QwtCompassRose ()
 Destructor. More...
 

Static Public Member Functions

static void drawRose (QPainter *, const QPalette &, const QPointF &center, double radius, double north, double width, int numThorns, int numThornLevels, double shrinkFactor)
 

Private Attributes

PrivateDatad_data
 

Detailed Description

A simple rose for QwtCompass.

Definition at line 52 of file qwt_compass_rose.h.

Constructor & Destructor Documentation

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

Constructor

Parameters
numThornsNumber of thorns
numThornLevelsNumber of thorn levels

Definition at line 78 of file qwt_compass_rose.cpp.

QwtSimpleCompassRose::~QwtSimpleCompassRose ( )
virtual

Destructor.

Definition at line 96 of file qwt_compass_rose.cpp.

Member Function Documentation

void QwtSimpleCompassRose::draw ( QPainter *  painter,
const QPointF &  center,
double  radius,
double  north,
QPalette::ColorGroup  cg = QPalette::Active 
) const
virtual

Draw the rose

Parameters
painterPainter
centerCenter point
radiusRadius of the rose
northPosition
cgColor group

Implements QwtCompassRose.

Definition at line 131 of file qwt_compass_rose.cpp.

void QwtSimpleCompassRose::drawRose ( QPainter *  painter,
const QPalette &  palette,
const QPointF &  center,
double  radius,
double  north,
double  width,
int  numThorns,
int  numThornLevels,
double  shrinkFactor 
)
static

Draw the rose

Parameters
painterPainter
palettePalette
centerCenter of the rose
radiusRadius of the rose
northPosition pointing to north
widthWidth of the rose
numThornsNumber of thorns
numThornLevelsNumber of thorn levels
shrinkFactorFactor to shrink the thorns with each level

Definition at line 154 of file qwt_compass_rose.cpp.

int QwtSimpleCompassRose::numThornLevels ( ) const
Returns
Number of thorn levels
See also
setNumThorns(), setNumThornLevels()

Definition at line 293 of file qwt_compass_rose.cpp.

int QwtSimpleCompassRose::numThorns ( ) const
Returns
Number of thorns
See also
setNumThorns(), setNumThornLevels()

Definition at line 273 of file qwt_compass_rose.cpp.

void QwtSimpleCompassRose::setNumThornLevels ( int  numThornLevels)

Set the of thorns levels

Parameters
numThornLevelsNumber of thorns levels
See also
setNumThorns(), numThornLevels()

Definition at line 284 of file qwt_compass_rose.cpp.

void QwtSimpleCompassRose::setNumThorns ( int  numThorns)

Set the number of thorns on one level The number is aligned to a multiple of 4, with a minimum of 4

Parameters
numThornsNumber of thorns
See also
numThorns(), setNumThornLevels()

Definition at line 258 of file qwt_compass_rose.cpp.

void QwtSimpleCompassRose::setShrinkFactor ( double  factor)

Set the Factor how to shrink the thorns with each level The default value is 0.9.

Parameters
factorShrink factor
See also
shrinkFactor()

Definition at line 108 of file qwt_compass_rose.cpp.

void QwtSimpleCompassRose::setWidth ( double  width)

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

Parameters
widthWidth

Definition at line 232 of file qwt_compass_rose.cpp.

double QwtSimpleCompassRose::shrinkFactor ( ) const
Returns
Factor how to shrink the thorns with each level
See also
setShrinkFactor()

Definition at line 117 of file qwt_compass_rose.cpp.

double QwtSimpleCompassRose::width ( ) const
Returns
Width of the rose
See also
setWidth()

Definition at line 246 of file qwt_compass_rose.cpp.

Member Data Documentation

PrivateData* QwtSimpleCompassRose::d_data
private

Definition at line 79 of file qwt_compass_rose.h.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:50