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

PagesGr Class Reference
[Layout]

The PagesGr is a container class for the page mode. It contain a list of every pages in the score. More...

#include <Pages.h>

Inheritance diagram for PagesGr:

Graphical List of all members.

Public Member Functions

void setScore (ScoreMusic *s)
 PagesGr (Container *p)
void init ()
void update ()
SlurMSbuildOverStemSlur (NoteHMS *, NoteHMS *, NoteMusic *nmstart, NoteMusic *nmstop)
SlurMSbuildNoteHeadSideSlur (NoteHMS *mstart, NoteHMS *msstop, NoteMusic *nmstart, NoteMusic *nmstop)
bool computeSlurCollision (SlurMC *,SlurMS *, int,int, int)
void slurPass ()
ContainergetContainer ()
double getWidth ()
PageGrgetPage (int i)
void paint ()

Detailed Description

The PagesGr is a container class for the page mode. It contain a list of every pages in the score.

There are a page height and a page Width that are set to the default format A4 It is use full to have a coordinate system where we draw like on a printer


Member Function Documentation

SlurMS * PagesGr::buildNoteHeadSideSlur NoteHMS mstart,
NoteHMS msstop,
NoteMusic nmstart,
NoteMusic nmstop
 

bool PagesGr::computeSlurCollision SlurMC *  slurmc,
SlurMS slurms,
int  measureSectionStart,
int  measureSectionStop,
int  pageindex
 

Compute the collsion of the slur

Returns:
true if the slur collide, false otherwhise the page index is a parrameter used only for debug (to remove)

Detection of collision with notes

Here we perform the collision tests

PageGr * PagesGr::getPage int  i  ) 
 

Returns:
Page at the specified index

void PagesGr::init  ) 
 

The init fonction is called just after the setScore has been done : It perform the following actions :

  • Create the MeasureSection dimensionned to the size of the score
  • Fills these MeasureSection. For this we first create a new page.

There is a bigtrouble with the performance of the slur construction so we have to provide atake with optimisation analysis before going any further

void PagesGr::paint  )  [virtual]
 

This method draws everything in the page.

There is only one stylus in a printer any is good, 0 included !

Implements Graphical.

void PagesGr::setScore ScoreMusic s  ) 
 

set the score

Parameters:
s The score we will try to represent with this container

void PagesGr::slurPass  ) 
 

This pass build the slurs. Note : The whole collection of notes is browsed this might be clever to restrict the collection for an optimisation

void PagesGr::update  )  [virtual]
 

This method do the whole update as only one page should be displayed the update should be done on the current page Warning : Unimplemented

Reimplemented from Graphical.


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