#if (!defined LIBSBML_HAS_PACKAGE_LAYOUT)
#error "This example requires libSBML to be built with the layout extension."
#endif
int main(int argc, char** argv)
{
model->
setId(
"TestModel_with_modifiers");
layout->
setId(
"Layout_1");
compartment->
setId(
"Yeast");
compartmentGlyph->
setId(
"CompartmentGlyph_1");
species_Gluc->
setId(
"Glucose");
glyph_Gluc->
setId(
"SpeciesGlyph_Glucose");
tGlyph->
setId(
"TextGlyph_Glucose");
species_G6P->
setId(
"Glucose_hyphen_6_hyphen_phosphate");
glyph_G6P->
setId(
"SpeciesGlyph_G6P");
tGlyph->
setId(
"TextGlyph_G6P");
species_ATP->
setId(
"ATP");
glyph_ATP->
setId(
"SpeciesGlyph_ATP");
tGlyph->
setId(
"TextGlyph_ATP");
species_ADP->
setId(
"ADP");
glyph_ADP->
setId(
"glyph_ADP");
tGlyph->
setId(
"TextGlyph_ADP");
glyph_Pi->
setId(
"SpeciesGlyph_Pi");
tGlyph->
setId(
"TextGlyph_PI");
reaction_Hexokinase->
setId(
"Hexokinase");
glyph_Hexokinase->
setId(
"glyph_Hexokinase");
Point p(&layoutns, 170, 100);
p =
Point(&layoutns, 170, 130);
reference_Gluc->
setId(
"SpeciesReference_Glucose");
speciesReferenceGlyph->
setId(
"SpeciesReferenceGlyph_Glucose");
p =
Point(&layoutns, 170, 100);
p =
Point(&layoutns, 170, 50);
reference_ATP->
setId(
"SpeciesReference_ATP");
speciesReferenceGlyph->
setId(
"SpeciesReferenceGlyph_ATP");
p =
Point(&layoutns, 170, 100);
p =
Point(&layoutns, 170, 80);
p =
Point(&layoutns, 170, 80);
p =
Point(&layoutns, 260, 80);
reference_G6P->
setId(
"SpeciesReference_G6P");
speciesReferenceGlyph->
setId(
"SpeciesReferenceGlyph_G6P_1");
p =
Point(&layoutns, 170, 130);
p =
Point(&layoutns, 170, 180);
reference_ADP->
setId(
"SpeciesReference_ADP");
speciesReferenceGlyph->
setId(
"SpeciesReferenceGlyph_ADP");
p =
Point(&layoutns, 170, 130);
p =
Point(&layoutns, 170, 150);
p =
Point(&layoutns, 170, 150);
p =
Point(&layoutns, 260, 150);
reference_G6P_2->
setId(
"ModifierSpeciesReference_G6P");
speciesReferenceGlyph->
setId(
"SpeciesReferenceGlyph_G6P_2");
p =
Point(&layoutns, 45, 200);
p =
Point(&layoutns, 0, 200);
p =
Point(&layoutns, 0, 120);
p =
Point(&layoutns, 165, 120);
reference_Pi->
setId(
"ModifierSpeciesReference_Pi");
speciesReferenceGlyph->
setId(
"SpeciesReferenceGlyph_PI");
p =
Point(&layoutns, 115, 110);
p =
Point(&layoutns, 140, 110);
p =
Point(&layoutns, 140, 110);
p =
Point(&layoutns, 165, 110);
writeSBML(document,
"layout_example3_L3.xml");
delete document;
}