 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
64 static const int PositionLeft = 180;
65 static const int PositionTop = 90;
66 static const int PositionRight = 0;
67 static const int PositionBottom = -90;
79 void setNullPosition(
double position);
96 void setBarStyle(BarStyle style);
107 void setOutlinePenWidth(
double penWidth);
117 void setDataPenWidth(
double penWidth);
137 void setDataColors(
const QGradientStops& stopPoints);
145 void setFormat(
const QString&
format);
154 QString
format()
const {
return m_format; }
160 void setDecimals(
int count);
171 double value()
const {
return m_value; }
191 void setRange(
double min,
double max);
199 void setMinimum(
double min);
207 void setMaximum(
double max);
212 void setValue(
double val);
217 void setValue(
int val);
220 virtual void paintEvent(QPaintEvent*
event);
221 virtual void drawBackground(QPainter& p,
const QRectF& baseRect);
222 virtual void drawBase(QPainter& p,
const QRectF& baseRect);
223 virtual void drawValue(QPainter& p,
224 const QRectF& baseRect,
227 virtual void calculateInnerRect(
const QRectF& baseRect,
230 double& innerRadius);
231 virtual void drawInnerBackground(QPainter& p,
const QRectF& innerRect);
232 virtual void drawText(QPainter& p,
233 const QRectF& innerRect,
236 virtual QString valueToText(
double value)
const;
237 virtual void valueFormatChanged();
244 void rebuildDataBrushIfNeeded();
259 static const int UF_VALUE = 1;
260 static const int UF_PERCENT = 2;
261 static const int UF_MAX = 4;
bool m_rebuildBrush
Definition: QRoundProgressBar.h:254
virtual int heightForWidth(int w) const
Definition: QRoundProgressBar.h:242
double m_dataPenWidth
Definition: QRoundProgressBar.h:251
double maximum() const
Returns maximum of the allowed value range.
Definition: QRoundProgressBar.h:181
void setRange(double min, double max)
Defines minimum und maximum of the allowed value range. If the current value does not fit into the ra...
Definition: QRoundProgressBar.cpp:27
void resetFormat()
Sets format string to empty string. No text will be shown therefore. See setFormat() for more informa...
Definition: QRoundProgressBar.cpp:113
virtual void paintEvent(QPaintEvent *event)
Definition: QRoundProgressBar.cpp:127
static const int UF_PERCENT
Definition: QRoundProgressBar.h:260
static const int UF_VALUE
Definition: QRoundProgressBar.h:259
virtual void drawBackground(QPainter &p, const QRectF &baseRect)
Definition: QRoundProgressBar.cpp:168
filament::Texture::InternalFormat format
Definition: FilamentResourceManager.cpp:181
BarStyle m_barStyle
Definition: QRoundProgressBar.h:250
@ StyleLine
Line style (thin round line around the text)
Definition: QRoundProgressBar.h:90
math::float3 position
Definition: LineSetBuffers.cpp:44
void setMaximum(double max)
Defines maximum of the allowed value range. If the current value does not fit into the range,...
Definition: QRoundProgressBar.cpp:45
double outlinePenWidth() const
Returns width of the outline circle pen.
Definition: QRoundProgressBar.h:111
double dataPenWidth() const
Returns width of the data circle pen.
Definition: QRoundProgressBar.h:121
math::float4 color
Definition: LineSetBuffers.cpp:46
QString format() const
Returns the string used to generate the current text.
Definition: QRoundProgressBar.h:154
int decimals() const
Returns number of decimals to show after the comma (default is 1).
Definition: QRoundProgressBar.h:165
virtual QString valueToText(double value) const
Definition: QRoundProgressBar.cpp:272
int width
Definition: FileIOFactory.cpp:142
QGradientStops m_gradientData
Definition: QRoundProgressBar.h:253
void setBarStyle(BarStyle style)
Sets visual style of the widget.
Definition: QRoundProgressBar.cpp:72
int height
Definition: FileIOFactory.cpp:143
virtual void drawInnerBackground(QPainter &p, const QRectF &innerRect)
Definition: QRoundProgressBar.cpp:247
double m_value
Definition: QRoundProgressBar.h:247
void setValue(double val)
Sets a value which will be shown on the widget.
Definition: QRoundProgressBar.cpp:47
MouseEvent event
Definition: BitmapWindowSystem.cpp:61
void setNullPosition(double position)
Defines position of minimum value.
Definition: QRoundProgressBar.cpp:62
void setFormat(const QString &format)
Defines the string used to generate the current text. If no format is set, no text will be shown.
Definition: QRoundProgressBar.cpp:105
virtual void drawBase(QPainter &p, const QRectF &baseRect)
Definition: QRoundProgressBar.cpp:173
@ StylePie
Pie style (filled pie segment with the text in center)
Definition: QRoundProgressBar.h:88
double m_min
Definition: QRoundProgressBar.h:246
QRoundProgressBar(QWidget *parent=0)
Definition: QRoundProgressBar.cpp:13
BarStyle
The BarStyle enum defines general look of the progress bar.
Definition: QRoundProgressBar.h:84
static const int UF_MAX
Definition: QRoundProgressBar.h:261
double value() const
Returns current value shown on the widget.
Definition: QRoundProgressBar.h:171
int m_decimals
Definition: QRoundProgressBar.h:257
void setDataPenWidth(double penWidth)
Sets width of the data circle pen.
Definition: QRoundProgressBar.cpp:88
virtual bool hasHeightForWidth() const
Definition: QRoundProgressBar.h:241
void setDecimals(int count)
Sets number of decimals to show after the comma (default is 1).
Definition: QRoundProgressBar.cpp:119
double m_nullPosition
Definition: QRoundProgressBar.h:249
int m_updateFlags
Definition: QRoundProgressBar.h:262
QString m_format
Definition: QRoundProgressBar.h:256
The QRoundProgressBar class represents a circular progress bar and maintains its API similar to the Q...
Definition: QRoundProgressBar.h:59
void rebuildDataBrushIfNeeded()
Definition: QRoundProgressBar.cpp:302
BarStyle barStyle() const
Returns current progree bar style.
Definition: QRoundProgressBar.h:101
virtual void calculateInnerRect(const QRectF &baseRect, double outerRadius, QRectF &innerRect, double &innerRadius)
Definition: QRoundProgressBar.cpp:231
double minimum() const
Returns minimum of the allowed value range.
Definition: QRoundProgressBar.h:176
virtual void valueFormatChanged()
Definition: QRoundProgressBar.cpp:290
int count
Definition: FileIOFactory.cpp:132
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15
virtual void drawText(QPainter &p, const QRectF &innerRect, double innerRadius, double value)
Definition: QRoundProgressBar.cpp:255
void setDataColors(const QGradientStops &stopPoints)
Sets colors of the visible data and makes gradient brush from them. Gradient colors can be set for Do...
Definition: QRoundProgressBar.cpp:96
void setOutlinePenWidth(double penWidth)
Sets width of the outline circle pen.
Definition: QRoundProgressBar.cpp:80
virtual QSize minimumSizeHint() const
Definition: QRoundProgressBar.h:239
double nullPosition() const
Return position (in degrees) of minimum value.
Definition: QRoundProgressBar.h:73
virtual void drawValue(QPainter &p, const QRectF &baseRect, double value, double arcLength)
Definition: QRoundProgressBar.cpp:199
double m_outlinePenWidth
Definition: QRoundProgressBar.h:251
@ StyleDonut
Donut style (filled torus around the text)
Definition: QRoundProgressBar.h:86
void setMinimum(double min)
Defines minimum of the allowed value range. If the current value does not fit into the range,...
Definition: QRoundProgressBar.cpp:43
double m_max
Definition: QRoundProgressBar.h:246