QWT API (中文)
7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
src
plot
qwt_polar_marker.h
1
/******************************************************************************
2
* QwtPolar Widget Library
3
* Copyright (C) 2008 Uwe Rathmann
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the Qwt License, Version 1.0
7
*****************************************************************************/
8
9
#ifndef QWT_POLAR_MARKER_H
10
#define QWT_POLAR_MARKER_H
11
12
#include "qwt_global.h"
13
#include "qwt_polar_item.h"
14
#include "qwt_point_polar.h"
15
16
class
QRect;
17
class
QwtText
;
18
class
QwtSymbol
;
19
35
class
QWT_EXPORT
QwtPolarMarker
:
public
QwtPolarItem
36
{
37
public
:
39
explicit
QwtPolarMarker
();
41
~QwtPolarMarker
()
override
;
42
44
virtual
int
rtti
()
const override
;
45
47
void
setPosition(
const
QwtPointPolar
&);
49
QwtPointPolar
position()
const
;
50
52
void
setSymbol(
const
QwtSymbol
* s);
54
const
QwtSymbol
* symbol()
const
;
55
57
void
setLabel(
const
QwtText
&);
59
QwtText
label()
const
;
60
62
void
setLabelAlignment(Qt::Alignment);
64
Qt::Alignment labelAlignment()
const
;
65
67
virtual
void
draw
(QPainter* painter,
68
const
QwtScaleMap
& azimuthMap,
69
const
QwtScaleMap
& radialMap,
70
const
QPointF& pole,
71
double
radius,
72
const
QRectF& canvasRect)
const override
;
73
75
virtual
QwtInterval
boundingInterval
(
int
scaleId)
const override
;
76
77
private
:
78
QWT_DECLARE_PRIVATE(
QwtPolarMarker
)
79
};
80
81
#endif
QwtInterval
A class representing an interval
Definition
qwt_interval.h:39
QwtPointPolar
A point in polar coordinates
Definition
qwt_point_polar.h:45
QwtPolarItem
Base class for items on a polar plot
Definition
qwt_polar_item.h:35
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
Get the bounding interval for a scale
Definition
qwt_polar_item.cpp:373
QwtPolarItem::rtti
virtual int rtti() const
Get the runtime type information
Definition
qwt_polar_item.cpp:103
QwtPolarMarker
A class for drawing markers
Definition
qwt_polar_marker.h:36
QwtPolarMarker::~QwtPolarMarker
~QwtPolarMarker() override
Destructor
QwtScaleMap
A scale map
Definition
qwt_scale_map.h:44
QwtSymbol
A class for drawing symbols
Definition
qwt_symbol.h:51
QwtText
A class representing a text
Definition
qwt_text.h:70
制作者
1.9.8