QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Qwt3D::Function Class Referenceabstract

Abstract base class for mathematical functions. More...

#include <qwt3d_function.h>

Inheritance diagram for Qwt3D::Function:
Qwt3D::GridMapping Qwt3D::Mapping

Public Member Functions

 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 Member Functions inherited from 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 Member Functions inherited from Qwt3D::Mapping
virtual QString name () const
 

Additional Inherited Members

- Protected Member Functions inherited from 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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Function() [1/2]

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

Constructs a Function object and assigns a SurfacePlot.

Parameters
pwReference to a SurfacePlot widget

◆ Function() [2/2]

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

Constructs a Function object and assigns a SurfacePlot.

Parameters
pwPointer to a SurfacePlot widget

Member Function Documentation

◆ assign() [1/2]

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

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

Parameters
plotWidgetReference to a SurfacePlot widget

◆ assign() [2/2]

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

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

Parameters
plotWidgetPointer to a SurfacePlot widget

◆ create() [1/2]

bool Function::create ( )
virtual

Creates data representation for the actual assigned SurfacePlot.

Returns
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.

Parameters
plReference to a SurfacePlot widget
Returns
True on success

◆ setMaxZ()

void Function::setMaxZ ( double  val)

Sets maximum z value for the function.

Parameters
valMaximum z value

◆ setMinZ()

void Function::setMinZ ( double  val)

Sets minimum z value for the function.

Parameters
valMinimum z value

The documentation for this class was generated from the following files: