#include <drawableslur.h>

Public Member Functions | |
| CADrawableSlur (CASlur *slur, CADrawableContext *c, int x1, int y1, int xMid, int yMid, int x1, int y1) | |
| virtual | ~CADrawableSlur () |
| CASlur * | slur () |
| void | draw (QPainter *p, const CADrawSettings s) |
| CADrawableSlur * | clone (CADrawableContext *newContext=0) |
| int | x1 () |
| int | y1 () |
| int | xMid () |
| int | yMid () |
| int | x2 () |
| int | y2 () |
| void | setX1 (int x1) |
| void | setY1 (int y1) |
| void | setXMid (int xMid) |
| void | setYMid (int yMid) |
| void | setX2 (int x2) |
| void | setY2 (int y2) |
Private Member Functions | |
| void | updateGeometry () |
| int | min (int, int, int) |
| int | max (int, int, int) |
Private Attributes | |
| int | _x1 |
| int | _y1 |
| int | _xMid |
| int | _yMid |
| int | _x2 |
| int | _y2 |
Definition at line 16 of file drawableslur.h.
| CADrawableSlur::CADrawableSlur | ( | CASlur * | slur, | |
| CADrawableContext * | c, | |||
| int | x1, | |||
| int | y1, | |||
| int | xMid, | |||
| int | yMid, | |||
| int | x2, | |||
| int | y2 | |||
| ) |
Copyright (c) 2006-2007, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE.GPL for details.
Definition at line 11 of file drawableslur.cpp.
References CADrawableMusElement::DrawableSlur, CADrawable::height(), CADrawableMusElement::setDrawableMusElementType(), CADrawable::setNeededHeight(), CADrawable::setNeededWidth(), setX1(), setX2(), setXMid(), setY1(), setY2(), setYMid(), updateGeometry(), and CADrawable::width().
Referenced by clone().


| CADrawableSlur::~CADrawableSlur | ( | ) | [virtual] |
Definition at line 27 of file drawableslur.cpp.
| CASlur* CADrawableSlur::slur | ( | ) | [inline] |
Definition at line 21 of file drawableslur.h.
References CADrawableMusElement::_musElement.
Referenced by clone(), and draw().

| void CADrawableSlur::draw | ( | QPainter * | p, | |
| const CADrawSettings | s | |||
| ) | [virtual] |
Implements CADrawable.
Definition at line 62 of file drawableslur.cpp.
References CADrawSettings::color, min(), slur(), CASlur::SlurDotted, CASlur::SlurSolid, CADrawable::width(), CADrawSettings::x, xMid(), CADrawable::xPos(), CADrawSettings::y, y1(), y2(), yMid(), and CADrawSettings::z.

| CADrawableSlur * CADrawableSlur::clone | ( | CADrawableContext * | newContext = 0 |
) | [virtual] |
Implements CADrawableMusElement.
Definition at line 113 of file drawableslur.cpp.
References CADrawableSlur(), CADrawableMusElement::drawableContext(), slur(), CADrawable::width(), xMid(), CADrawable::xPos(), y1(), y2(), and yMid().

| int CADrawableSlur::x1 | ( | ) | [inline] |
Definition at line 26 of file drawableslur.h.
References _x1.
Referenced by updateGeometry().

| int CADrawableSlur::y1 | ( | ) | [inline] |
Definition at line 27 of file drawableslur.h.
References _y1.
Referenced by clone(), draw(), CAEngraver::reposit(), and updateGeometry().

| int CADrawableSlur::xMid | ( | ) | [inline] |
Definition at line 28 of file drawableslur.h.
References _xMid.
Referenced by clone(), draw(), and updateGeometry().

| int CADrawableSlur::yMid | ( | ) | [inline] |
Definition at line 29 of file drawableslur.h.
References _yMid.
Referenced by clone(), draw(), and updateGeometry().

| int CADrawableSlur::x2 | ( | ) | [inline] |
Definition at line 30 of file drawableslur.h.
References _x2.
Referenced by updateGeometry().

| int CADrawableSlur::y2 | ( | ) | [inline] |
Definition at line 31 of file drawableslur.h.
References _y2.
Referenced by clone(), draw(), CAEngraver::reposit(), and updateGeometry().

| void CADrawableSlur::setX1 | ( | int | x1 | ) | [inline] |
Definition at line 32 of file drawableslur.h.
References _x1, and updateGeometry().
Referenced by CADrawableSlur().


| void CADrawableSlur::setY1 | ( | int | y1 | ) | [inline] |
Definition at line 33 of file drawableslur.h.
References _y1, and updateGeometry().
Referenced by CADrawableSlur().


| void CADrawableSlur::setXMid | ( | int | xMid | ) | [inline] |
Definition at line 34 of file drawableslur.h.
References _xMid, and updateGeometry().
Referenced by CADrawableSlur(), and CAEngraver::reposit().


| void CADrawableSlur::setYMid | ( | int | yMid | ) | [inline] |
Definition at line 35 of file drawableslur.h.
References _yMid, and updateGeometry().
Referenced by CADrawableSlur(), and CAEngraver::reposit().


| void CADrawableSlur::setX2 | ( | int | x2 | ) | [inline] |
Definition at line 36 of file drawableslur.h.
References _x2, and updateGeometry().
Referenced by CADrawableSlur(), and CAEngraver::reposit().


| void CADrawableSlur::setY2 | ( | int | y2 | ) | [inline] |
Definition at line 37 of file drawableslur.h.
References _y2, and updateGeometry().
Referenced by CADrawableSlur(), and CAEngraver::reposit().


| void CADrawableSlur::updateGeometry | ( | ) | [private] |
Definition at line 30 of file drawableslur.cpp.
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().


| int CADrawableSlur::min | ( | int | x, | |
| int | y, | |||
| int | z | |||
| ) | [private] |
Returns the minimum of all the three integers given.
Definition at line 41 of file drawableslur.cpp.
Referenced by draw(), and updateGeometry().

| int CADrawableSlur::max | ( | int | x, | |
| int | y, | |||
| int | z | |||
| ) | [private] |
Returns the maximum of all the three integers given.
Definition at line 53 of file drawableslur.cpp.
Referenced by updateGeometry().

int CADrawableSlur::_x1 [private] |
int CADrawableSlur::_y1 [private] |
int CADrawableSlur::_xMid [private] |
int CADrawableSlur::_yMid [private] |
int CADrawableSlur::_x2 [private] |
int CADrawableSlur::_y2 [private] |
1.5.3