Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes | Static Private Attributes
CADrawableNote Class Reference

#include <drawablenote.h>

Inheritance diagram for CADrawableNote:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CADrawableNote (CANote *note, CADrawableContext *drawableContext, double x, double y, bool shadowNote=false, CADrawableAccidental *acc=0)
 ~CADrawableNote ()
void draw (QPainter *p, CADrawSettings s)
CANotenote ()
CADrawableNoteclone (CADrawableContext *newContext=0)
void setDrawLedgerLines (bool ledgerLines)
bool drawLedgerLines ()
void setDrawableAccidental (CADrawableAccidental *acc)
CADrawableAccidentaldrawableAccidental ()

Private Attributes

bool _drawLedgerLines
bool _shadowNote
 Are the ledger lines drawn or not. True when ledger lines needed, False when the note is inside the staff.
CADrawableAccidental_drawableAcc
 Is the current note shadow note?
CANote::CAStemDirection _stemDirection
double _stemLength
 This value is StemUp or StemDown only, no StemPreferred or StemNeutral present. We generate this on CADrawableNote constructor.
double _noteHeadWidth
double _penWidth
QString _noteHeadGlyphName
QString _flagUpGlyphName
QString _flagDownGlyphName

Static Private Attributes

static const double HUNDREDTWENTYEIGHTH_STEM_LENGTH = 50
static const double SIXTYFOURTH_STEM_LENGTH = 43
static const double THIRTYSECOND_STEM_LENGTH = 37
static const double SIXTEENTH_STEM_LENGTH = 31
static const double EIGHTH_STEM_LENGTH = 31
static const double QUARTER_STEM_LENGTH = 31
static const double HALF_STEM_LENGTH = 31
static const double QUARTER_YPOS_DELTA = 21
static const double HALF_YPOS_DELTA = 23

Constructor & Destructor Documentation

CADrawableNote::CADrawableNote ( CANote n,
CADrawableContext drawableContext,
double  x,
double  y,
bool  shadowNote = false,
CADrawableAccidental drawableAcc = 0 
)

Member Function Documentation

CADrawableNote * CADrawableNote::clone ( CADrawableContext newContext = 0) [virtual]
void CADrawableNote::draw ( QPainter *  p,
CADrawSettings  s 
) [virtual]

References _drawableAcc.

References _drawLedgerLines.

References CADrawableMusElement::_musElement.

Referenced by CADrawableNote(), clone(), and draw().

Here is the caller graph for this function:

References _drawableAcc.

void CADrawableNote::setDrawLedgerLines ( bool  ledgerLines) [inline]

References _drawLedgerLines.


Member Data Documentation

Is the current note shadow note?

Referenced by CADrawableNote(), drawableAccidental(), and setDrawableAccidental().

Referenced by CADrawableNote(), and draw().

Referenced by CADrawableNote(), and draw().

Referenced by CADrawableNote(), and draw().

Referenced by CADrawableNote(), and draw().

double CADrawableNote::_penWidth [private]

Referenced by CADrawableNote(), and draw().

Are the ledger lines drawn or not. True when ledger lines needed, False when the note is inside the staff.

Referenced by CADrawableNote().

Referenced by CADrawableNote(), and draw().

double CADrawableNote::_stemLength [private]

This value is StemUp or StemDown only, no StemPreferred or StemNeutral present. We generate this on CADrawableNote constructor.

Referenced by CADrawableNote(), and draw().

const double CADrawableNote::EIGHTH_STEM_LENGTH = 31 [static, private]

Referenced by CADrawableNote().

const double CADrawableNote::HALF_STEM_LENGTH = 31 [static, private]

Referenced by CADrawableNote().

const double CADrawableNote::HALF_YPOS_DELTA = 23 [static, private]

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 [static, private]

Referenced by CADrawableNote().

const double CADrawableNote::QUARTER_YPOS_DELTA = 21 [static, private]
const double CADrawableNote::SIXTEENTH_STEM_LENGTH = 31 [static, private]

Referenced by CADrawableNote().

const double CADrawableNote::SIXTYFOURTH_STEM_LENGTH = 43 [static, private]

Referenced by CADrawableNote().

const double CADrawableNote::THIRTYSECOND_STEM_LENGTH = 37 [static, private]

Referenced by CADrawableNote().


The documentation for this class was generated from the following files: