Loading...
Searching...
No Matches
qwt_polar_marker.h
/******************************************************************************
* QwtPolar Widget Library
* Copyright (C) 2008 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
*****************************************************************************/
#ifndef QWT_POLAR_MARKER_H
#define QWT_POLAR_MARKER_H
#include "qwt_global.h"
#include "qwt_polar_item.h"
#include "qwt_point_polar.h"
class QRect;
class QwtText;
class QwtSymbol;
class QWT_EXPORT QwtPolarMarker : public QwtPolarItem
{
public:
explicit QwtPolarMarker();
virtual ~QwtPolarMarker();
virtual int rtti() const QWT_OVERRIDE;
void setPosition( const QwtPointPolar& );
QwtPointPolar position() const;
void setSymbol( const QwtSymbol* s );
const QwtSymbol* symbol() const;
void setLabel( const QwtText& );
QwtText label() const;
void setLabelAlignment( Qt::Alignment );
Qt::Alignment labelAlignment() const;
virtual void draw( QPainter* painter,
const QwtScaleMap& azimuthMap, const QwtScaleMap& radialMap,
const QPointF& pole, double radius,
const QRectF& canvasRect ) const QWT_OVERRIDE;
virtual QwtInterval boundingInterval( int scaleId ) const QWT_OVERRIDE;
private:
class PrivateData;
PrivateData* m_data;
};
#endif
QwtInterval
A class representing an interval.
Definition qwt_interval.h:23
QwtPointPolar
A point in polar coordinates.
Definition qwt_point_polar.h:29
QwtPolarItem
Base class for items on a polar plot.
Definition qwt_polar_item.h:38
QwtPolarItem::draw
virtual void draw(QPainter *painter, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, double radius, const QRectF &canvasRect) const =0
Draw the item.
QwtPolarItem::boundingInterval
virtual QwtInterval boundingInterval(int scaleId) const
Definition qwt_polar_item.cpp:381
QwtPolarItem::rtti
virtual int rtti() const
Definition qwt_polar_item.cpp:112
QwtPolarMarker
A class for drawing markers.
Definition qwt_polar_marker.h:37
QwtScaleMap
A scale map.
Definition qwt_scale_map.h:27
QwtSymbol
A class for drawing symbols.
Definition qwt_symbol.h:32
QwtText
A class representing a text.
Definition qwt_text.h:52