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

MusicSymbolFactory Class Reference
[Layout]

#include <MusicSymbolFactory.h>

List of all members.

Public Member Functions

double getNoteY (int noteHalfLine)
void setMeasureSectionIndex (int)
MusicSymbolbuildConstraint (MeasureInserter *, double x=0, double y=0, double width=-1, double height=0)
 MusicSymbolFactory (Constraint *)
MusicSymbolbuildConstraintWithOtherAttributes (MeasureInserter *, double x=0, double y=0, double width=-1, double height=0)
MusicSymbolbuildAttribute (MeasureInserter *, double x=0, double y=0, bool small=0)
MusicSymbolbuildTimedClef (MeasureInserter *, double x, double y)
MusicSymbolbuildAlteration (PitchedNoteMusic *, double x, double y, int fifth)
MusicSymbolbuildLyric (LyricNoteMusic *, double y)
MusicSymbolbuildNote (NoteMusic *, double y=0)
MusicSymbolbuildDirection (DirectionMC *, double x, double y)
MusicSymbolbuildNoteWithOtherAttributes (NoteMusic *, double x=0, double y=0)


Detailed Description

This class is for use when we build musicSymbol. The making of a music Symbol is based on a string. This also perform the attachement of the symbols to their support :

We can retrieve the current music section being built by calling

constraint->getMeasureSectionConstraint(measureSectionIndex)

measureSection should be set to the current Measure Section we are building. by calling etMeasureSectionIndex(int).

Moves and rename this class, sing it is already a grapher component. also perform staves attachement in that class. *


Constructor & Destructor Documentation

MusicSymbolFactory::MusicSymbolFactory Constraint cst  ) 
 

The MusicSymbolFactory require the stylus constraint to be built


Member Function Documentation

MusicSymbol * MusicSymbolFactory::buildAlteration PitchedNoteMusic nm,
double  x,
double  y,
int  fifths
 

This method build the alterations, by deault all the attributes are implicit. Further developpement may help to place explicit symbols

Parameters:
y the height of the staff

MusicSymbol * MusicSymbolFactory::buildAttribute MeasureInserter note,
double  x = 0,
double  y = 0,
bool  small = 0
 

Returns:
an attribute Symbol

BEGIN CLEFS

MusicSymbol * MusicSymbolFactory::buildConstraintWithOtherAttributes MeasureInserter ,
double  x = 0,
double  y = 0,
double  width = -1,
double  height = 0
 

MusicSymbol * MusicSymbolFactory::buildLyric LyricNoteMusic lnm,
double  y
 

This method build the lyrics

Parameters:
y the height of the staff

MusicSymbol * MusicSymbolFactory::buildNote NoteMusic ,
double  y = 0
 

MusicSymbol * MusicSymbolFactory::buildNoteWithOtherAttributes NoteMusic ,
double  x = 0,
double  y = 0
 

MusicSymbol * MusicSymbolFactory::buildTimedClef MeasureInserter clef,
double  x,
double  y
 

This build a timed cle Symbol

Returns:
a music symbol representig the cle

double MusicSymbolFactory::getNoteY int  noteHalfLine  ) 
 

Returns:
the y coordinate of the note according to the current context (Staff base line)

void MusicSymbolFactory::setMeasureSectionIndex int  i  ) 
 

sets the measure section index

Parameters:
i the measure section index


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