QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
| Public 成员函数 | 所有成员列表
Qwt3DParametricSurface类 参考abstract

Abstract base class for parametric surfaces 更多...

#include <qwt3d_parametricsurface.h>

类 Qwt3DParametricSurface 继承关系图:
Qwt3DGridMapping Qwt3DMapping

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
ParallelEpipedrange ()
 
const ParallelEpipedrange () 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).

class Torus : public Qwt3DParametricSurface
{
public:
Triple operator()(double u, double v) override { ... }
};
Torus torus;
torus.setMesh(40, 40);
torus.setDomain(0, 2*PI, 0, 2*PI);
torus.setPeriodic(true, true);
auto data = torus.create();
surface->loadFromData(data);
Abstract base class for parametric surfaces
Definition qwt3d_parametricsurface.h:36
Triple [x,y,z]
Definition qwt3d_types.h:201

成员函数说明

◆ create()

Qwt3DParametricData Qwt3DParametricSurface::create ( )
virtual

Evaluates the parametric surface over the mesh grid and returns the result

返回
Qwt3DParametricData containing the xyz triple matrix and periodicity flags

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.


该类的文档由以下文件生成: