|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
Abstract base class for parametric surfaces 更多...
#include <qwt3d_parametricsurface.h>
类 | |
| class | PrivateData |
Public 成员函数 | |
| virtual Triple | operator() (double u, double v)=0 |
| virtual Qwt3DParametricData | create () |
| Evaluates the parametric surface over the mesh grid and returns the result | |
| void | setPeriodic (bool u, bool v) |
Public 成员函数 继承自 Qwt3DGridMapping | |
| Qwt3DGridMapping () | |
| 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 (ParallelEpiped const &) |
| Restricts the data range to a parallelepiped | |
Public 成员函数 继承自 Qwt3DMapping | |
| virtual QString | name () const |
额外继承的成员函数 | |
Protected 成员函数 继承自 Qwt3DGridMapping | |
| ParallelEpiped & | range () |
| const 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 parametric surfaces
A Qwt3DParametricSurface encapsulates a parametric surface defined by operator()(u, v). The user overrides operator() to produce a working object. setDomain, setMesh and create should be called for reasonable operating conditions.
create() returns a Qwt3DParametricData struct that the caller feeds to Qwt3DSurface::loadFromData(). The class no longer holds a back-pointer to the surface item (deferred smell #2, resolved).
|
virtual |
Evaluates the parametric surface over the mesh grid and returns the result
Allocates a triple matrix, evaluates operator()(u, v) over the mesh grid, clips values to the range bounds, and returns the result. The caller is responsible for feeding this to Qwt3DSurface::loadFromData(). Returns an empty result (columns=0) if the mesh is too small.