QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
QwtVectorFieldSample Class Reference

Sample used in vector fields. More...

#include <qwt_samples.h>

Public Member Functions

 QwtVectorFieldSample (double x=0.0, double y=0.0, double vx=0.0, double vy=0.0)
 Constructor with position and vector coordinates.
 
 QwtVectorFieldSample (const QPointF &pos, double vx=0.0, double vy=0.0)
 Constructor with QPointF position and vector coordinates.
 
QPointF pos () const
 Return position as QPointF.
 
bool isNull () const
 Check if the vector is null.
 

Public Attributes

double x
 x coordinate of the position
 
double y
 y coordinate of the position
 
double vx
 x coordinate of the vector
 
double vy
 y coordinate of the vector
 

Detailed Description

Sample used in vector fields.

Constructor & Destructor Documentation

◆ QwtVectorFieldSample() [1/2]

QwtVectorFieldSample::QwtVectorFieldSample ( double  posX = 0.0,
double  posY = 0.0,
double  vectorX = 0.0,
double  vectorY = 0.0 
)
inline

Constructor with position and vector coordinates.

◆ QwtVectorFieldSample() [2/2]

QwtVectorFieldSample::QwtVectorFieldSample ( const QPointF &  pos,
double  vectorX = 0.0,
double  vectorY = 0.0 
)
inline

Constructor with QPointF position and vector coordinates.

Member Function Documentation

◆ isNull()

bool QwtVectorFieldSample::isNull ( ) const
inline

Check if the vector is null.

◆ pos()

QPointF QwtVectorFieldSample::pos ( ) const
inline

Return position as QPointF.


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