#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 () const |
| |
| double | yPos () const |
| |
| double | width () const |
| |
| double | height () const |
| |
| double | neededSpaceWidth () const |
| |
| double | neededSpaceHeight () const |
| |
| double | neededWidth () const |
| |
| double | neededHeight () const |
| |
| double | xCenter () const |
| |
| double | yCenter () const |
| |
| const QRect | bBox () const |
| |
| bool | isVisible () const |
| |
| bool | isSelectable () const |
| |
| bool | isHScalable () const |
| |
| bool | isVScalable () const |
| |
| 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,
DrawableMidiNote,
DrawableClef,
DrawableKeySignature,
DrawableTimeSignature,
DrawableBarline,
DrawableAccidental,
DrawableSlur,
DrawableTuplet,
DrawableSyllable,
DrawableFunctionMark,
DrawableFunctionMarkSupport,
DrawableFiguredBassNumber,
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 |
| |
◆ CADrawableNote()
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::Undefined, CAPlayableLength::Whole, and CADrawable::width().
Referenced by clone().
◆ ~CADrawableNote()
| CADrawableNote::~CADrawableNote |
( |
| ) |
|
◆ clone()
◆ draw()
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().
◆ drawableAccidental()
◆ drawLedgerLines()
| bool CADrawableNote::drawLedgerLines |
( |
| ) |
|
|
inline |
◆ note()
| CANote* CADrawableNote::note |
( |
| ) |
|
|
inline |
◆ setDrawableAccidental()
◆ setDrawLedgerLines()
| void CADrawableNote::setDrawLedgerLines |
( |
bool |
ledgerLines | ) |
|
|
inline |
◆ _drawableAcc
◆ _drawLedgerLines
| bool CADrawableNote::_drawLedgerLines |
|
private |
◆ _flagDownGlyphName
| QString CADrawableNote::_flagDownGlyphName |
|
private |
◆ _flagUpGlyphName
| QString CADrawableNote::_flagUpGlyphName |
|
private |
◆ _noteHeadGlyphName
| QString CADrawableNote::_noteHeadGlyphName |
|
private |
◆ _noteHeadWidth
| double CADrawableNote::_noteHeadWidth |
|
private |
◆ _penWidth
| double CADrawableNote::_penWidth |
|
private |
◆ _shadowNote
| 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().
◆ _stemDirection
◆ _stemLength
| double CADrawableNote::_stemLength |
|
private |
◆ EIGHTH_STEM_LENGTH
| const double CADrawableNote::EIGHTH_STEM_LENGTH = 31 |
|
staticprivate |
◆ HALF_STEM_LENGTH
| const double CADrawableNote::HALF_STEM_LENGTH = 31 |
|
staticprivate |
◆ HALF_YPOS_DELTA
| const double CADrawableNote::HALF_YPOS_DELTA = 23 |
|
staticprivate |
◆ HUNDREDTWENTYEIGHTH_STEM_LENGTH
| 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().
◆ QUARTER_STEM_LENGTH
| const double CADrawableNote::QUARTER_STEM_LENGTH = 31 |
|
staticprivate |
◆ QUARTER_YPOS_DELTA
| const double CADrawableNote::QUARTER_YPOS_DELTA = 21 |
|
staticprivate |
◆ SIXTEENTH_STEM_LENGTH
| const double CADrawableNote::SIXTEENTH_STEM_LENGTH = 31 |
|
staticprivate |
◆ SIXTYFOURTH_STEM_LENGTH
| const double CADrawableNote::SIXTYFOURTH_STEM_LENGTH = 43 |
|
staticprivate |
◆ THIRTYSECOND_STEM_LENGTH
| const double CADrawableNote::THIRTYSECOND_STEM_LENGTH = 37 |
|
staticprivate |
The documentation for this class was generated from the following files:
- /home/iurt/rpmbuild/BUILD/canorus-0.7.3svn20190422/src/layout/drawablenote.h
- /home/iurt/rpmbuild/BUILD/canorus-0.7.3svn20190422/src/layout/drawablenote.cpp