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

YLinesConstraint Class Reference
[Contraints of graphical objects]

#include <YLinesConstraints.h>

List of all members.

Public Member Functions

double getYLine (int lineindex)
double getHeight ()
double getY ()
void draw (Painter *p)
HeadergetHeader ()
void attachMusicSymbol (int lineIndex, int partIndex, int stafIndex, MusicSymbol *)
void setBeginMeasureSectionIndex (int lineIndex, int partIndex, int stafIndex, int mesureSectionIndex)
int getBeginMeasureSectionIndex (int lineIndex, int partIndex, int stafIndex)
double getYStaffBaseLine (int lineindex, int partindex, int staffindex)
double getLastYStaffBaseLine ()
QString toString ()
 YLinesConstraint (double)

Protected Member Functions

YLineConstraintgetLine (int)


Detailed Description

This class rules the vertical disposition of the staves, parts and lines. Thought it might seems simple at first a closer look tells us we'd better make it correctly. This method should normally work in any order you call the various method. But this is very theoric the real this is that it does not


Constructor & Destructor Documentation

YLinesConstraint::YLinesConstraint double  py  ) 
 

Constructor of the lines constraint


Member Function Documentation

void YLinesConstraint::attachMusicSymbol int  lineIndex,
int  partIndex,
int  staffIndex,
MusicSymbol ms
 

This attach a music symbol to an y line

Parameters:
lineIndex 
partIndex 
staffIndex 
ms the music symbol to ba attached

int YLinesConstraint::getBeginMeasureSectionIndex int  lineIndex,
int  partIndex,
int  staffIndex
 

This very special function let us know what is the first mesure section when the staff appear on the line This is usefull if a staff starts not at the beginning of the line to let us know if we should draw attributs or not.

Parameters:
lineIndex 
partIndex 
staffIndex 
Returns:
The first measuresection index when the staff appear in the in the line

Header * YLinesConstraint::getHeader  ) 
 

Returns:
the header

double YLinesConstraint::getLastYStaffBaseLine  ) 
 

Returns:
the y of last staff in the last part in the last line. 0 if no line has been appended yet

YLineConstraint * YLinesConstraint::getLine int  lineIndex  )  [protected]
 

It is important that you never access neither a part neither a staff whithout calling this function first (Inner calls)

Returns:
the line of index
Parameters:
lineIndex The line Index

double YLinesConstraint::getY  ) 
 

Returns:
the top Y of a YLines

double YLinesConstraint::getYLine int  lineIndex  ) 
 

Parameters:
indexpart the index of the part
indexstaff the index of the staff
lineindex the index of the line
Returns:
the Y of the part number i

double YLinesConstraint::getYStaffBaseLine int  lineIndex,
int  partIndex,
int  staffIndex
 

This function use the getYLine

Parameters:
indexpart the index of the part
indexstaff the index of the staff
lineindex the index of the line
Returns:
the Y of the part number i

void YLinesConstraint::setBeginMeasureSectionIndex int  lineIndex,
int  partIndex,
int  staffIndex,
int  i
 

This very special function let us know what is the first mesure section when the staff appear on the line This is usefull if a staff starts not at the beginning of the line to let us know if we should draw attributs or not.

Parameters:
lineIndex 
partIndex 
staffIndex 
i the measuresection index

QString YLinesConstraint::toString  ) 
 

Returns:
the string representation of the lines constraint


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