Public Member Functions | |
GuidoScoreMapAdapter () | |
virtual | ~GuidoScoreMapAdapter () |
GuidoErrCode | getMap (CGRHandler gr, int pagenum, float width, float height, GuidoElementSelector sel, MapCollector &f) |
Retrieves the graphic to time mapping. | |
Time2GraphicMap | getPageMap (CGRHandler gr, int pagenum, float w, float h) |
Retrieves a guido page graphic to time mapping. | |
Time2GraphicMap | getStaffMap (CGRHandler gr, int pagenum, float w, float h, int staff) |
Retrieves a guido staff graphic to time mapping. | |
Time2GraphicMap | getVoiceMap (CGRHandler gr, int pagenum, float w, float h, int voice) |
Retrieves a guido voice graphic to time mapping. | |
Time2GraphicMap | getSystemMap (CGRHandler gr, int pagenum, float w, float h) |
Retrieves a guido system graphic to time mapping. | |
bool | getTime (const GuidoDate &date, const Time2GraphicMap map, TimeSegment &t, FloatRect &r) |
Retrieves a time segment and the associated graphic segment in a mapping. | |
bool | getPoint (float x, float y, const Time2GraphicMap map, TimeSegment &t, FloatRect &r) |
Retrieves a time segment and the associated graphic segment in a mapping. | |
GuidoErrCode | getTimeMap (CARHandler gr, TimeMapCollector &f) |
Retrieves the rolled to unrolled time mapping. |
virtual ~GuidoScoreMapAdapter | ( | ) | [virtual] |
GuidoErrCode getMap | ( | CGRHandler | gr, |
int | pagenum, | ||
float | width, | ||
float | height, | ||
GuidoElementSelector | sel, | ||
MapCollector & | f | ||
) |
Retrieves the graphic to time mapping.
gr | a Guido opaque handle to a GR structure. |
pagenum | a page index, starting from 1. |
width | the page width. |
height | the page height. |
sel | GuidoeElementSelector to filter undesired objects out. |
f | a MapCollector object that will be called for each selected element or null if error |
Time2GraphicMap getPageMap | ( | CGRHandler | gr, |
int | pagenum, | ||
float | w, | ||
float | h | ||
) |
Retrieves a guido page graphic to time mapping.
gr | a Guido opaque handle to a GR structure. |
pagenum | a page index, starting from 1. |
w | the page width. |
h | the page height. |
Time2GraphicMap getStaffMap | ( | CGRHandler | gr, |
int | pagenum, | ||
float | w, | ||
float | h, | ||
int | staff | ||
) |
Retrieves a guido staff graphic to time mapping.
gr | a Guido opaque handle to a GR structure. |
pagenum | a page index, starting from 1. |
w | the page width. |
h | the page height. |
staff | the staff index (starting from 1). |
Time2GraphicMap getVoiceMap | ( | CGRHandler | gr, |
int | pagenum, | ||
float | w, | ||
float | h, | ||
int | voice | ||
) |
Retrieves a guido voice graphic to time mapping.
gr | a Guido opaque handle to a GR structure. |
pagenum | a page index, starting from 1. |
w | the page width. |
h | the page height. |
voice | the voice index (starting from 1). |
Time2GraphicMap getSystemMap | ( | CGRHandler | gr, |
int | pagenum, | ||
float | w, | ||
float | h | ||
) |
Retrieves a guido system graphic to time mapping.
gr | a Guido opaque handle to a GR structure. |
pagenum | a page index, starting from 1. |
w | the page width. |
h | the page height. |
bool getTime | ( | const GuidoDate & | date, |
const Time2GraphicMap | map, | ||
TimeSegment & | t, | ||
FloatRect & | r | ||
) |
Retrieves a time segment and the associated graphic segment in a mapping.
date | a date used to select the container time segment |
map | a time to graphic map. |
t | on output, the time segment containing the date (note that segments are right opened) |
r | on output, the graphic segment associated to the time segment |
bool getPoint | ( | float | x, |
float | y, | ||
const Time2GraphicMap | map, | ||
TimeSegment & | t, | ||
FloatRect & | r | ||
) |
Retrieves a time segment and the associated graphic segment in a mapping.
x | a point x coordinate |
y | a point y coordinate |
map | a time to graphic map. |
r | on output, the graphic segment containing the point (note that segments are right and bottom opened) |
t | on output, the time segment associated to the graphic segment |
GuidoErrCode getTimeMap | ( | CARHandler | gr, |
TimeMapCollector & | f | ||
) |
Retrieves the rolled to unrolled time mapping.
gr | a Guido opaque handle to a GR structure. |
f | a TimeMapCollector object that will be called for each time segment or null if error. |