QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
qwt3d_plotitem.h
1#ifndef QWT3D_PLOTITEM_H
2#define QWT3D_PLOTITEM_H
3
4#include "qwt3d_global.h"
5
6#include <QString>
7
8#include "qwt3d_types.h"
9
10class Qwt3DPlot;
11
54class QWT3D_EXPORT Qwt3DPlotItem
55{
56 QWT_DECLARE_PRIVATE(Qwt3DPlotItem)
57
58public:
62 virtual ~Qwt3DPlotItem();
63
65 void attach(Qwt3DPlot* plot);
67 void detach();
68
70 Qwt3DPlot* plot() const;
71
73 virtual void draw() = 0;
75 virtual ParallelEpiped hull() const = 0;
76
78 void setTitle(const QString& title);
80 QString title() const;
81
83 void setZ(double z);
85 double z() const;
86
88 void setVisible(bool on);
90 bool isVisible() const;
91
93 virtual int rtti() const;
94
96 virtual void itemChanged();
97
99 virtual void populateLegendColors(ColorVector& colors) const;
100
101private:
102 Qwt3DPlotItem(const Qwt3DPlotItem&) = delete;
103 Qwt3DPlotItem& operator=(const Qwt3DPlotItem&) = delete;
104};
105
106#endif // QWT3D_PLOTITEM_H
Base class for all 3D plot items.
Definition qwt3d_plotitem.h:55
virtual ~Qwt3DPlotItem()
Destructor — detaches from any plot.
virtual ParallelEpiped hull() const =0
Get the bounding hull of the item in 3D space.
virtual void draw()=0
Draw the item using the current GL context.
Pure rendering window for 3D plots.
Definition qwt3d_plot.h:36
Parallelepiped spanned by 2 Triples.
Definition qwt3d_types.h:334