QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
qwt3d_function.h
1#ifndef QWT3D_FUNCTION_H
2#define QWT3D_FUNCTION_H
3
4#include "qwt3d_gridmapping.h"
5
6namespace Qwt3D
7{
8
9class SurfacePlot;
10
17class QWT3D_EXPORT Function : public GridMapping
18{
19
20public:
21 // Constructs Function object w/o assigned SurfacePlot
22 Function();
23 // Constructs Function object and assigns a SurfacePlot
24 explicit Function(Qwt3D::SurfacePlot& plotWidget);
25 // Constructs Function object and assigns a SurfacePlot
26 explicit Function(Qwt3D::SurfacePlot* plotWidget);
27 // Overwrite this
28 virtual double operator()(double x, double y) = 0;
29
30 // Sets minimal z value
31 void setMinZ(double val);
32 // Sets maximal z value
33 void setMaxZ(double val);
34
35 // Assigns a new SurfacePlot and creates a data representation for it
36 virtual bool create(Qwt3D::SurfacePlot& plotWidget);
37 // Creates data representation for the actual assigned SurfacePlot
38 virtual bool create();
39 // Assigns the object to another widget - call before create()
40 void assign(Qwt3D::SurfacePlot& plotWidget);
41 // Assigns the object to another widget - call before create()
42 void assign(Qwt3D::SurfacePlot* plotWidget);
43};
44
45} // ns
46
47#endif // QWT3D_FUNCTION_H
Abstract base class for mathematical functions
Definition qwt3d_function.h:18
Abstract base class for mappings acting on rectangular grids
Definition qwt3d_gridmapping.h:15
A class representing surfaces
Definition qwt3d_surfaceplot.h:16