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

A class for drawing markers. More...

#include <qwt_polar_marker.h>

Inheritance diagram for QwtPolarMarker:
QwtPolarItem

Classes

class  PrivateData
 

Public Member Functions

 QwtPolarMarker ()
 Constructor.
 
virtual ~QwtPolarMarker ()
 Destructor.
 
virtual int rtti () const override
 Get the runtime type information.
 
void setPosition (const QwtPointPolar &)
 Set the position.
 
QwtPointPolar position () const
 Get the position.
 
void setSymbol (const QwtSymbol *s)
 Set the symbol.
 
const QwtSymbolsymbol () const
 Get the symbol.
 
void setLabel (const QwtText &)
 Set the label.
 
QwtText label () const
 Get the label.
 
void setLabelAlignment (Qt::Alignment)
 Set the label alignment.
 
Qt::Alignment labelAlignment () const
 Get the label alignment.
 
virtual void draw (QPainter *painter, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, double radius, const QRectF &canvasRect) const override
 Draw the marker.
 
virtual QwtInterval boundingInterval (int scaleId) const override
 Get the bounding interval for a scale.
 
- Public Member Functions inherited from QwtPolarItem
 QwtPolarItem (const QwtText &title=QwtText())
 Constructor.
 
virtual ~QwtPolarItem ()
 Destructor.
 
void attach (QwtPolarPlot *plot)
 Attach the item to a plot.
 
void detach ()
 Detach the item from its plot.
 
QwtPolarPlotplot () const
 Get the attached plot.
 
void setTitle (const QString &title)
 Set the title from a QString.
 
void setTitle (const QwtText &title)
 Set the title from a QwtText.
 
const QwtTexttitle () const
 Get the title.
 
void setItemAttribute (ItemAttribute, bool on=true)
 Set an item attribute.
 
bool testItemAttribute (ItemAttribute) const
 Test an item attribute.
 
void setRenderHint (RenderHint, bool on=true)
 Set a render hint.
 
bool testRenderHint (RenderHint) const
 Test a render hint.
 
void setRenderThreadCount (uint numThreads)
 Set the number of render threads.
 
uint renderThreadCount () const
 Get the number of render threads.
 
double z () const
 Get the z value.
 
void setZ (double z)
 Set the z value.
 
void show ()
 Show the item.
 
void hide ()
 Hide the item.
 
virtual void setVisible (bool)
 Set the visibility.
 
bool isVisible () const
 Get the visibility.
 
virtual void itemChanged ()
 Update the item and trigger autoRefresh.
 
virtual void legendChanged ()
 Update the legend.
 
virtual void updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &, const QwtInterval &)
 Update the scale division.
 
virtual int marginHint () const
 Get the margin hint.
 
void setLegendIconSize (const QSize &)
 Set the legend icon size.
 
QSize legendIconSize () const
 Get the legend icon size.
 
virtual QList< QwtLegendDatalegendData () const
 Get the legend data.
 
virtual QwtGraphic legendIcon (int index, const QSizeF &) const
 Get the legend icon.
 

Additional Inherited Members

- Public Types inherited from QwtPolarItem
enum  RttiValues {
  Rtti_PolarItem = 0 , Rtti_PolarGrid , Rtti_PolarMarker , Rtti_PolarCurve ,
  Rtti_PolarSpectrogram , Rtti_PolarUserItem = 1000
}
 
enum  ItemAttribute { Legend = 0x01 , AutoScale = 0x02 }
 
enum  RenderHint { RenderAntialiased = 0x01 }
 

Detailed Description

A class for drawing markers.

Constructor & Destructor Documentation

◆ QwtPolarMarker()

QwtPolarMarker::QwtPolarMarker ( )
explicit

Constructor.

◆ ~QwtPolarMarker()

QwtPolarMarker::~QwtPolarMarker ( )
virtual

Destructor.

Destructor

.

Member Function Documentation

◆ boundingInterval()

QwtInterval QwtPolarMarker::boundingInterval ( int  scaleId) const
overridevirtual

Get the bounding interval for a scale.

Get the bounding interval necessary to display the item.

Reimplemented from QwtPolarItem.

◆ draw()

void QwtPolarMarker::draw ( QPainter *  painter,
const QwtScaleMap azimuthMap,
const QwtScaleMap radialMap,
const QPointF &  pole,
double  radius,
const QRectF &  canvasRect 
) const
overridevirtual

Draw the marker.

Implements QwtPolarItem.

◆ label()

QwtText QwtPolarMarker::label ( ) const

Get the label.

Get the label text.

◆ labelAlignment()

Qt::Alignment QwtPolarMarker::labelAlignment ( ) const

Get the label alignment.

◆ position()

QwtPointPolar QwtPolarMarker::position ( ) const

Get the position.

Get the position of the marker.

◆ rtti()

int QwtPolarMarker::rtti ( ) const
overridevirtual

Get the runtime type information.

Reimplemented from QwtPolarItem.

◆ setLabel()

void QwtPolarMarker::setLabel ( const QwtText label)

Set the label.

Set the label text.

◆ setLabelAlignment()

void QwtPolarMarker::setLabelAlignment ( Qt::Alignment  align)

Set the label alignment.

Set the alignment of the label.

◆ setPosition()

void QwtPolarMarker::setPosition ( const QwtPointPolar pos)

Set the position.

Set the position of the marker.

◆ setSymbol()

void QwtPolarMarker::setSymbol ( const QwtSymbol symbol)

Set the symbol.

Assign a symbol.

◆ symbol()

const QwtSymbol * QwtPolarMarker::symbol ( ) const

Get the symbol.

Get the current symbol.


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