QWT API (中文) 7.3.0
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{
9
10class Plot3D;
11
19class QWT3D_EXPORT Enrichment
20{
21public:
22 // Type of the Enrichment - only VERTEXENRICHMENT's are defined at this moment
23 enum TYPE
24 {
25 VERTEXENRICHMENT,
26 EDGEENRICHMENT,
27 FACEENRICHMENT,
28 VOXELENRICHMENT
29 };
30
31 Enrichment() : plot(nullptr)
32 {
33 }
34 virtual ~Enrichment()
35 {
36 }
37 // The derived class should give back a new Derived(something) here
38 virtual Enrichment* clone() const = 0;
39 // Empty per default. Can be overwritten
40 virtual void drawBegin() {};
41 // Empty per default. Can be overwritten
42 virtual void drawEnd() {};
43 // Assign to existent plot
44 virtual void assign(Plot3D const& pl)
45 {
46 plot = &pl;
47 }
48 // Overwrite
49 virtual TYPE type() const = 0;
50
51protected:
52 const Plot3D* plot;
53};
54
61class QWT3D_EXPORT VertexEnrichment : public Enrichment
62{
63public:
65 {
66 }
67 // The derived class should give back a new Derived(something) here
68 virtual Enrichment* clone() const = 0;
69 // Overwrite this
70 virtual void draw(Qwt3D::Triple const&) = 0;
71 // This gives VERTEXENRICHMENT
72 TYPE type() const override
73 {
74 return Qwt3D::Enrichment::VERTEXENRICHMENT;
75 }
76};
77
78} // ns
79
80#endif // QWT3D_ENRICHMENT_H
Abstract base class for data dependent visible user objects
Definition qwt3d_enrichment.h:20
Base class for all plotting widgets
Definition qwt3d_plot.h:22
Abstract base class for vertex dependent visible user objects
Definition qwt3d_enrichment.h:62
Triple [x,y,z]
Definition qwt3d_types.h:170