Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | Related Pages

NoteHMS Class Reference
[Musical Symbols]

#include <NoteHMS.h>

Inheritance diagram for NoteHMS:

SimpleMusicSymbol MusicSymbol HalfNoteHMS QuarterNoteHMS WholeNoteHMS List of all members.

Public Member Functions

 NoteHMS (int, QString, double, double, int)
void setExtraLine (int)
void draw (Painter *)
virtual CollidergetCollider ()
void setDot ()
void setRightStemX ()
void setLeftStemX ()
virtual double getLeftX ()
void setX (double)
double getX ()
virtual double getRightX ()
virtual double getStemX ()
void setShift (int)
virtual QString toString ()
void setStemSupport (StemSupport *)
StemSupportgetStemSupport ()

Protected Attributes

int rightStem
int extraLine
StemSupportstemSupport

Detailed Description

This is a base classe for the NoteHeads


Constructor & Destructor Documentation

NoteHMS::NoteHMS int  i,
QString  s,
double  x,
double  y,
int  encode
 

This will build the noteHMS

Parameters:
s name
x x coordinate
y y coordinate
extraline the number of extra line. 0 if none <0 if under >0 if upper
 


Member Function Documentation

void NoteHMS::draw Painter p  )  [virtual]
 

This draws the symbol and the Extra Lines if the note is over or under the staff

Reimplemented from SimpleMusicSymbol.

Collider * NoteHMS::getCollider  )  [virtual]
 

Because the computation of a Collider cost lots of CPU and mem we overide this method in the note heads because it is a very current symbol. It should appear in the metrics (After)

Reimplemented from SimpleMusicSymbol.

double NoteHMS::getLeftX  )  [virtual]
 

The note head music symbol has a particular hinting

Returns:
the left x pos of the note

double NoteHMS::getRightX  )  [virtual]
 

Returns:
the right x pos of the note

double NoteHMS::getStemX  )  [virtual]
 

generalize the use of this property in the contruction of stem instead of the multiple if.

Returns:
the x pos of the stem related to the notehead

double NoteHMS::getX  )  [virtual]
 

Returns:
x

Reimplemented from MusicSymbol.

void NoteHMS::setDot  ) 
 

Sets the note dotted

void NoteHMS::setExtraLine int  xLine  ) 
 

Sets the number of extralines

Parameters:
the xtraline it is pair if it is on the line it is impair if it is not

void NoteHMS::setLeftStemX  ) 
 

generalize the use of this property in the contruction of stem instead of the multiple if. This set the X pos of stem related to the notehead at the leftx of the note

void NoteHMS::setRightStemX  ) 
 

generalize the use of this property in the contruction of stem instead of the multiple if. This set the X pos of stem related to the notehead at the right x of the note

void NoteHMS::setShift int  s  ) 
 

When two notes are close the shift let them be be distinct.

Parameters:
s the shift -1 is for a left shift 1 is for a right shift (Not Nice to do this a the mainting time) instead we sould use the support of a note and set the note MS left Shift property.

void NoteHMS::setX double  d  )  [virtual]
 

Sets the x position. This method is overided for the collision of two notes. In this case the center point of the note moves to the left.

Reimplemented from MusicSymbol.

QString NoteHMS::toString  )  [virtual]
 

For many symbols this function should be overrided.

Returns:
a string reprentation of the MusicSymbol (For a debug purpose).

Reimplemented from MusicSymbol.


The documentation for this class was generated from the following files:
Generated on Tue Jun 1 21:13:34 2004 for Alternate Take by doxygen 1.3.6