Classes | |
struct | GuidoElementInfos |
class | TimeSegment |
a time segment definition and operations More... | |
class | MapCollector |
class | RectInfos |
class | TimeMapCollector |
Typedefs | |
typedef std::vector< std::pair < TimeSegment, FloatRect > > | Time2GraphicMap |
typedef std::pair< FloatRect, RectInfos > | MapElement |
Enumerations | |
enum | GuidoElementSelector { kGuidoPage, kGuidoSystem, kGuidoSystemSlice, kGuidoStaff, kGuidoBar, kGuidoEvent, kGuidoScoreElementEnd } |
enum | GuidoElementType { kNote = 1, kRest, kEmpty, kBar, kRepeatBegin, kRepeatEnd, kStaff, kSystemSlice, kSystem, kPage } |
Functions | |
std::ostream & | operator<< (std::ostream &out, const GuidoDate &d) |
std::ostream & | operator<< (std::ostream &out, const TimeSegment &s) |
GuidoErrCode | GuidoGetMap (CGRHandler gr, int pagenum, float width, float height, GuidoElementSelector sel, MapCollector &f) |
Retrieves the graphic to time mapping. | |
GuidoErrCode | GuidoGetPageMap (CGRHandler gr, int pagenum, float w, float h, Time2GraphicMap &outmap) |
Retrieves a guido page graphic to time mapping. | |
GuidoErrCode | GuidoGetStaffMap (CGRHandler gr, int pagenum, float w, float h, int staff, Time2GraphicMap &outmap) |
Retrieves a guido staff graphic to time mapping. | |
GuidoErrCode | GuidoGetVoiceMap (CGRHandler gr, int pagenum, float w, float h, int voice, Time2GraphicMap &outmap) |
Retrieves a guido voice graphic to time mapping. | |
GuidoErrCode | GuidoGetSystemMap (CGRHandler gr, int pagenum, float w, float h, Time2GraphicMap &outmap) |
Retrieves a guido system graphic to time mapping. | |
bool | GuidoGetTime (const GuidoDate &date, const Time2GraphicMap map, TimeSegment &t, FloatRect &r) |
Retrieves a time segment and the associated graphic segment in a mapping. | |
bool | GuidoGetPoint (float x, float y, const Time2GraphicMap map, TimeSegment &t, FloatRect &r) |
Retrieves a time segment and the associated graphic segment in a mapping. | |
GuidoErrCode | GuidoGetSVGMap (GRHandler gr, int pagenum, GuidoElementSelector sel, std::vector< MapElement > &outMap) __attribute__((deprecated)) |
Retrieves the graphic to time mapping corresponding to the SVG output. | |
GuidoErrCode | GuidoGetTimeMap (CARHandler gr, TimeMapCollector &f) |
Retrieves the rolled to unrolled time mapping. |
typedef std::vector<std::pair<TimeSegment, FloatRect> > Time2GraphicMap |
typedef std::pair<FloatRect, RectInfos> MapElement |
enum GuidoElementSelector |
enum GuidoElementType |
std::ostream& operator<< | ( | std::ostream & | out, |
const GuidoDate & | d | ||
) | [inline] |
References GuidoDate::denom, and GuidoDate::num.
std::ostream& operator<< | ( | std::ostream & | out, |
const TimeSegment & | s | ||
) | [inline] |
References TimeSegment::print().
GuidoErrCode GuidoGetMap | ( | 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 | GuidoElementSelector to filter undesired objects out. |
f | a MapCollector object that will be called for each selected element. |
GuidoErrCode GuidoGetPageMap | ( | CGRHandler | gr, |
int | pagenum, | ||
float | w, | ||
float | h, | ||
Time2GraphicMap & | outmap | ||
) |
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. |
outmap | contains the mapping on output. |
GuidoErrCode GuidoGetStaffMap | ( | CGRHandler | gr, |
int | pagenum, | ||
float | w, | ||
float | h, | ||
int | staff, | ||
Time2GraphicMap & | outmap | ||
) |
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). |
outmap | contains the mapping on output. |
GuidoErrCode GuidoGetVoiceMap | ( | CGRHandler | gr, |
int | pagenum, | ||
float | w, | ||
float | h, | ||
int | voice, | ||
Time2GraphicMap & | outmap | ||
) |
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). |
outmap | contains the mapping on output. |
GuidoErrCode GuidoGetSystemMap | ( | CGRHandler | gr, |
int | pagenum, | ||
float | w, | ||
float | h, | ||
Time2GraphicMap & | outmap | ||
) |
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. |
outmap | contains the mapping on output. |
bool GuidoGetTime | ( | 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 GuidoGetPoint | ( | 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 GuidoGetSVGMap | ( | GRHandler | gr, |
int | pagenum, | ||
GuidoElementSelector | sel, | ||
std::vector< MapElement > & | outMap | ||
) |
Retrieves the graphic to time mapping corresponding to the SVG output.
gr | a Guido opaque handle to a GR structure. |
pagenum | a page index, starting from 1. |
sel | GuidoElementSelector to filter undesired objects out. |
outMap | on output: a vector containing the map elements |
GuidoErrCode GuidoGetTimeMap | ( | 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. |