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

bool isNull () const
 
QPointF pos () const
 
 QwtVectorFieldSample (const QPointF &pos, double vx=0.0, double vy=0.0)
 Constructor. More...
 
 QwtVectorFieldSample (double x=0.0, double y=0.0, double vx=0.0, double vy=0.0)
 Constructor. More...
 

Public Attributes

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

Detailed Description

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

Definition at line 243 of file qwt_samples.h.

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.

Parameters
posXx coordinate of the position
posYy coordinate of the position
vectorXx coordinate of the vector
vectorYy coordinate of the vector

Definition at line 277 of file qwt_samples.h.

◆ QwtVectorFieldSample() [2/2]

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

Constructor.

Parameters
posPosition
vectorXx coordinate of the vector
vectorYy coordinate of the vector

Definition at line 293 of file qwt_samples.h.

Member Function Documentation

◆ isNull()

bool QwtVectorFieldSample::isNull ( ) const
inline
Returns
true, if vx and vy are 0

Definition at line 309 of file qwt_samples.h.

◆ pos()

QPointF QwtVectorFieldSample::pos ( ) const
inline
Returns
x/y coordinates as QPointF

Definition at line 303 of file qwt_samples.h.

Member Data Documentation

◆ vx

double QwtVectorFieldSample::vx

x coordinate of the vector

Definition at line 263 of file qwt_samples.h.

◆ vy

double QwtVectorFieldSample::vy

y coordinate of the vector

Definition at line 266 of file qwt_samples.h.

◆ x

double QwtVectorFieldSample::x

x coordinate of the position

Definition at line 257 of file qwt_samples.h.

◆ y

double QwtVectorFieldSample::y

y coordinate of the position

Definition at line 260 of file qwt_samples.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51