QCPLineEnding Class Reference

#include </home/florent/devel/release/src/gepetto-viewer/plugins/pyqcustomplot/qcustomplot-1.3.2/qcustomplot.h>

Public Types

enum  EndingStyle {
  esNone, esFlatArrow, esSpikeArrow, esLineArrow,
  esDisc, esSquare, esDiamond, esBar,
  esHalfBar, esSkewedBar, esNone, esFlatArrow,
  esSpikeArrow, esLineArrow, esDisc, esSquare,
  esDiamond, esBar, esHalfBar, esSkewedBar,
  esNone, esFlatArrow, esSpikeArrow, esLineArrow,
  esDisc, esSquare, esDiamond, esBar,
  esHalfBar, esSkewedBar
}
 
enum  EndingStyle {
  esNone, esFlatArrow, esSpikeArrow, esLineArrow,
  esDisc, esSquare, esDiamond, esBar,
  esHalfBar, esSkewedBar, esNone, esFlatArrow,
  esSpikeArrow, esLineArrow, esDisc, esSquare,
  esDiamond, esBar, esHalfBar, esSkewedBar,
  esNone, esFlatArrow, esSpikeArrow, esLineArrow,
  esDisc, esSquare, esDiamond, esBar,
  esHalfBar, esSkewedBar
}
 
enum  EndingStyle {
  esNone, esFlatArrow, esSpikeArrow, esLineArrow,
  esDisc, esSquare, esDiamond, esBar,
  esHalfBar, esSkewedBar, esNone, esFlatArrow,
  esSpikeArrow, esLineArrow, esDisc, esSquare,
  esDiamond, esBar, esHalfBar, esSkewedBar,
  esNone, esFlatArrow, esSpikeArrow, esLineArrow,
  esDisc, esSquare, esDiamond, esBar,
  esHalfBar, esSkewedBar
}
 

Public Member Functions

 QCPLineEnding ()
 
 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
 
 QCPLineEnding ()
 
 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 QCPVector2D &pos, const QCPVector2D &dir) const
 
void draw (QCPPainter *painter, const QCPVector2D &pos, double angle) const
 
 QCPLineEnding ()
 
 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
 

Member Enumeration Documentation

◆ EndingStyle [1/3]

Defines the type of ending decoration for line-like items, e.g. an arrow.

QCPLineEnding.png

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.

See also
QCPItemLine::setHead, QCPItemLine::setTail, QCPItemCurve::setHead, QCPItemCurve::setTail, QCPAxis::setLowerEnding, QCPAxis::setUpperEnding
Enumerator
esNone 

No ending decoration.

esFlatArrow 

A filled arrow head with a straight/flat back (a triangle)

esSpikeArrow 

A filled arrow head with an indented back.

esLineArrow 

A non-filled arrow head with open back.

esDisc 

A filled circle.

esSquare 

A filled square.

esDiamond 

A filled diamond (45° rotated square)

A filled diamond (45 degrees rotated square)

esBar 

A bar perpendicular to the line.

esHalfBar 

A bar perpendicular to the line, pointing out to only one side (to which side can be changed with setInverted)

esSkewedBar 

A bar that is skewed (skew controllable via setLength)

esNone 

No ending decoration.

esFlatArrow 

A filled arrow head with a straight/flat back (a triangle)

esSpikeArrow 

A filled arrow head with an indented back.

esLineArrow 

A non-filled arrow head with open back.

esDisc 

A filled circle.

esSquare 

A filled square.

esDiamond 

A filled diamond (45° rotated square)

A filled diamond (45 degrees rotated square)

esBar 

A bar perpendicular to the line.

esHalfBar 

A bar perpendicular to the line, pointing out to only one side (to which side can be changed with setInverted)

esSkewedBar 

A bar that is skewed (skew controllable via setLength)

esNone 

No ending decoration.

esFlatArrow 

A filled arrow head with a straight/flat back (a triangle)

esSpikeArrow 

A filled arrow head with an indented back.

esLineArrow 

A non-filled arrow head with open back.

esDisc 

A filled circle.

esSquare 

A filled square.

esDiamond 

A filled diamond (45° rotated square)

A filled diamond (45 degrees rotated square)

esBar 

A bar perpendicular to the line.

esHalfBar 

A bar perpendicular to the line, pointing out to only one side (to which side can be changed with setInverted)

esSkewedBar 

A bar that is skewed (skew controllable via setLength)

◆ EndingStyle [2/3]

Defines the type of ending decoration for line-like items, e.g. an arrow.

QCPLineEnding.png

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.

