Classes | Public Member Functions | Private Attributes | List of all members
QwtVectorFieldArrow Class Reference

#include <qwt_vectorfield_symbol.h>

Inheritance diagram for QwtVectorFieldArrow:
Inheritance graph
[legend]

Classes

class  PrivateData
 

Public Member Functions

virtual qreal length () const QWT_OVERRIDE
 
virtual void paint (QPainter *) const QWT_OVERRIDE
 Draw the symbol/arrow. More...
 
 QwtVectorFieldArrow (qreal headWidth=6.0, qreal tailWidth=1.0)
 Constructor. More...
 
virtual void setLength (qreal length) QWT_OVERRIDE
 
virtual ~QwtVectorFieldArrow () QWT_OVERRIDE
 Destructor. More...
 
- Public Member Functions inherited from QwtVectorFieldSymbol
 QwtVectorFieldSymbol ()
 Constructor. More...
 
virtual ~QwtVectorFieldSymbol ()
 Destructor. More...
 

Private Attributes

PrivateDatam_data
 

Detailed Description

Arrow implementation that draws a filled arrow with outline, using a triangular head of constant width.

Definition at line 61 of file qwt_vectorfield_symbol.h.

Constructor & Destructor Documentation

◆ QwtVectorFieldArrow()

QwtVectorFieldArrow::QwtVectorFieldArrow ( qreal  headWidth = 6.0,
qreal  tailWidth = 1.0 
)

Constructor.

The length is initialized by headWidth + 4

Parameters
headWidthWidth of the triangular head
tailWidthWidth of the arrow tail
See also
setLength()

Definition at line 74 of file qwt_vectorfield_symbol.cpp.

◆ ~QwtVectorFieldArrow()

QwtVectorFieldArrow::~QwtVectorFieldArrow ( )
virtual

Destructor.

Definition at line 80 of file qwt_vectorfield_symbol.cpp.

Member Function Documentation

◆ length()

qreal QwtVectorFieldArrow::length ( ) const
virtual
Returns
length of the symbol/arrow
See also
setLength()

Implements QwtVectorFieldSymbol.

Definition at line 90 of file qwt_vectorfield_symbol.cpp.

◆ paint()

void QwtVectorFieldArrow::paint ( QPainter *  ) const
virtual

Draw the symbol/arrow.

Implements QwtVectorFieldSymbol.

Definition at line 95 of file qwt_vectorfield_symbol.cpp.

◆ setLength()

void QwtVectorFieldArrow::setLength ( qreal  length)
virtual

Set the length of the symbol/arrow

See also
length()

Implements QwtVectorFieldSymbol.

Definition at line 85 of file qwt_vectorfield_symbol.cpp.

Member Data Documentation

◆ m_data

PrivateData* QwtVectorFieldArrow::m_data
private

Definition at line 73 of file qwt_vectorfield_symbol.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:30