QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
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
14class QWT3D_EXPORT Qwt3DEnrichment
15{
16public:
17 // Type of the Enrichment - only VERTEXENRICHMENT's are defined at this moment
18 enum TYPE
19 {
20 VERTEXENRICHMENT,
21 EDGEENRICHMENT,
22 FACEENRICHMENT,
23 VOXELENRICHMENT
24 };
25
27 {
28 }
29 virtual ~Qwt3DEnrichment()
30 {
31 }
32 // The derived class should give back a new Derived(something) here
33 virtual Qwt3DEnrichment* clone() const = 0;
34 // Empty per default. Can be overwritten
35 virtual void drawBegin() {};
36 // Empty per default. Can be overwritten
37 virtual void drawEnd() {};
38 // Overwrite
39 virtual TYPE type() const = 0;
40};
41
48class QWT3D_EXPORT Qwt3DVertexEnrichment : public Qwt3DEnrichment
49{
50public:
52 {
53 }
54 // The derived class should give back a new Derived(something) here
55 virtual Qwt3DEnrichment* clone() const = 0;
56 // Overwrite this
57 virtual void draw(Triple const&) = 0;
58 // This gives VERTEXENRICHMENT
59 TYPE type() const override
60 {
61 return Qwt3DEnrichment::VERTEXENRICHMENT;
62 }
63};
64
65
66#endif // QWT3D_ENRICHMENT_H
Abstract base class for data dependent visible user objects.
Definition qwt3d_enrichment.h:15
Abstract base class for vertex dependent visible user objects.
Definition qwt3d_enrichment.h:49
Triple [x,y,z].
Definition qwt3d_types.h:201