See also
QCPItemLine::setHead, QCPItemLine::setTail, QCPItemCurve::setHead, QCPItemCurve::setTail, QCPAxis::setLowerEnding, QCPAxis::setUpperEnding
Enumerator
esNone 

No ending decoration.

esFlatArrow 

A filled arrow head with a straight/flat back (a triangle)

esSpikeArrow 

A filled arrow head with an indented back.

esLineArrow 

A non-filled arrow head with open back.

esDisc 

A filled circle.

esSquare 

A filled square.

esDiamond 

A filled diamond (45° rotated square)

A filled diamond (45 degrees rotated square)

esBar 

A bar perpendicular to the line.

esHalfBar 

A bar perpendicular to the line, pointing out to only one side (to which side can be changed with setInverted)

esSkewedBar 

A bar that is skewed (skew controllable via setLength)

esNone 

No ending decoration.

esFlatArrow 

A filled arrow head with a straight/flat back (a triangle)

esSpikeArrow 

A filled arrow head with an indented back.

esLineArrow 

A non-filled arrow head with open back.

esDisc 

A filled circle.

esSquare 

A filled square.

esDiamond 

A filled diamond (45° rotated square)

A filled diamond (45 degrees rotated square)

esBar 

A bar perpendicular to the line.

esHalfBar 

A bar perpendicular to the line, pointing out to only one side (to which side can be changed with setInverted)

esSkewedBar 

A bar that is skewed (skew controllable via setLength)

esNone 

No ending decoration.

esFlatArrow 

A filled arrow head with a straight/flat back (a triangle)

esSpikeArrow 

A filled arrow head with an indented back.

esLineArrow 

A non-filled arrow head with open back.

esDisc 

A filled circle.

esSquare 

A filled square.

esDiamond 

A filled diamond (45° rotated square)

A filled diamond (45 degrees rotated square)

esBar 

A bar perpendicular to the line.

esHalfBar 

A bar perpendicular to the line, pointing out to only one side (to which side can be changed with setInverted)

esSkewedBar 

A bar that is skewed (skew controllable via setLength)

◆ EndingStyle [3/3]

Defines the type of ending decoration for line-like items, e.g. an arrow.

QCPLineEnding.png

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.

See also
QCPItemLine::setHead, QCPItemLine::setTail, QCPItemCurve::setHead, QCPItemCurve::setTail, QCPAxis::setLowerEnding, QCPAxis::setUpperEnding
Enumerator
esNone 

No ending decoration.

esFlatArrow 

A filled arrow head with a straight/flat back (a triangle)

esSpikeArrow 

A filled arrow head with an indented back.

esLineArrow 

A non-filled arrow head with open back.

esDisc 

A filled circle.

esSquare 

A filled square.

esDiamond 

A filled diamond (45° rotated square)

A filled diamond (45 degrees rotated square)

esBar 

A bar perpendicular to the line.

esHalfBar 

A bar perpendicular to the line, pointing out to only one side (to which side can be changed with setInverted)

esSkewedBar 

A bar that is skewed (skew controllable via setLength)

esNone 

No ending decoration.

esFlatArrow 

A filled arrow head with a straight/flat back (a triangle)

esSpikeArrow 

A filled arrow head with an indented back.

esLineArrow 

A non-filled arrow head with open back.

esDisc 

A filled circle.

esSquare 

A filled square.

esDiamond 

A filled diamond (45° rotated square)

A filled diamond (45 degrees rotated square)

esBar 

A bar perpendicular to the line.

esHalfBar 

A bar perpendicular to the line, pointing out to only one side (to which side can be changed with setInverted)

esSkewedBar 

A bar that is skewed (skew controllable via setLength)

esNone 

No ending decoration.

esFlatArrow 

A filled arrow head with a straight/flat back (a triangle)

esSpikeArrow 

A filled arrow head with an indented back.

esLineArrow 

A non-filled arrow head with open back.

esDisc 

A filled circle.

esSquare 

A filled square.

esDiamond 

A filled diamond (45° rotated square)

A filled diamond (45 degrees rotated square)

esBar 

A bar perpendicular to the line.

esHalfBar 

A bar perpendicular to the line, pointing out to only one side (to which side can be changed with setInverted)

esSkewedBar 

A bar that is skewed (skew controllable via setLength)

Constructor & Destructor Documentation

◆ QCPLineEnding() [1/6]

QCPLineEnding::QCPLineEnding ( )

◆ QCPLineEnding() [2/6]

