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

YPartConstraint Class Reference
[Contraints of graphical objects]

#include <YLinesConstraints.h>

List of all members.

Public Member Functions

void draw (Painter *p)
bool isModified ()
 YPartConstraint (double, int)
YStaffConstraintgetStaff (int)
double getHeight ()
double getY ()
void setY (double)
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

YPartConstraint::YPartConstraint double  py,
int  pi
 

Build the Y part constraint. The state of the YPartConstraint is set to modified

Parameters:
y sets y part


Member Function Documentation

void YPartConstraint::draw Painter p  ) 
 

Method used for a debbuging purpose to let the vertical constraint be drawn

double YPartConstraint::getHeight  ) 
 

This is the sum of all the height of the staves in the part. recompute this value only if the YPartConstraint is in a modified state

Returns:
the height of a YPartConstraint.

YStaffConstraint * YPartConstraint::getStaff int  staffIndex  ) 
 

When this method is called the Part constraint goes to a state modified.

Returns:
the staff of index i, it is created if it does not exists.

double YPartConstraint::getY  ) 
 

Returns:
the top y of the part.

bool YPartConstraint::isModified  ) 
 

Returns:
true if the PartConstraint is modified

void YPartConstraint::setY double  d  ) 
 

Set the position of the PartConstraint. This moves all the children staves.

QString YPartConstraint::toString  ) 
 

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