GUIDOLib
1.7.7
A Music Score Rendering Engine
|
Functions | |
GuidoErrCode | init (GuidoInitDesc *desc) |
Initialises the Guido Engine. Must be called before any attempt to read a Guido file or to use the Guido Factory. More... | |
GuidoErrCode | init () |
Initialise the Guido Engine with a internal SVGSystem and SVGDevice. This system and device have embind font metrics. They are used to calculate score in environnement without font metrics like javascript. More... | |
void | shutdown () |
Guido Engine shutdown. More... | |
GuidoErrCode | ar2gmn (ARHandler ar, std::ostream &to) |
Print a Guido abstract representation to a stream formatted as gmn code. More... | |
GRHandler | ar2gr (ARHandler ar) |
Transforms a Guido abstract representation into a Guido graphic representation. The engine applies layout algorithms according to the settings given as argument. Default settings are applied. More... | |
GRHandler | ar2gr (ARHandler ar, const GuidoLayoutSettings &settings) |
Transforms a Guido abstract representation into a Guido graphic representation. The engine applies layout algorithms according to the settings given as argument. More... | |
GuidoErrCode | updateGR (GRHandler gr) |
Applies new layout settings to an existing Guido graphic representation. Default settings are applied. More... | |
GuidoErrCode | updateGR (GRHandler gr, const GuidoLayoutSettings &settings) |
Applies new layout settings to an existing Guido graphic representation. More... | |
void | freeAR (ARHandler ar) |
Releases a Guido abstract representation. This method must be called after freeGR. More... | |
void | freeGR (GRHandler gr) |
Releases a Guido graphic representation. Don't release the ARHandler refenrece in the GRHandler before release the GR. More... | |
std::string | getErrorString (GuidoErrCode errCode) |
Gives a textual description of a Guido error code. More... | |
GuidoLayoutSettings | getDefaultLayoutSettings () |
Gives the default values of the layout settings. More... | |
GuidoErrCode | showElement (GRHandler gr, int elt, bool status) |
GuidoErrCode ar2gmn | ( | ARHandler | ar, |
std::ostream & | to | ||
) |
Print a Guido abstract representation to a stream formatted as gmn code.
ar | the handler to the abstract representation. |
to | the output stream. |
Transforms a Guido abstract representation into a Guido graphic representation. The engine applies layout algorithms according to the settings given as argument. Default settings are applied.
ar | the handler to the abstract representation. |
GRHandler ar2gr | ( | ARHandler | ar, |
const GuidoLayoutSettings & | settings | ||
) |
Transforms a Guido abstract representation into a Guido graphic representation. The engine applies layout algorithms according to the settings given as argument.
ar | the handler to the abstract representation. |
settings | a pointer to the settings for the graphic layout. |
void freeAR | ( | ARHandler | ar | ) |
Releases a Guido abstract representation. This method must be called after freeGR.
ar | the handler to the abstract representation. |
void freeGR | ( | GRHandler | gr | ) |
Releases a Guido graphic representation. Don't release the ARHandler refenrece in the GRHandler before release the GR.
gr | the handler to the graphic representation. |
GuidoLayoutSettings getDefaultLayoutSettings | ( | ) |
Gives the default values of the layout settings.
std::string getErrorString | ( | GuidoErrCode | errCode | ) |
Gives a textual description of a Guido error code.
errCode | a Guido error code. |
GuidoErrCode init | ( | ) |
Initialise the Guido Engine with a internal SVGSystem and SVGDevice. This system and device have embind font metrics. They are used to calculate score in environnement without font metrics like javascript.
GuidoErrCode init | ( | GuidoInitDesc * | desc | ) |
Initialises the Guido Engine. Must be called before any attempt to read a Guido file or to use the Guido Factory.
desc | the graphic environment description. |
WARNING: the caller must ensure desc maintains a constant reference on a valid VGDevice, because Guido keeps it internally (to calculate fonts, etc.)
GuidoErrCode showElement | ( | GRHandler | gr, |
int | elt, | ||
bool | status | ||
) |
Show or hide notation elements.
gr | the handler to the graphic representation. |
elt | the target element |
status | a boolean value to show (true) or hide (false) the target element |
void shutdown | ( | ) |
Guido Engine shutdown.
Actually release the font allocated by the engine. Anyway, the fonts are release when the client application exit but the function provides control over the time of the release.
GuidoErrCode updateGR | ( | GRHandler | gr | ) |
Applies new layout settings to an existing Guido graphic representation. Default settings are applied.
gr | the handler to the graphic representation. |
GuidoErrCode updateGR | ( | GRHandler | gr, |
const GuidoLayoutSettings & | settings | ||
) |
Applies new layout settings to an existing Guido graphic representation.
gr | the handler to the graphic representation. |
settings | the settings for the graphic layout. |