QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
qwt3d_plot_p.h
1#ifndef QWT3D_PLOT_P_H
2#define QWT3D_PLOT_P_H
3
4#include "qwt3d_plot.h"
5#include "qwt3d_portability.h"
6
7#include <QPoint>
8
9namespace Qwt3D
10{
11
12class Plot3D::PrivateData
13{
14 QWT_DECLARE_PUBLIC(Plot3D)
15
16public:
17 PrivateData(Plot3D* q);
18
19 struct Light
20 {
21 Light() : unlit(true)
22 {
23 }
24 bool unlit;
25 Triple rot;
26 Triple shift;
27 };
28
29 CoordinateSystem m_coordinates;
30 Color* m_dataColor;
31 Enrichment* m_userPlotStyle;
32 std::list< Enrichment* > m_enrichmentList;
33 std::vector< GLuint > m_displayLists;
34 Data* m_actualData;
35
36 std::vector< Light > m_lights;
37
38 GLdouble m_xRot, m_yRot, m_zRot;
39 GLdouble m_xShift, m_yShift, m_zShift;
40 GLdouble m_zoom;
41 GLdouble m_xScale, m_yScale, m_zScale;
42 GLdouble m_xVPShift, m_yVPShift;
43
44 RGBA m_meshColor;
45 double m_meshLineWidth;
46 RGBA m_bgColor;
47 PLOTSTYLE m_plotStyle;
48 SHADINGSTYLE m_shading;
49 FLOORSTYLE m_floorStyle;
50 bool m_ortho;
51 double m_polygonOffset;
52 int m_isolines;
53 bool m_displayLegend;
54 bool m_smoothDataMesh;
55
56 ParallelEpiped m_hull;
57
58 ColorLegend m_legend;
59
60 Label m_title;
61 Tuple m_titleRel;
62 ANCHOR m_titleAnchor;
63
64 QPoint m_lastMouseMovePosition;
65 bool m_pressed;
66
67 MouseState m_xrotMState, m_yrotMState, m_zrotMState;
68 MouseState m_xscaleMState, m_yscaleMState, m_zscaleMState;
69 MouseState m_zoomMState;
70 MouseState m_xshiftMState, m_yshiftMState;
71
72 bool m_mouseInputEnabled;
73
74 KeyboardState m_xrotKState[ 2 ], m_yrotKState[ 2 ], m_zrotKState[ 2 ];
75 KeyboardState m_xscaleKState[ 2 ], m_yscaleKState[ 2 ], m_zscaleKState[ 2 ];
76 KeyboardState m_zoomKState[ 2 ];
77 KeyboardState m_xshiftKState[ 2 ], m_yshiftKState[ 2 ];
78
79 bool m_kPressed;
80 bool m_kbdInputEnabled;
81 double m_kbdRotSpeed, m_kbdScaleSpeed, m_kbdShiftSpeed;
82
83 bool m_lightingEnabled;
84 bool m_initializedGL;
85 bool m_renderPixmapRequest;
86
87 Qwt3DTheme m_theme;
88};
89
90} // ns
91
92#endif // QWT3D_PLOT_P_H