QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | List of all members
QwtSimpleCompassRose Class Reference

A simple rose for QwtCompass. More...

#include <qwt_compass_rose.h>

Inheritance diagram for QwtSimpleCompassRose:
QwtCompassRose

Classes

class  PrivateData
 

Public Member Functions

 QwtSimpleCompassRose (int numThorns=8, int numThornLevels=-1)
 Constructor.
 
virtual ~QwtSimpleCompassRose ()
 Destructor .
 
void setWidth (double)
 Set the width of the rose heads.
 
double width () const
 Get the width of the rose heads.
 
void setNumThorns (int)
 Set the number of thorns on one level.
 
int numThorns () const
 Get the number of thorns.
 
void setNumThornLevels (int)
 Set the number of thorn levels.
 
int numThornLevels () const
 Get the number of thorn levels.
 
void setShrinkFactor (double factor)
 Set the shrink factor for thorns with each level.
 
double shrinkFactor () const
 Get the shrink factor for thorns with each level.
 
virtual void draw (QPainter *, const QPointF &center, double radius, double north, QPalette::ColorGroup=QPalette::Active) const override
 Draw the rose.
 
- Public Member Functions inherited from QwtCompassRose
 QwtCompassRose ()
 Constructor .
 
virtual ~QwtCompassRose ()
 Destructor .
 
virtual void setPalette (const QPalette &)
 Assign a palette.
 
const QPalette & palette () const
 Get the current palette.
 

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)
 Static helper to draw a rose with specified parameters.
 

Detailed Description

A simple rose for QwtCompass.

Constructor & Destructor Documentation

◆ QwtSimpleCompassRose()

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

Constructor.

◆ ~QwtSimpleCompassRose()

QwtSimpleCompassRose::~QwtSimpleCompassRose ( )
virtual

Destructor .

Member Function Documentation

◆ draw()

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

Draw the rose.

Implements QwtCompassRose.

◆ drawRose()

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

Static helper to draw a rose with specified parameters.

◆ numThornLevels()

int QwtSimpleCompassRose::numThornLevels ( ) const

Get the number of thorn levels.

Returns
Number of thorn levels
See also
setNumThorns(), setNumThornLevels()

◆ numThorns()

int QwtSimpleCompassRose::numThorns ( ) const

Get the number of thorns.

Returns
Number of thorns
See also
setNumThorns(), setNumThornLevels()

◆ setNumThornLevels()

void QwtSimpleCompassRose::setNumThornLevels ( int  numThornLevels)

Set the number of thorn levels.

◆ setNumThorns()

void QwtSimpleCompassRose::setNumThorns ( int  numThorns)

Set the number of thorns on one level.

◆ setShrinkFactor()

void QwtSimpleCompassRose::setShrinkFactor ( double  factor)

Set the shrink factor for thorns with each level.

◆ setWidth()

void QwtSimpleCompassRose::setWidth ( double  width)

Set the width of the rose heads.

◆ shrinkFactor()

double QwtSimpleCompassRose::shrinkFactor ( ) const

Get the shrink factor for thorns with each level.

Returns
Shrink factor
See also
setShrinkFactor()

◆ width()

double QwtSimpleCompassRose::width ( ) const

Get the width of the rose heads.

Returns
Width of the rose heads
See also
setWidth()

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