|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
Abstract base class for mathematical functions 更多...
#include <qwt3d_function.h>
Public 成员函数 | |
| Function () | |
| Default constructor | |
| Function (Qwt3D::SurfacePlot &plotWidget) | |
| Constructs a Function object and assigns a SurfacePlot | |
| Function (Qwt3D::SurfacePlot *plotWidget) | |
| Constructs a Function object and assigns a SurfacePlot | |
| virtual double | operator() (double x, double y)=0 |
| void | setMinZ (double val) |
| Sets minimum z value for the function | |
| void | setMaxZ (double val) |
| Sets maximum z value for the function | |
| virtual bool | create (Qwt3D::SurfacePlot &plotWidget) |
| Assigns a new SurfacePlot and creates a data representation for it | |
| virtual bool | create () |
| Creates data representation for the actual assigned SurfacePlot | |
| void | assign (Qwt3D::SurfacePlot &plotWidget) |
| Assigns the object to another widget - call before create() | |
| void | assign (Qwt3D::SurfacePlot *plotWidget) |
| Assigns the object to another widget - call before create() | |
Public 成员函数 继承自 Qwt3D::GridMapping | |
| GridMapping () | |
| Default constructor | |
| void | setMesh (unsigned int columns, unsigned int rows) |
| void | setDomain (double minu, double maxu, double minv, double maxv) |
| Sets the domain (parameter range) for the u and v directions | |
| void | restrictRange (Qwt3D::ParallelEpiped const &) |
| Restricts the data range to a parallelepiped | |
Public 成员函数 继承自 Qwt3D::Mapping | |
| virtual QString | name () const |
额外继承的成员函数 | |
Protected 成员函数 继承自 Qwt3D::GridMapping | |
| Qwt3D::SurfacePlot * | plotWidget () const |
| void | setPlotWidget (Qwt3D::SurfacePlot *pw) |
| Qwt3D::ParallelEpiped & | range () |
| const Qwt3D::ParallelEpiped & | range () const |
| unsigned int | meshU () const |
| unsigned int | meshV () const |
| double | minU () const |
| double | maxU () const |
| double | minV () const |
| double | maxV () const |
Abstract base class for mathematical functions
A Function encapsulates a mathematical function with rectangular domain. The user has to adapt the pure virtual operator() to get a working object. Also, the client code should call setDomain, setMesh and create for reasonable operating conditions.
|
explicit |
Constructs a Function object and assigns a SurfacePlot
| pw | Reference to a SurfacePlot widget |
|
explicit |
Constructs a Function object and assigns a SurfacePlot
| pw | Pointer to a SurfacePlot widget |
| void Function::assign | ( | Qwt3D::SurfacePlot & | plotWidget | ) |
Assigns the object to another widget - call before create()
| plotWidget | Reference to a SurfacePlot widget |
| void Function::assign | ( | Qwt3D::SurfacePlot * | plotWidget | ) |
Assigns the object to another widget - call before create()
| plotWidget | Pointer to a SurfacePlot widget |
|
virtual |
Creates data representation for the actual assigned SurfacePlot
Allocates data arrays, evaluates the function operator() over the mesh grid, clips values to the min/max z range, and loads data into the assigned SurfacePlot.
|
virtual |
Assigns a new SurfacePlot and creates a data representation for it
| pl | Reference to a SurfacePlot widget |
| void Function::setMaxZ | ( | double | val | ) |
Sets maximum z value for the function
| val | Maximum z value |
| void Function::setMinZ | ( | double | val | ) |
Sets minimum z value for the function
| val | Minimum z value |