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

MeasureSectionConstraint Class Reference
[Layout]

#include <MeasureSectionConstraint.h>

List of all members.

Public Member Functions

 MeasureSectionConstraint ()
void middleAttach (MusicSymbol *)
void finalizeMiddleAttachements ()
void setTimeConstraint (TimeConstraint *)
TimeConstraintgetTimeConstraint ()
double getXStaffBegin ()
void setXStaffBegin (double)
double getLastXNotePos ()
void moveX (double)
void reset (double)
double getEndOfMeasureSection ()
double getBeginNoteOfMeasureSection ()
void setEndOfMeasureSection (double)
QString toString ()


Detailed Description

This class aggrate all the contraints relative to a measure section particularly


Constructor & Destructor Documentation

MeasureSectionConstraint::MeasureSectionConstraint  ) 
 

Constructor of the MeasureSectionConstraint


Member Function Documentation

void MeasureSectionConstraint::finalizeMiddleAttachements  ) 
 

This method should be called at the end of the second pass, it apply a moving of the symbols that have a middle atachements

double MeasureSectionConstraint::getBeginNoteOfMeasureSection  ) 
 

Returns:
the x coord of the beginning in the measure section.

double MeasureSectionConstraint::getEndOfMeasureSection  ) 
 

Returns:
the end of a measure section. It can be either the last X note pos + 10 or a value setted by end mesure section when drawing the last line.

double MeasureSectionConstraint::getLastXNotePos  ) 
 

Returns:
the last X pos of a note in a measure

TimeConstraint * MeasureSectionConstraint::getTimeConstraint  ) 
 

get the time constraint

double MeasureSectionConstraint::getXStaffBegin  ) 
 

Returns:
the begin x coord for the drawing of time constrained MusicSymbols i.e notes, rests etc.

void MeasureSectionConstraint::middleAttach MusicSymbol ms  ) 
 

This method attach symbol to the middle X of a measure. This is usefull for symbol like Whole Rest

void MeasureSectionConstraint::moveX double  movement  ) 
 

This move the constraint by the movement in x

Parameters:
movement : the mouvement to make the measure

void MeasureSectionConstraint::reset double  xstart  ) 
 

To call before drawing a line

Parameters:
x the line start

void MeasureSectionConstraint::setEndOfMeasureSection double  d  ) 
 

Set the end of measure section. This has no effect if this value is lower thant the last X note pos + 10

void MeasureSectionConstraint::setTimeConstraint TimeConstraint t  ) 
 

set the time constraint

void MeasureSectionConstraint::setXStaffBegin double  d  ) 
 

set the x coord for the begin x coords for the drawing of note in the staff Since there can be several staff we use the greatest of all

QString MeasureSectionConstraint::toString  ) 
 

Returns:
the string representation of the measure section constraint


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