QwtVectorFieldSample(3)

πŸ“¦
version 6.3.0 Β· 2 versions
, in alpine 3.24

πŸ¦‹ QwtVectorFieldSample(3) β€” the vector-field-sample bestie guide

From the Library Functions Manual, bestie: meet QwtVectorFieldSample(3). It’s giving tiny-but-important sample class energy. πŸ’…

✨ NAME ✨

QwtVectorFieldSample β€” Sample used in vector fields.

🌈 SYNOPSIS 🌈

#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, periodt.
  • QwtVectorFieldSample (const QPointF &pos, double vx=0.0, double vy=0.0) β€” Constructor, again β€” this one takes a QPointF position.
  • QPointF pos () const β€” Grabs the position.
  • bool isNull () const β€” Checks if the vector part 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 🌸

This is the sample type used in vector fields, no cap.

A vector field sample is basically a position plus a vector β€” usually representing some direction and magnitude β€” attached to that position. It’s literally a little β€œhere’s where” plus β€œhere’s the push” combo. πŸ¦‹

πŸ‘€ See also πŸ‘€

QwtVectorFieldData

πŸ“ Definition at line 243 of file qwt_samples.h.


πŸ› οΈ Constructor & Destructor Documentation πŸ› οΈ

πŸ’œ Constructor #1

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

Constructor. Bestie, here are the 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.

πŸ“ Definition at line 277 of file qwt_samples.h.

🧚 Constructor #2

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

Constructor. This one’s parameters are:

  • pos β€” Position.
  • vectorX β€” x coordinate of the vector.
  • vectorY β€” y coordinate of the vector.

πŸ“ Definition at line 293 of file qwt_samples.h.

πŸ”₯ Member Function Documentation πŸ”₯

⭐ bool QwtVectorFieldSample::isNull () const [inline]

Returns:

  • true, if vx and vy are 0.

πŸ“ Definition at line 309 of file qwt_samples.h.

🌈 QPointF QwtVectorFieldSample::pos () const [inline]

Returns:

  • x/y coordinates as QPointF.

πŸ“ Definition at line 303 of file qwt_samples.h.

πŸ‘‘ Member Data Documentation πŸ‘‘

πŸ’« double QwtVectorFieldSample::vx

x coordinate of the vector.

πŸ“ Definition at line 263 of file qwt_samples.h.

🌟 double QwtVectorFieldSample::vy

y coordinate of the vector.

πŸ“ Definition at line 266 of file qwt_samples.h.

πŸ“ double QwtVectorFieldSample::x

x coordinate of the position.

πŸ“ Definition at line 257 of file qwt_samples.h.

πŸŽ€ double QwtVectorFieldSample::y

y coordinate of the position.

πŸ“ Definition at line 260 of file qwt_samples.h.

πŸ’Œ Author πŸ’Œ

Generated automatically by Doxygen for Qwt User's Guide from the source code. Iconic auto-gen behavior, honestly. ✨


πŸ’– Cute sign-off: source/version energy is Qwt User's Guide, generated by Doxygen from the source code, and the footer date slot isn’t doing a little cameo here, bestie. Bye! πŸ’…

πŸ“¦ where this page comes from