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

Abstract base class for mathematical functions 更多...

#include <qwt3d_function.h>

类 Qwt3D::Function 继承关系图:
Qwt3D::GridMapping Qwt3D::Mapping

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::SurfacePlotplotWidget () const
 
void setPlotWidget (Qwt3D::SurfacePlot *pw)
 
Qwt3D::ParallelEpipedrange ()
 
const Qwt3D::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 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.

构造及析构函数说明

◆ Function() [1/2]

Function::Function ( Qwt3D::SurfacePlot plotWidget)
explicit

Constructs a Function object and assigns a SurfacePlot

参数
pwReference to a SurfacePlot widget

◆ Function() [2/2]

Function::Function ( Qwt3D::SurfacePlot plotWidget)
explicit

Constructs a Function object and assigns a SurfacePlot

参数
pwPointer to a SurfacePlot widget

成员函数说明

◆ assign() [1/2]

void Function::assign ( Qwt3D::SurfacePlot plotWidget)

Assigns the object to another widget - call before create()

参数
plotWidgetReference to a SurfacePlot widget

◆ assign() [2/2]

void Function::assign ( Qwt3D::SurfacePlot plotWidget)

Assigns the object to another widget - call before create()

参数
plotWidgetPointer to a SurfacePlot widget

◆ create() [1/2]

bool Function::create ( )
virtual

Creates data representation for the actual assigned SurfacePlot

返回
True on success, false if mesh is too small or no widget assigned

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.

◆ create() [2/2]

bool Function::create ( Qwt3D::SurfacePlot plotWidget)
virtual

Assigns a new SurfacePlot and creates a data representation for it

参数
plReference to a SurfacePlot widget
返回
True on success

◆ setMaxZ()

void Function::setMaxZ ( double  val)

Sets maximum z value for the function

参数
valMaximum z value

◆ setMinZ()

void Function::setMinZ ( double  val)

Sets minimum z value for the function

参数
valMinimum z value

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