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

YLineConstraint Class Reference
[Contraints of graphical objects]

#include <YLinesConstraints.h>

List of all members.

Public Member Functions

void draw (Painter *p)
 YLineConstraint (double, int)
double getYStaffBaseLine (int, int)
double getHeight ()
double getY ()
void setY (double)
QString toString ()
YPartConstraint * getPart (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.


Constructor & Destructor Documentation

YLineConstraint::YLineConstraint (  double  py,
int  li
) 
 

Build the Y part constraint

Parameters:
y sets yline (the top)


Member Function Documentation

double YLineConstraint::getHeight (   ) 
 

Returns:
the height of the Line

YPartConstraint * YLineConstraint::getPart (  int  partIndex  ) 
 

Warning :If you need to construct the part in an unatural order i.e. not 1,2,3,4,5... You will need to reimplement this method.

Returns:
the part of index partIndex

double YLineConstraint::getY (   ) 
 

Returns:
the top y of a line

double YLineConstraint::getYStaffBaseLine (  int  partIndex,
int  staff
) 
 

This return a staff (We know that a staff could be created at this operation so we recompute for each part following the one we took the y to a new position.

Returns:
the y of a staff plus, it perform the update after
Parameters:
partIndex the part index
staff the staff index

void YLineConstraint::setY (  double  d  ) 
 

This move all the parts in the line

QString YLineConstraint::toString (   ) 
 

Returns:
the string representation of the line 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