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

YStaffConstraint Class Reference
[Contraints of graphical objects]

#include <YLinesConstraints.h>

List of all members.

Public Member Functions

void draw (Painter *p)
void attachMusicSymbol (MusicSymbol *)
 YStaffConstraint (double, int)
double getHeight ()
double getY ()
int getBeginMeasureSectionIndex ()
void setBeginMeasureSectionIndex (int)
void moveY (double)
double getYBaseLine ()
QString toString ()


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.


Constructor & Destructor Documentation

YStaffConstraint::YStaffConstraint double  py,
int  si
 

Build the Y part constraint

Parameters:
y sets y part


Member Function Documentation

void YStaffConstraint::attachMusicSymbol MusicSymbol ms  ) 
 

This attach a music symbol to a line this mean when the line move on the symbols attached to this line will also move of the same shift

int YStaffConstraint::getBeginMeasureSectionIndex  ) 
 

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.

double YStaffConstraint::getHeight  ) 
 

Returns:
the height of the staff

double YStaffConstraint::getY  ) 
 

the Y of the staff

double YStaffConstraint::getYBaseLine  ) 
 

Returns:
the Y base line of the staff

void YStaffConstraint::moveY double  shift  ) 
 

This displace the symbol from shift

Parameters:
shift 

void YStaffConstraint::setBeginMeasureSectionIndex int  i  ) 
 

This very special function set the first mesure section. That is represented on a 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. Only the lower measure section index will be the first

QString YStaffConstraint::toString  ) 
 

Returns:
an Y representation of a staff 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