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

StaffSectionGr Class Reference
[Layout]

#include <StaffSection.h>

List of all members.

Public Member Functions

 StaffSectionGr (Constraint *, Container *, int staffsection, int measuresection, QString p, QList< MusicSymbol > *, int partIndex, int lineIndex, int pgnb)
float getHeight ()
void update ()
void paint ()
double y ()
double x ()
MusicSymbolbuildNote (NoteMusic *)
MusicSymbolbuildClef ()
MusicSymbolbuildTime ()
MusicSymbolbuildFifths ()
void buildStaffSymbol ()
void firstPass ()
void closeStaffSection ()


Detailed Description

StaffSection represent a staff in a MeasureMC its existence begin only at the typo stage. in the MC, the smallest set of note is a measure. Ths staff has nothing to do with the voice

It knows its indice of measureSection and staff section.

*


Constructor & Destructor Documentation

StaffSectionGr::StaffSectionGr Constraint cst1,
Container c,
int  lsection,
int  lstaff,
QString  pa,
QList< MusicSymbol > *  psymbols,
int  pI,
int  lI,
int  pgnb
 

Constructor for a staff

Parameters:
g Graphical parent
c TopContainer
s StaffSection index
m MeasureSection index
psymbols a pointer list of MS.
isFirstOfLine set to true if is at the beginning of line
pI the part Index
lI the Line index pgnb the page number remove the sioux code. *

If I call y() before I build the measure I'm sure that constraint->getYLinesConstraints()->setBeginMeasureSection(lineIndex,partIndex,staffIndex,meaureSection) will not provoque segmenttation fault. That would not be the case if I did not call y before. This is not very nice : To fix.


Member Function Documentation

MusicSymbol * StaffSectionGr::buildClef  ) 
 

This build the clef symbol, but also build the signature

MusicSymbol * StaffSectionGr::buildFifths  ) 
 

This return the fifth symbol, actual this does not perform anything because you must have called build clef before.

MusicSymbol * StaffSectionGr::buildNote NoteMusic nm  ) 
 

Close the the staff section i.e draw the vertical line at the end of the measure symbol. We pass x=0 but indeed it is not necessary to give this argument

void StaffSectionGr::buildStaffSymbol  ) 
 

Build the staff symbol after we drawn all the notes.

MusicSymbol * StaffSectionGr::buildTime  ) 
 

This build the time symbol. Sometimes there is no time symbol in an attribute that is why the att is tested.

After we draw all the attributes we can now set the position from where Time Contrained Symbols should be drawn

void StaffSectionGr::closeStaffSection  ) 
 

Close the the staff section i.e draw the vertical line at the end of the measure symbol.

float StaffSectionGr::getHeight  ) 
 

Returns:
the heigh of the staff section *

void StaffSectionGr::paint  ) 
 

if this method still draws nothing at the en of developpement remove it.

void StaffSectionGr::update  ) 
 

Those method draw the staff section *

double StaffSectionGr::x  ) 
 

Returns:
the x position of the begin of the staff (It is note the position where symbole starts to be drawn

double StaffSectionGr::y  ) 
 

Returns:
the y coordinate of the parent MeasureSectionGr


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