A selection decorator which draws brackets around each selected data segment.
More...
|
enum | BracketStyle {
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle
} |
|
enum | BracketStyle {
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle
} |
|
enum | BracketStyle {
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle
} |
|
enum | BracketStyle {
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle
} |
|
enum | BracketStyle {
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle,
bsSquareBracket,
bsHalfEllipse,
bsEllipse,
bsPlus,
bsUserStyle
} |
|
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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) |
|
| 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) |
|
| 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) |
|
| 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) |
|
| 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) |
|
|
double | getTangentAngle (const QCPPlottableInterface1D *interface1d, int dataIndex, int direction) const |
|
QPointF | getPixelCoordinates (const QCPPlottableInterface1D *interface1d, int dataIndex) const |
|
double | getTangentAngle (const QCPPlottableInterface1D *interface1d, int dataIndex, int direction) const |
|
QPointF | getPixelCoordinates (const QCPPlottableInterface1D *interface1d, int dataIndex) const |
|
double | getTangentAngle (const QCPPlottableInterface1D *interface1d, int dataIndex, int direction) const |
|
QPointF | getPixelCoordinates (const QCPPlottableInterface1D *interface1d, int dataIndex) const |
|
double | getTangentAngle (const QCPPlottableInterface1D *interface1d, int dataIndex, int direction) const |
|
QPointF | getPixelCoordinates (const QCPPlottableInterface1D *interface1d, int dataIndex) const |
|
double | getTangentAngle (const QCPPlottableInterface1D *interface1d, int dataIndex, int direction) const |
|
QPointF | getPixelCoordinates (const QCPPlottableInterface1D *interface1d, int dataIndex) const |
|
virtual bool | registerWithPlottable (QCPAbstractPlottable *plottable) |
|
virtual bool | registerWithPlottable (QCPAbstractPlottable *plottable) |
|
virtual bool | registerWithPlottable (QCPAbstractPlottable *plottable) |
|
virtual bool | registerWithPlottable (QCPAbstractPlottable *plottable) |
|
virtual bool | registerWithPlottable (QCPAbstractPlottable *plottable) |
|
A selection decorator which draws brackets around each selected data segment.
Additionally to the regular highlighting of selected segments via color, fill and scatter style, this QCPSelectionDecorator subclass draws markers at the begin and end of each selected data segment of the plottable.
The shape of the markers can be controlled with setBracketStyle, setBracketWidth and setBracketHeight. The color/fill can be controlled with setBracketPen and setBracketBrush.
To introduce custom bracket styles, it is only necessary to sublcass QCPSelectionDecoratorBracket and reimplement drawBracket. The rest will be managed by the base class.
void QCPSelectionDecoratorBracket::drawBracket |
( |
QCPPainter * |
painter, |
|
|
int |
direction |
|
) |
| const |
|
virtual |
Draws the bracket shape with painter. The parameter direction is either -1 or 1 and indicates whether the bracket shall point to the left or the right (i.e. is a closing or opening bracket, respectively).
The passed painter already contains all transformations that are necessary to position and rotate the bracket appropriately. Painting operations can be performed as if drawing upright brackets on flat data with horizontal key axis, with (0, 0) being the center of the bracket.
If you wish to sublcass QCPSelectionDecoratorBracket in order to provide custom bracket shapes (see QCPSelectionDecoratorBracket::bsUserStyle), this is the method you should reimplement.