QCPLineEnding::QCPLineEnding ( EndingStyle  style,
double  width = 8,
double  length = 10,
bool  inverted = false 
)

◆ QCPLineEnding() [3/6]

QCPLineEnding::QCPLineEnding ( )

◆ QCPLineEnding() [4/6]

QCPLineEnding::QCPLineEnding ( EndingStyle  style,
double  width = 8,
double  length = 10,
bool  inverted = false 
)

◆ QCPLineEnding() [5/6]

QCPLineEnding::QCPLineEnding ( )

◆ QCPLineEnding() [6/6]

QCPLineEnding::QCPLineEnding ( EndingStyle  style,
double  width = 8,
double  length = 10,
bool  inverted = false 
)

Member Function Documentation

◆ boundingDistance() [1/3]

double QCPLineEnding::boundingDistance ( ) const

◆ boundingDistance() [2/3]

double QCPLineEnding::boundingDistance ( ) const

◆ boundingDistance() [3/3]

double QCPLineEnding::boundingDistance ( ) const

◆ draw() [1/6]

void QCPLineEnding::draw ( QCPPainter painter,
const QVector2D &  pos,
const QVector2D &  dir 
) const

◆ draw() [2/6]

void QCPLineEnding::draw ( QCPPainter painter,
const QVector2D &  pos,
const QVector2D &  dir 
) const

◆ draw() [3/6]

void QCPLineEnding::draw ( QCPPainter painter,
const QVector2D &  pos,
double  angle 
) const

◆ draw() [4/6]

void QCPLineEnding::draw ( QCPPainter painter,
const QVector2D &  pos,
double  angle 
) const

◆ draw() [5/6]

void QCPLineEnding::draw ( QCPPainter painter,
const QCPVector2D pos,
const QCPVector2D dir 
) const

◆ draw() [6/6]

void QCPLineEnding::draw ( QCPPainter painter,
const QCPVector2D pos,
double  angle 
) const

◆ inverted() [1/3]

bool QCPLineEnding::inverted ( ) const
inline

◆ inverted() [2/3]

bool QCPLineEnding::inverted ( ) const
inline

◆ inverted() [3/3]

bool QCPLineEnding::inverted ( ) const
inline

◆ length() [1/3]

double QCPLineEnding::length ( ) const
inline

◆ length() [2/3]

double QCPLineEnding::length ( ) const
inline

◆ length() [3/3]

double QCPLineEnding::length ( ) const
inline

◆ realLength() [1/3]

double QCPLineEnding::realLength ( ) const

◆ realLength() [2/3]

double QCPLineEnding::realLength ( ) const

◆ realLength() [3/3]

double QCPLineEnding::realLength ( ) const

◆ setInverted() [1/3]

void QCPLineEnding::setInverted ( bool  inverted)

◆ setInverted() [2/3]

void QCPLineEnding::setInverted ( bool  inverted)

◆ setInverted() [3/3]

void QCPLineEnding::setInverted ( bool  inverted)

◆ setLength() [1/3]

void QCPLineEnding::setLength ( double  length)

◆ setLength() [2/3]

void QCPLineEnding::setLength ( double  length)

◆ setLength() [3/3]

void QCPLineEnding::setLength ( double  length)

◆ setStyle() [1/3]

void QCPLineEnding::setStyle ( EndingStyle  style)

◆ setStyle() [2/3]

void QCPLineEnding::setStyle ( EndingStyle  style)

◆ setStyle() [3/3]

void QCPLineEnding::setStyle ( EndingStyle  style)

◆ setWidth() [1/3]

void QCPLineEnding::setWidth ( double  width)

◆ setWidth() [2/3]

void QCPLineEnding::setWidth ( double  width)

◆ setWidth() [3/3]

void QCPLineEnding::setWidth ( double  width)

◆ style() [1/3]

EndingStyle QCPLineEnding::style ( ) const
inline

◆ style() [2/3]

EndingStyle QCPLineEnding::style ( ) const
inline

◆ style() [3/3]

EndingStyle QCPLineEnding::style ( ) const
inline

◆ width() [1/3]

double QCPLineEnding::width ( ) const
inline

◆ width() [2/3]

double QCPLineEnding::width ( ) const
inline

◆ width() [3/3]

double QCPLineEnding::width ( ) const
inline

Member Data Documentation

◆ mInverted

bool QCPLineEnding::mInverted
protected

◆ mLength

double QCPLineEnding::mLength
protected

◆ mStyle

EndingStyle QCPLineEnding::mStyle
protected

◆ mWidth

double QCPLineEnding::mWidth
protected

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