QCPSelectionDecoratorBracket Class Reference

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

Inheritance diagram for QCPSelectionDecoratorBracket:
Collaboration diagram for QCPSelectionDecoratorBracket:

Public Types

enum  BracketStyle {
  bsSquareBracket, bsHalfEllipse, bsEllipse, bsPlus,
  bsUserStyle
}
 

Public Member Functions

 QCPSelectionDecoratorBracket ()
 
virtual ~QCPSelectionDecoratorBracket ()
 
QPen bracketPen () const
 
QBrush bracketBrush () const
 
int bracketWidth () const
 
int bracketHeight () const
 
BracketStyle bracketStyle () const
 
bool tangentToData () const
 
int tangentAverage () const
 
void setBracketPen (const QPen &pen)
 
void setBracketBrush (const QBrush &brush)
 
void setBracketWidth (int width)
 
void setBracketHeight (int height)
 
void setBracketStyle (BracketStyle style)
 
void setTangentToData (bool enabled)
 
void setTangentAverage (int pointCount)
 
virtual void drawBracket (QCPPainter *painter, int direction) const
 
virtual void drawDecoration (QCPPainter *painter, QCPDataSelection selection) Q_DECL_OVERRIDE
 
- Public Member Functions inherited from QCPSelectionDecorator
 QCPSelectionDecorator ()
 
virtual ~QCPSelectionDecorator ()
 
QPen pen () const
 
QBrush brush () const
 
QCPScatterStyle scatterStyle () const
 
QCPScatterStyle::ScatterProperties usedScatterProperties () const
 
void setPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
void setScatterStyle (const QCPScatterStyle &scatterStyle, QCPScatterStyle::ScatterProperties usedProperties=QCPScatterStyle::spPen)
 
void setUsedScatterProperties (const QCPScatterStyle::ScatterProperties &properties)
 
void applyPen (QCPPainter *painter) const
 
void applyBrush (QCPPainter *painter) const
 
QCPScatterStyle getFinalScatterStyle (const QCPScatterStyle &unselectedStyle) const
 
virtual void copyFrom (const QCPSelectionDecorator *other)
 

Protected Member Functions

double getTangentAngle (const QCPPlottableInterface1D *interface1d, int dataIndex, int direction) const
 
QPointF getPixelCoordinates (const QCPPlottableInterface1D *interface1d, int dataIndex) const
 
- Protected Member Functions inherited from QCPSelectionDecorator
virtual bool registerWithPlottable (QCPAbstractPlottable *plottable)
 

Protected Attributes

QPen mBracketPen
 
QBrush mBracketBrush
 
int mBracketWidth
 
int mBracketHeight
 
BracketStyle mBracketStyle
 
bool mTangentToData
 
int mTangentAverage
 
- Protected Attributes inherited from QCPSelectionDecorator
QPen mPen
 
QBrush mBrush
 
QCPScatterStyle mScatterStyle
 
QCPScatterStyle::ScatterProperties mUsedScatterProperties
 
QCPAbstractPlottablemPlottable
 

Member Enumeration Documentation

◆ BracketStyle

Defines which shape is drawn at the boundaries of selected data ranges.

Some of the bracket styles further allow specifying a height and/or width, see setBracketHeight and setBracketWidth.

Enumerator
bsSquareBracket 

A square bracket is drawn.

bsHalfEllipse 

A half ellipse is drawn. The size of the ellipse is given by the bracket width/height properties.

bsEllipse 

An ellipse is drawn. The size of the ellipse is given by the bracket width/height properties.

bsPlus 

A plus is drawn.

bsUserStyle 

Start custom bracket styles at this index when subclassing and reimplementing drawBracket.

Constructor & Destructor Documentation

◆ QCPSelectionDecoratorBracket()

QCPSelectionDecoratorBracket::QCPSelectionDecoratorBracket ( )

◆ ~QCPSelectionDecoratorBracket()

virtual QCPSelectionDecoratorBracket::~QCPSelectionDecoratorBracket ( )
virtual

Member Function Documentation

◆ bracketBrush()

QBrush QCPSelectionDecoratorBracket::bracketBrush ( ) const
inline

◆ bracketHeight()

int QCPSelectionDecoratorBracket::bracketHeight ( ) const
inline

◆ bracketPen()

QPen QCPSelectionDecoratorBracket::bracketPen ( ) const
inline

◆ bracketStyle()

BracketStyle QCPSelectionDecoratorBracket::bracketStyle ( ) const
inline

◆ bracketWidth()

int QCPSelectionDecoratorBracket::bracketWidth ( ) const
inline

◆ drawBracket()

virtual void QCPSelectionDecoratorBracket::drawBracket ( QCPPainter painter,
int  direction 
) const
virtual

◆ drawDecoration()

virtual void QCPSelectionDecoratorBracket::drawDecoration ( QCPPainter painter,
QCPDataSelection  selection 
)
virtual

Reimplemented from QCPSelectionDecorator.

◆ getPixelCoordinates()

QPointF QCPSelectionDecoratorBracket::getPixelCoordinates ( const QCPPlottableInterface1D interface1d,
int  dataIndex 
) const
protected

◆ getTangentAngle()

double QCPSelectionDecoratorBracket::getTangentAngle ( const QCPPlottableInterface1D interface1d,
int  dataIndex,
int  direction 
) const
protected

◆ setBracketBrush()

void QCPSelectionDecoratorBracket::setBracketBrush ( const QBrush &  brush)

◆ setBracketHeight()

void QCPSelectionDecoratorBracket::setBracketHeight ( int  height)

◆ setBracketPen()

void QCPSelectionDecoratorBracket::setBracketPen ( const QPen &  pen)

◆ setBracketStyle()

void QCPSelectionDecoratorBracket::setBracketStyle ( BracketStyle  style)

◆ setBracketWidth()

void QCPSelectionDecoratorBracket::setBracketWidth ( int  width)

◆ setTangentAverage()

void QCPSelectionDecoratorBracket::setTangentAverage ( int  pointCount)

◆ setTangentToData()

void QCPSelectionDecoratorBracket::setTangentToData ( bool  enabled)

◆ tangentAverage()

int QCPSelectionDecoratorBracket::tangentAverage ( ) const
inline

◆ tangentToData()

bool QCPSelectionDecoratorBracket::tangentToData ( ) const
inline

Member Data Documentation

◆ mBracketBrush

QBrush QCPSelectionDecoratorBracket::mBracketBrush
protected

◆ mBracketHeight

int QCPSelectionDecoratorBracket::mBracketHeight
protected

◆ mBracketPen

QPen QCPSelectionDecoratorBracket::mBracketPen
protected

◆ mBracketStyle

BracketStyle QCPSelectionDecoratorBracket::mBracketStyle
protected

◆ mBracketWidth

int QCPSelectionDecoratorBracket::mBracketWidth
protected

◆ mTangentAverage

int QCPSelectionDecoratorBracket::mTangentAverage
protected

◆ mTangentToData

bool QCPSelectionDecoratorBracket::mTangentToData
protected

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