Sample used in vector fields.
More...
#include <qwt_samples.h>
|
|
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
|
| |
Sample used in vector fields.
A vector field sample is a position and a vector - usually representing some direction and magnitude - attached to this position.
- See also
- QwtVectorFieldData
◆ QwtVectorFieldSample() [1/2]
| QwtVectorFieldSample::QwtVectorFieldSample |
( |
double |
posX = 0.0, |
|
|
double |
posY = 0.0, |
|
|
double |
vectorX = 0.0, |
|
|
double |
vectorY = 0.0 |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
| posX | x coordinate of the position |
| posY | y coordinate of the position |
| vectorX | x coordinate of the vector |
| vectorY | y coordinate of the vector |
◆ QwtVectorFieldSample() [2/2]
| QwtVectorFieldSample::QwtVectorFieldSample |
( |
const QPointF & |
pos, |
|
|
double |
vectorX = 0.0, |
|
|
double |
vectorY = 0.0 |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
| pos | Position |
| vectorX | x coordinate of the vector |
| vectorY | y coordinate of the vector |
◆ isNull()
| bool QwtVectorFieldSample::isNull |
( |
| ) |
const |
|
inline |
- Returns
- true, if vx and vy are 0
◆ pos()
| QPointF QwtVectorFieldSample::pos |
( |
| ) |
const |
|
inline |
- Returns
- x/y coordinates as QPointF
The documentation for this class was generated from the following file: