QWT API (中文)
7.0.1
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
src
plot3d
qwt3d_drawable.h
1
#ifndef __DRAWABLE_H__
2
#define __DRAWABLE_H__
3
4
#include <list>
5
#include "qwt3d_global.h"
6
#include "qwt3d_types.h"
7
#include "qwt3d_io_gl2ps.h"
8
9
namespace
Qwt3D {
10
20
class
QWT3D_EXPORT
Drawable
21
{
22
23
public
:
24
virtual
~Drawable
() = 0;
25
26
virtual
void
draw();
27
28
virtual
void
saveGLState();
29
virtual
void
restoreGLState();
30
31
void
attach(
Drawable
*);
32
void
detach(
Drawable
*);
33
void
detachAll();
34
35
virtual
void
setColor(
double
r,
double
g,
double
b,
double
a = 1);
36
virtual
void
setColor(
Qwt3D::RGBA
rgba);
37
Qwt3D::Triple
relativePosition(
Qwt3D::Triple
rel);
38
39
protected
:
40
Qwt3D::RGBA
color;
41
void
Enable(GLenum what, GLboolean val);
42
Qwt3D::Triple
ViewPort2World(
Qwt3D::Triple
win,
bool
*err = 0);
43
Qwt3D::Triple
World2ViewPort(
Qwt3D::Triple
obj,
bool
*err = 0);
44
45
GLdouble modelMatrix[16];
46
GLdouble projMatrix[16];
47
GLint viewport[4];
48
49
private
:
50
GLboolean ls;
51
GLboolean pols;
52
GLint polmode[2];
53
GLfloat lw;
54
GLint blsrc, bldst;
55
GLdouble col[4];
56
GLint pattern, factor;
57
GLboolean sallowed;
58
GLboolean tex2d;
59
GLint matrixmode;
60
GLfloat poloffs[2];
61
GLboolean poloffsfill;
62
63
std::list<Drawable *> dlist;
64
};
65
66
}
// ns
67
68
#endif
Qwt3D::Drawable
可绘制对象的抽象基类
Definition
qwt3d_drawable.h:21
Qwt3D::RGBA
红-绿-蓝-透明度值
Definition
qwt3d_types.h:480
Qwt3D::Triple
三元组 [x,y,z]
Definition
qwt3d_types.h:240
制作者
1.9.8