#include <drawablenote.h>
|
| | CADrawableNote (CANote *note, CADrawableContext *drawableContext, double x, double y, bool shadowNote=false, CADrawableAccidental *acc=0) |
| |
| | ~CADrawableNote () |
| |
| void | draw (QPainter *p, CADrawSettings s) |
| |
| CANote * | note () |
| |
| CADrawableNote * | clone (CADrawableContext *newContext=0) |
| |
| void | setDrawLedgerLines (bool ledgerLines) |
| |
| bool | drawLedgerLines () |
| |
| void | setDrawableAccidental (CADrawableAccidental *acc) |
| |
| CADrawableAccidental * | drawableAccidental () |
| |
| | 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
} |
| |
| void | setDrawableMusElementType (CADrawableMusElementType t) |
| |
| CADrawableMusElementType | _drawableMusElementType |
| |
| CADrawableContext * | _drawableContext |
| |
| CAMusElement * | _musElement |
| |
| bool | _selectable |
| |
| static const int | SCALE_HANDLES_SIZE = 2 |
| |
Default constructor.
- Parameters
-
| x | coordinate represents the left border of the notehead. |
| y | coordinate represents the center of the notehead. |
- Todo:
- Emmentaler font doesn't have 128th, 64th flag is drawn instead! Need to somehow compose the 128th flag? -Matevz
References _drawableAcc, CADrawableMusElement::_drawableMusElementType, _drawLedgerLines, _flagDownGlyphName, _flagUpGlyphName, _noteHeadGlyphName, _noteHeadWidth, _penWidth, _shadowNote, _stemDirection, _stemLength, CANote::actualStemDirection(), CAPlayableLength::Breve, CAPlayableLength::dotted(), CADrawableMusElement::DrawableNote, CAPlayableLength::Eighth, EIGHTH_STEM_LENGTH, CAPlayableLength::Half, HALF_STEM_LENGTH, CADrawable::height(), CAPlayableLength::HundredTwentyEighth, HUNDREDTWENTYEIGHTH_STEM_LENGTH, CAPlayableLength::musicLength(), note(), CAPlayable::playableLength(), CAPlayableLength::Quarter, QUARTER_STEM_LENGTH, CADrawable::setHeight(), CADrawable::setWidth(), CADrawable::setXPos(), CADrawable::setYPos(), CAPlayableLength::Sixteenth, SIXTEENTH_STEM_LENGTH, CAPlayableLength::SixtyFourth, SIXTYFOURTH_STEM_LENGTH, CAPlayableLength::ThirtySecond, THIRTYSECOND_STEM_LENGTH, CAPlayableLength::Whole, and CADrawable::width().
Referenced by clone().
| CADrawableNote::~CADrawableNote |
( |
| ) |
|
Implements CADrawable.
References CADrawableMusElement::_drawableContext, _drawLedgerLines, _flagDownGlyphName, _flagUpGlyphName, _noteHeadGlyphName, _noteHeadWidth, _penWidth, _stemDirection, _stemLength, CADrawSettings::color, CAPlayableLength::dotted(), CADrawableMusElement::drawableContext(), CADrawableContext::DrawableStaff, CAPlayableLength::Eighth, CACanorus::fetaCodepoint(), CAPlayableLength::Half, CADrawable::height(), note(), CANote::notePosition(), CAPlayable::playableLength(), CANote::StemUp, CADrawSettings::worldY, CADrawSettings::x, CADrawSettings::y, CADrawable::yPos(), and CADrawSettings::z.
Referenced by CADrawableMark::draw().
| bool CADrawableNote::drawLedgerLines |
( |
| ) |
|
|
inline |
| CANote* CADrawableNote::note |
( |
| ) |
|
|
inline |
| void CADrawableNote::setDrawLedgerLines |
( |
bool |
ledgerLines | ) |
|
|
inline |
| bool CADrawableNote::_drawLedgerLines |
|
private |
| QString CADrawableNote::_flagDownGlyphName |
|
private |
| QString CADrawableNote::_flagUpGlyphName |
|
private |
| QString CADrawableNote::_noteHeadGlyphName |
|
private |
| double CADrawableNote::_noteHeadWidth |
|
private |
| double CADrawableNote::_penWidth |
|
private |
| bool CADrawableNote::_shadowNote |
|
private |
Are the ledger lines drawn or not. True when ledger lines needed, False when the note is inside the staff.
Referenced by CADrawableNote().
| double CADrawableNote::_stemLength |
|
private |
| const double CADrawableNote::EIGHTH_STEM_LENGTH = 31 |
|
staticprivate |
| const double CADrawableNote::HALF_STEM_LENGTH = 31 |
|
staticprivate |
| const double CADrawableNote::HALF_YPOS_DELTA = 23 |
|
staticprivate |
| const double CADrawableNote::HUNDREDTWENTYEIGHTH_STEM_LENGTH = 50 |
|
staticprivate |
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.
Referenced by CADrawableNote().
| const double CADrawableNote::QUARTER_STEM_LENGTH = 31 |
|
staticprivate |
| const double CADrawableNote::QUARTER_YPOS_DELTA = 21 |
|
staticprivate |
| const double CADrawableNote::SIXTEENTH_STEM_LENGTH = 31 |
|
staticprivate |
| const double CADrawableNote::SIXTYFOURTH_STEM_LENGTH = 43 |
|
staticprivate |
| const double CADrawableNote::THIRTYSECOND_STEM_LENGTH = 37 |
|
staticprivate |
The documentation for this class was generated from the following files: