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

SimpleMusicSymbol Class Reference
[Musical Symbols]

#include <MusicSymbol.h>

Inheritance diagram for SimpleMusicSymbol:

MusicSymbol ClefFa ClefSol CMarkSymbol EightRest Flat HalfRestSymbol LongRestSymbol Neutral NoteHeadQuarter NoteHMS QuarterRest R128Symbol R256Symbol R64Symbol Sharp SixtiethRest SmallClefFa SmallClefSol ThirtiethRest Whole WholeRestSymbol List of all members.

Public Member Functions

 SimpleMusicSymbol (int, QString n, float, float, int=-1)
virtual void draw (Painter *)
virtual CollidergetCollider ()
virtual QCoordsRect getBoundingBox ()
virtual QPoint getHotSpot ()

Protected Attributes

int nglyph
unsigned long enc

Detailed Description

This class deal with symbol only conatining one font element


Constructor & Destructor Documentation

SimpleMusicSymbol::SimpleMusicSymbol int  n,
QString  na,
float  x,
float  y,
int  c = -1
 

Constructor of a simple music symbol It is build on a parameter containinn the number of the glyph in the font

Parameters:
c is the index of the used encoding


Member Function Documentation

void SimpleMusicSymbol::draw Painter p  )  [virtual]
 

This method draw is defined but useless if we define it as pure virtual (As it should be)

Implements MusicSymbol.

Reimplemented in SmallClefSol, SmallClefFa, and NoteHMS.

QCoordsRect SimpleMusicSymbol::getBoundingBox  )  [virtual]
 

This return a bounding box. This method will be used for refreshment and by the Graphical disposers (graphicalsrc/) so two symbol doesnt collide. Two coverings bounding box suppose that the typo is not well done.

Collider * SimpleMusicSymbol::getCollider  )  [virtual]
 

Because this function is cost lots of CPU and . We override it in the most common symbol (NoteHeads)

Returns:
a collider (This will be a BBCollider)

Implements MusicSymbol.

Reimplemented in NoteHMS.

QPoint SimpleMusicSymbol::getHotSpot  )  [virtual]
 

The hot spot is the point to be considered when interacting with the mouse exchanges on Screen Mouse go true this point.

Returns:
The coordinate of the ho spot

Reimplemented from MusicSymbol.


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