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

Constraint Class Reference
[Contraints of graphical objects]

#include <Constraint.h>

List of all members.

Public Member Functions

 Constraint ()
void setBaseLine (double)
double getBaseLine ()
void beginNewLine (int i, double d)
int countMeasureSection ()
MeasureSectionConstraintgetMeasureSectionConstraint (int i)
YLinesConstraintgetYLinesConstraints (int page)
double getEndOfMeasure ()
int countWhiteSpace (int measureFirst, int measureLast)
void applyKerning (int measureFirst, int measureLast, double kerning)
void removeLastMeasureSectionConstraint ()


Detailed Description

This class is used to represent a constraint. A constaint is used by a Container to compute the possition of the various symbol. It is a sort of memory for our pen, because drawing music is a little harder than drawing simple text.


Constructor & Destructor Documentation

Constraint::Constraint  ) 
 

Constructor for a constraint


Member Function Documentation

void Constraint::applyKerning int  first,
int  last,
double  kerning
 

Apply the kerning from measure first to last (including it) Warning this method is quite difficult in algorithm you should be aware that litte modification could lead you to big trouble. see spec for explainations

void Constraint::beginNewLine int  msindex,
double  linebegin
 

Call this method if you start a new line

Parameters:
ms index the measure section index
linebegin the line beginnning

int Constraint::countMeasureSection  ) 
 

Returns:
the number of measure section Constraints

int Constraint::countWhiteSpace int  first,
int  last
 

This method count the number of white space from measure first to measure last this is usefulle for computing the kerning

Parameters:
first : the first measure section index
last : the last measure section index (including this measure)

double Constraint::getBaseLine  ) 
 

Deprecated:
Returns:
the base line of the current staff (wont work)

MeasureSectionConstraint * Constraint::getMeasureSectionConstraint int  index  ) 
 

Returns:
the measure section constraint corresponding to the measure section of index i

YLinesConstraint * Constraint::getYLinesConstraints int  pageNumber  ) 
 

Returns:
the current Y Lines Constraint
Parameters:
pageNumber : The page Supporting the YLine Constraint

void Constraint::removeLastMeasureSectionConstraint  ) 
 

remove the last mesureSectionConstraint this is used by the line when it oversize the page margin destroy not only the reference but also the object.

void Constraint::setBaseLine double  b  ) 
 

Deprecated:


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