Public Member Functions | Private Attributes | List of all members
QwtCompassRose Class Referenceabstract

Abstract base class for a compass rose. More...

#include <qwt_compass_rose.h>

Inheritance diagram for QwtCompassRose:
Inheritance graph
[legend]

Public Member Functions

virtual void draw (QPainter *painter, const QPointF &center, double radius, double north, QPalette::ColorGroup colorGroup=QPalette::Active) const =0
 
const QPalette & palette () const
 
 QwtCompassRose ()
 Constructor. More...
 
virtual void setPalette (const QPalette &)
 Assign a palette. More...
 
virtual ~QwtCompassRose ()
 Destructor. More...
 

Private Attributes

QPalette m_palette
 

Detailed Description

Abstract base class for a compass rose.

Definition at line 21 of file qwt_compass_rose.h.

Constructor & Destructor Documentation

◆ QwtCompassRose()

QwtCompassRose::QwtCompassRose ( )

Constructor.

Definition at line 34 of file qwt_compass_rose.cpp.

◆ ~QwtCompassRose()

QwtCompassRose::~QwtCompassRose ( )
virtual

Destructor.

Definition at line 39 of file qwt_compass_rose.cpp.

Member Function Documentation

◆ draw()

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

Draw the rose

Parameters
painterPainter
centerCenter point
radiusRadius of the rose
northPosition
colorGroupColor group

Implemented in QwtSimpleCompassRose.

◆ palette()

const QPalette & QwtCompassRose::palette ( ) const
Returns
Current palette

Definition at line 50 of file qwt_compass_rose.cpp.

◆ setPalette()

void QwtCompassRose::setPalette ( const QPalette &  p)
virtual

Assign a palette.

Definition at line 44 of file qwt_compass_rose.cpp.

Member Data Documentation

◆ m_palette

QPalette QwtCompassRose::m_palette
private

Definition at line 46 of file qwt_compass_rose.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:50