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

Arrow implementation that only used lines, with optionally a filled arrow or only lines. More...

#include <qwt_vectorfield_symbol.h>

Inheritance diagram for QwtVectorFieldThinArrow:
QwtVectorFieldSymbol

Classes

class  PrivateData
 

Public Member Functions

 QwtVectorFieldThinArrow (qreal headWidth=6.0)
 Constructor with head width parameter.
 
virtual ~QwtVectorFieldThinArrow () override
 Destructor.
 
virtual void setLength (qreal length) override
 Set the length of the arrow.
 
virtual qreal length () const override
 Return the length of the arrow.
 
virtual void paint (QPainter *) const override
 Draw the arrow.
 
- Public Member Functions inherited from QwtVectorFieldSymbol
 QwtVectorFieldSymbol ()
 Constructor.
 
virtual ~QwtVectorFieldSymbol ()
 Destructor.
 

Detailed Description

Arrow implementation that only used lines, with optionally a filled arrow or only lines.

Constructor & Destructor Documentation

◆ QwtVectorFieldThinArrow()

QwtVectorFieldThinArrow::QwtVectorFieldThinArrow ( qreal  headWidth = 6.0)

Constructor with head width parameter.

Constructor

The length is initialized by headWidth + 4

Parameters
headWidthWidth of the triangular head
See also
setLength()

◆ ~QwtVectorFieldThinArrow()

QwtVectorFieldThinArrow::~QwtVectorFieldThinArrow ( )
overridevirtual

Destructor.

Destructor

.

Member Function Documentation

◆ length()

qreal QwtVectorFieldThinArrow::length ( ) const
overridevirtual

Return the length of the arrow.

Implements QwtVectorFieldSymbol.

◆ paint()

void QwtVectorFieldThinArrow::paint ( QPainter *  p) const
overridevirtual

Draw the arrow.

Draw the arrow using QPainter.

Implements QwtVectorFieldSymbol.

◆ setLength()

void QwtVectorFieldThinArrow::setLength ( qreal  length)
overridevirtual

Set the length of the arrow.

Implements QwtVectorFieldSymbol.


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