QwtVectorFieldSymbol(3)

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

πŸ‘‘ QwtVectorFieldSymbol(3) πŸ‘‘

hey bestie πŸ’– welcome to the QwtVectorFieldSymbol(3) page from the Library Functions Manual β€” this is the whole class vibe, no cap.


πŸŽ€ NAME πŸŽ€

QwtVectorFieldSymbol β€” the abstract arrow-drawing interface, periodt. πŸ’…


✨ SYNOPSIS ✨

#include <qwt_vectorfield_symbol.h>

Inherited by QwtVectorFieldArrow, and QwtVectorFieldThinArrow.

🌸 Public Member Functions 🌸

  • QwtVectorFieldSymbol () β€” Constructor. 🫢
  • virtual ~QwtVectorFieldSymbol () β€” Destructor. πŸ’€
  • virtual void setLength (qreal length)=0 β€” pure virtual, bestie.
  • virtual qreal length () const =0 β€” also pure virtual.
  • virtual void paint (QPainter *) const =0 β€” Draw the symbol/arrow. 🎨

πŸ¦‹ Detailed Description πŸ¦‹

Okay so this class defines the abstract interface for arrow drawing routines. Iconic behavior, honestly. ✨

The arrow needs to be drawn horizontally with the arrow tip at coordinate 0,0. That's the rule, bestie. πŸ“

arrowLength() shall return the entire length of the arrow β€” it's needed to translate the arrow for tail/centered alignment. setArrowLength() defines arror length in pixels (screen coordinates). It can be implemented to adjust other geometric properties such as the head size and width of the arrow. It is always called before paint(). Lowkey important. πŸ‘‘

A new arrow implementation can be set with QwtPlotVectorField::setArrowSymbol(), whereby ownership is transferred to the plot field. Cute and powerful. πŸ¦‹

Definition at line 32 of file qwt_vectorfield_symbol.h. πŸ“Œ

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

πŸ’– QwtVectorFieldSymbol::QwtVectorFieldSymbol ()

Constructor. The birth of the symbol, fr fr. 🌱

Definition at line 16 of file qwt_vectorfield_symbol.cpp.

πŸ’€ QwtVectorFieldSymbol::~QwtVectorFieldSymbol () [virtual]

Destructor. It's giving cleanup era. 🧹

Definition at line 21 of file qwt_vectorfield_symbol.cpp.


πŸ’… Member Function Documentation πŸ’…

🌟 virtual qreal QwtVectorFieldSymbol::length () const [pure virtual]

Returns: length of the symbol/arrow. Yes bestie, that's the whole answer. πŸ“

See also setLength().

Implemented in QwtVectorFieldArrow, and QwtVectorFieldThinArrow.

🎨 virtual void QwtVectorFieldSymbol::paint (QPainter * ) const [pure virtual]

Draw the symbol/arrow. Main character energy only. πŸ‘‘

Implemented in QwtVectorFieldArrow, and QwtVectorFieldThinArrow.

πŸ“ virtual void QwtVectorFieldSymbol::setLength (qreal length) [pure virtual]

Set the length of the symbol/arrow. Slay. ✨

See also length().

Implemented in QwtVectorFieldArrow, and QwtVectorFieldThinArrow.


✨ Author ✨

Generated automatically by Doxygen for Qwt User's Guide from the source code. The robots did this one, not me. πŸ€–πŸ’–


🏁 and that's the page, bestie β€” sign-off situation: Qwt User's Guide and QwtVectorFieldSymbol(3), with no date listed on this footer, so don't @ me. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from