#include <qwt_vectorfield_symbol.h>
Public Member Functions | |
virtual qreal | length () const =0 |
virtual void | paint (QPainter *) const =0 |
Draw the symbol/arrow. More... | |
QwtVectorFieldSymbol () | |
Constructor. More... | |
virtual void | setLength (qreal length)=0 |
virtual | ~QwtVectorFieldSymbol () |
Destructor. More... | |
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.
QwtVectorFieldSymbol::QwtVectorFieldSymbol | ( | ) |
Constructor.
Definition at line 16 of file qwt_vectorfield_symbol.cpp.
|
virtual |
Destructor.
Definition at line 21 of file qwt_vectorfield_symbol.cpp.
|
pure virtual |
Implemented in QwtVectorFieldThinArrow, and QwtVectorFieldArrow.
|
pure virtual |
Draw the symbol/arrow.
Implemented in QwtVectorFieldThinArrow, and QwtVectorFieldArrow.
|
pure virtual |
Set the length of the symbol/arrow
Implemented in QwtVectorFieldThinArrow, and QwtVectorFieldArrow.