Public Member Functions | List of all members
QwtVectorFieldSymbol Class Referenceabstract

#include <qwt_vectorfield_symbol.h>

Inheritance diagram for QwtVectorFieldSymbol:
Inheritance graph
[legend]

Public Member Functions

virtual qreal length () const =0
 
virtual void paint (QPainter *) const =0
 
 QwtVectorFieldSymbol ()
 
virtual void setLength (qreal length)=0
 
virtual ~QwtVectorFieldSymbol ()
 

Detailed Description

Defines abstract interface for arrow drawing routines.

Arrow needs to be drawn horizontally with arrow tip at coordinate 0,0. arrowLength() shall return the entire length of the arrow (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().

A new arrow implementation can be set with QwtPlotVectorField::setArrowSymbol(), whereby ownership is transferred to the plot field.

Definition at line 32 of file qwt_vectorfield_symbol.h.

Constructor & Destructor Documentation

QwtVectorFieldSymbol::QwtVectorFieldSymbol ( )

Definition at line 15 of file qwt_vectorfield_symbol.cpp.

QwtVectorFieldSymbol::~QwtVectorFieldSymbol ( )
virtual

Definition at line 19 of file qwt_vectorfield_symbol.cpp.

Member Function Documentation

virtual qreal QwtVectorFieldSymbol::length ( ) const
pure virtual
virtual void QwtVectorFieldSymbol::paint ( QPainter *  ) const
pure virtual
virtual void QwtVectorFieldSymbol::setLength ( qreal  length)
pure virtual

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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:50