QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
qwt3d_enrichment.h
1#ifndef qwt3d_enrichment_h
2#define qwt3d_enrichment_h
3
4#include "qwt3d_global.h"
5#include "qwt3d_types.h"
6
7namespace Qwt3D {
8
9class Plot3D;
10
27class QWT3D_EXPORT Enrichment
28{
29public:
30 // Type of the Enrichment - only VERTEXENRICHMENT's are defined at this moment
31 enum TYPE {
32 VERTEXENRICHMENT,
33 EDGEENRICHMENT,
34 FACEENRICHMENT,
35 VOXELENRICHMENT
36 };
37
38 Enrichment() : plot(0) { }
39 virtual ~Enrichment() { }
40 // The derived class should give back a new Derived(something) here
41 virtual Enrichment *clone() const = 0;
42 // Empty per default. Can be overwritten
43 virtual void drawBegin() {};
44 // Empty per default. Can be overwritten
45 virtual void drawEnd() {};
46 // Assign to existent plot
47 virtual void assign(Plot3D const &pl) { plot = &pl; }
48 // Overwrite
49 virtual TYPE type() const = 0;
50
51protected:
52 const Plot3D *plot;
53};
54
70class QWT3D_EXPORT VertexEnrichment : public Enrichment
71{
72public:
74 // The derived class should give back a new Derived(something) here
75 virtual Enrichment *clone() const = 0;
76 // Overwrite this
77 virtual void draw(Qwt3D::Triple const &) = 0;
78 // This gives VERTEXENRICHMENT
79 virtual TYPE type() const
80 {
81 return Qwt3D::Enrichment::VERTEXENRICHMENT;
82 }
83};
84
85} // ns
86
87#endif
数据依赖可见用户对象的抽象基类
Definition qwt3d_enrichment.h:28
所有绘图控件的基类
Definition qwt3d_plot.h:31
顶点依赖可见用户对象的抽象基类
Definition qwt3d_enrichment.h:71
三元组 [x,y,z]
Definition qwt3d_types.h:240