#include <drawableslur.h>
|
| | CADrawableSlur (CASlur *slur, CADrawableContext *c, double x1, double y1, double xMid, double yMid, double x2, double y2) |
| |
| virtual | ~CADrawableSlur () |
| |
| CASlur * | slur () |
| |
| void | draw (QPainter *p, const CADrawSettings s) |
| |
| CADrawableSlur * | clone (CADrawableContext *newContext=0) |
| |
| double | x1 () |
| |
| double | y1 () |
| |
| double | xMid () |
| |
| double | yMid () |
| |
| double | x2 () |
| |
| double | y2 () |
| |
| void | setX1 (double x1) |
| |
| void | setY1 (double y1) |
| |
| void | setXMid (double xMid) |
| |
| void | setYMid (double yMid) |
| |
| void | setX2 (double x2) |
| |
| void | setY2 (double y2) |
| |
| | CADrawableMusElement (CAMusElement *musElement, CADrawableContext *drawableContext, double x, double y) |
| |
| CADrawableMusElementType | drawableMusElementType () |
| |
| CAMusElement * | musElement () |
| |
| CADrawableContext * | drawableContext () |
| |
| void | setDrawableContext (CADrawableContext *context) |
| |
| | CADrawable (double x, double y) |
| |
| virtual | ~CADrawable () |
| |
| virtual CADrawable * | clone () |
| |
| void | drawHScaleHandles (QPainter *p, const CADrawSettings s) |
| |
| void | drawVScaleHandles (QPainter *p, const CADrawSettings s) |
| |
| CADrawableType | drawableType () |
| |
| double | xPos () |
| |
| double | yPos () |
| |
| double | width () |
| |
| double | height () |
| |
| double | neededSpaceWidth () |
| |
| double | neededSpaceHeight () |
| |
| double | neededWidth () |
| |
| double | neededHeight () |
| |
| double | xCenter () |
| |
| double | yCenter () |
| |
| const QRect | bBox () |
| |
| bool | isVisible () |
| |
| bool | isSelectable () |
| |
| bool | isHScalable () |
| |
| bool | isVScalable () |
| |
| void | setXPos (double xPos) |
| |
| void | setYPos (double yPos) |
| |
| void | setWidth (double width) |
| |
| void | setHeight (double height) |
| |
| void | setNeededSpaceWidth (double width) |
| |
| void | setNeededSpaceHeight (double height) |
| |
| void | setVisible (bool v) |
| |
| void | setSelectable (bool s) |
| |
| void | setHScalable (bool s) |
| |
| void | setVScalable (bool s) |
| |
|
| enum | CADrawableMusElementType {
DrawableNote,
DrawableRest,
DrawableClef,
DrawableKeySignature,
DrawableTimeSignature,
DrawableBarline,
DrawableAccidental,
DrawableSlur,
DrawableTuplet,
DrawableSyllable,
DrawableFunctionMark,
DrawableFunctionMarkSupport,
DrawableMark
} |
| |
| enum | CADrawableType { DrawableMusElement,
DrawableContext
} |
| |
| enum | CADirection {
Undefined,
Top,
Bottom,
Left,
Right,
TopLeft,
TopRight,
BottomLeft,
BottomRight
} |
| |
| void | setDrawableMusElementType (CADrawableMusElementType t) |
| |
| void | setDrawableType (CADrawableType t) |
| |
| CADrawableMusElementType | _drawableMusElementType |
| |
| CADrawableContext * | _drawableContext |
| |
| CAMusElement * | _musElement |
| |
| bool | _selectable |
| |
| CADrawableType | _drawableType |
| |
| double | _xPos |
| |
| double | _yPos |
| |
| double | _width |
| |
| double | _height |
| |
| double | _neededSpaceWidth |
| |
| double | _neededSpaceHeight |
| |
| bool | _visible |
| |
| bool | _selectable |
| |
| bool | _hScalable |
| |
| bool | _vScalable |
| |
| static const int | SCALE_HANDLES_SIZE = 2 |
| |
| CADrawableSlur::CADrawableSlur |
( |
CASlur * |
slur, |
|
|
CADrawableContext * |
c, |
|
|
double |
x1, |
|
|
double |
y1, |
|
|
double |
xMid, |
|
|
double |
yMid, |
|
|
double |
x2, |
|
|
double |
y2 |
|
) |
| |
Copyright (c) 2006-2009, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See COPYING for details.
References CADrawableMusElement::DrawableSlur, CADrawableMusElement::setDrawableMusElementType(), CADrawable::setNeededSpaceHeight(), CADrawable::setNeededSpaceWidth(), setX1(), setX2(), setXMid(), setY1(), setY2(), setYMid(), and updateGeometry().
Referenced by clone().
| CADrawableSlur::~CADrawableSlur |
( |
| ) |
|
|
virtual |
Implements CADrawable.
References CADrawSettings::color, min(), slur(), CASlur::SlurDotted, CASlur::SlurSolid, CADrawable::width(), CADrawSettings::x, xMid(), CADrawable::xPos(), CADrawSettings::y, y1(), y2(), yMid(), and CADrawSettings::z.
| double CADrawableSlur::max |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
|
private |
Returns the maximum of all the three integers given.
Referenced by updateGeometry().
| double CADrawableSlur::min |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
|
private |
| void CADrawableSlur::setX1 |
( |
double |
x1 | ) |
|
|
inline |
| void CADrawableSlur::setX2 |
( |
double |
x2 | ) |
|
|
inline |
| void CADrawableSlur::setXMid |
( |
double |
xMid | ) |
|
|
inline |
| void CADrawableSlur::setY1 |
( |
double |
y1 | ) |
|
|
inline |
| void CADrawableSlur::setY2 |
( |
double |
y2 | ) |
|
|
inline |
| void CADrawableSlur::setYMid |
( |
double |
yMid | ) |
|
|
inline |
| CASlur* CADrawableSlur::slur |
( |
| ) |
|
|
inline |
| void CADrawableSlur::updateGeometry |
( |
| ) |
|
|
private |
References max(), min(), CADrawable::setHeight(), CADrawable::setWidth(), CADrawable::setXPos(), CADrawable::setYPos(), x1(), x2(), xMid(), CADrawable::xPos(), y1(), y2(), yMid(), and CADrawable::yPos().
Referenced by CADrawableSlur(), setX1(), setX2(), setXMid(), setY1(), setY2(), and setYMid().
| double CADrawableSlur::x1 |
( |
| ) |
|
|
inline |
| double CADrawableSlur::x2 |
( |
| ) |
|
|
inline |
| double CADrawableSlur::xMid |
( |
| ) |
|
|
inline |
| double CADrawableSlur::y1 |
( |
| ) |
|
|
inline |
| double CADrawableSlur::y2 |
( |
| ) |
|
|
inline |
| double CADrawableSlur::yMid |
( |
| ) |
|
|
inline |
| double CADrawableSlur::_x1 |
|
private |
| double CADrawableSlur::_x2 |
|
private |
| double CADrawableSlur::_xMid |
|
private |
| double CADrawableSlur::_y1 |
|
private |
| double CADrawableSlur::_y2 |
|
private |
| double CADrawableSlur::_yMid |
|
private |
The documentation for this class was generated from the following files: