QWT API (中文)
7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
src
plot3d
qwt3d_drawable.h
1
#ifndef QWT3D_DRAWABLE_H
2
#define QWT3D_DRAWABLE_H
3
4
#include "qwt3d_global.h"
5
#include "qwt3d_render_context.h"
6
#include "qwt3d_types.h"
7
17
class
QWT3D_EXPORT
Qwt3DDrawable
18
{
19
QWT_DECLARE_PRIVATE(
Qwt3DDrawable
)
20
21
public
:
22
virtual
~Qwt3DDrawable
() = 0;
23
24
// Draws the drawable and all attached children
25
virtual
void
draw(
const
Qwt3DRenderContext
& ctx);
26
27
void
attach(
Qwt3DDrawable
*);
28
void
detach(
Qwt3DDrawable
*);
29
void
detachAll();
30
31
virtual
void
setColor(
double
r,
double
g,
double
b,
double
a = 1);
32
virtual
void
setColor(
RGBA
rgba);
34
RGBA
color()
const
;
35
36
protected
:
37
RGBA
m_color;
38
39
Qwt3DDrawable
();
40
Qwt3DDrawable
(
Qwt3DDrawable
&& other)
noexcept
;
41
Qwt3DDrawable
& operator=(
Qwt3DDrawable
&& other)
noexcept
;
42
};
43
44
#endif
Qwt3DDrawable
Abstract base class for Drawables
Definition
qwt3d_drawable.h:18
Qwt3DRenderContext
Bundles all widget resources that drawables need during rendering
Definition
qwt3d_render_context.h:38
RGBA
Red-Green-Blue-Alpha value
Definition
qwt3d_types.h:395
制作者
1.9.8