QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
qwt3d_enrichment_std.h
1#ifndef qwt3d_enrichment_std_h
2#define qwt3d_enrichment_std_h
3
4#include "qwt3d_enrichment.h"
5
6namespace Qwt3D {
7
8class Plot3D;
9
19class QWT3D_EXPORT CrossHair : public VertexEnrichment
20{
21public:
22 CrossHair();
23 CrossHair(double rad, double linewidth, bool smooth, bool boxed);
24
25 Qwt3D::Enrichment *clone() const { return new CrossHair(*this); }
26
27 void configure(double rad, double linewidth, bool smooth, bool boxed);
28 void drawBegin();
29 void drawEnd();
30 void draw(Qwt3D::Triple const &);
31
32private:
33 bool boxed_, smooth_;
34 double linewidth_, radius_;
35 GLboolean oldstate_;
36};
37
47class QWT3D_EXPORT Dot : public VertexEnrichment
48{
49public:
50 Dot();
51 Dot(double pointsize, bool smooth);
52
53 Qwt3D::Enrichment *clone() const { return new Dot(*this); }
54
55 void configure(double pointsize, bool smooth);
56 void drawBegin();
57 void drawEnd();
58 void draw(Qwt3D::Triple const &);
59
60private:
61 bool smooth_;
62 double pointsize_;
63 GLboolean oldstate_;
64};
65
75class QWT3D_EXPORT Cone : public VertexEnrichment
76{
77public:
78 Cone();
79 Cone(double rad, unsigned quality);
80 ~Cone();
81
82 Qwt3D::Enrichment *clone() const { return new Cone(*this); }
83
84 void configure(double rad, unsigned quality);
85 void draw(Qwt3D::Triple const &);
86
87private:
88 GLUquadricObj *hat;
89 GLUquadricObj *disk;
90 unsigned quality_;
91 double radius_;
92 GLboolean oldstate_;
93};
94
108class QWT3D_EXPORT Arrow : public VertexEnrichment
109{
110public:
111 Arrow();
112 ~Arrow();
113
114 Qwt3D::Enrichment *clone() const { return new Arrow(*this); }
115
116 void configure(int segs, double relconelength, double relconerad, double relstemrad);
117 // Set the number of faces for the arrow
118 void setQuality(int val) { segments_ = val; }
119 void draw(Qwt3D::Triple const &);
120
121 void setTop(Qwt3D::Triple t) { top_ = t; }
122 void setColor(Qwt3D::RGBA rgba) { rgba_ = rgba; }
123
124private:
125 GLUquadricObj *hat;
126 GLUquadricObj *disk;
127 GLUquadricObj *base;
128 GLUquadricObj *bottom;
129 GLboolean oldstate_;
130
131 double calcRotation(Qwt3D::Triple &axis, Qwt3D::FreeVector const &vec);
132
133 int segments_;
134 double rel_cone_length;
135
136 double rel_cone_radius;
137 double rel_stem_radius;
138
139 Qwt3D::Triple top_;
140 Qwt3D::RGBA rgba_;
141};
142
143} // ns
144
145#endif
三维向量场
Definition qwt3d_enrichment_std.h:109
圆锥样式
Definition qwt3d_enrichment_std.h:76
十字线样式
Definition qwt3d_enrichment_std.h:20
点样式
Definition qwt3d_enrichment_std.h:48
数据依赖可见用户对象的抽象基类
Definition qwt3d_enrichment.h:28
顶点依赖可见用户对象的抽象基类
Definition qwt3d_enrichment.h:71
自由向量
Definition qwt3d_types.h:409
红-绿-蓝-透明度值
Definition qwt3d_types.h:480
三元组 [x,y,z]
Definition qwt3d_types.h:240