Stellarium 0.15.2
|
Public Types | |
enum | EndingStyle { esNone, esFlatArrow, esSpikeArrow, esLineArrow, esDisc, esSquare, esDiamond, esBar, esHalfBar, esSkewedBar } |
Public Member Functions | |
QCPLineEnding (EndingStyle style, double width=8, double length=10, bool inverted=false) | |
EndingStyle | style () const |
double | width () const |
double | length () const |
bool | inverted () const |
void | setStyle (EndingStyle style) |
void | setWidth (double width) |
void | setLength (double length) |
void | setInverted (bool inverted) |
double | boundingDistance () const |
double | realLength () const |
void | draw (QCPPainter *painter, const QVector2D &pos, const QVector2D &dir) const |
void | draw (QCPPainter *painter, const QVector2D &pos, double angle) const |
Protected Attributes | |
EndingStyle | mStyle |
double | mWidth |
double | mLength |
bool | mInverted |
Definition at line 872 of file qcustomplot.h.
Defines the type of ending decoration for line-like items, e.g. an arrow.
The width and length of these decorations can be controlled with the functions setWidth and setLength. Some decorations like esDisc, esSquare, esDiamond and esBar only support a width, the length property is ignored.
Definition at line 888 of file qcustomplot.h.