1 2 #ifdef USE_LAYOUT 3 else if (pkgName == "layout") 4 { 5 switch (sb->getTypeCode()) 6 { 7 case SBML_LIST_OF: 8 name = sb->getElementName(); 9 if(name == "listOfCompartmentGlyphs"){ 10 return SWIGTYPE_p_ListOfCompartmentGlyphs; 11 } 12 else if(name == "listOfAdditionalGraphicalObjects"){ 13 return SWIGTYPE_p_ListOfGraphicalObjects; 14 } 15 else if(name == "listOfLayouts"){ 16 return SWIGTYPE_p_ListOfLayouts; 17 } 18 else if(name == "listOfCurveSegments"){ 19 return SWIGTYPE_p_ListOfLineSegments; 20 } 21 else if(name == "listOfSpeciesGlyphs"){ 22 return SWIGTYPE_p_ListOfSpeciesGlyphs; 23 } 24 else if(name == "listOfSpeciesReferenceGlyphs"){ 25 return SWIGTYPE_p_ListOfSpeciesReferenceGlyphs; 26 } 27 else if(name == "listOfReactionGlyphs"){ 28 return SWIGTYPE_p_ListOfReactionGlyphs; 29 } 30 else if(name == "listOfTextGlyphs"){ 31 return SWIGTYPE_p_ListOfTextGlyphs; 32 } 33 else if(name == "listOfReferenceGlyphs"){ 34 return SWIGTYPE_p_ListOfReferenceGlyphs; 35 } 36 return SWIGTYPE_p_ListOf; 37 38 case SBML_LAYOUT_BOUNDINGBOX: 39 return SWIGTYPE_p_BoundingBox; 40 41 case SBML_LAYOUT_COMPARTMENTGLYPH: 42 return SWIGTYPE_p_CompartmentGlyph; 43 44 case SBML_LAYOUT_CUBICBEZIER: 45 return SWIGTYPE_p_CubicBezier; 46 47 case SBML_LAYOUT_CURVE: 48 return SWIGTYPE_p_Curve; 49 50 case SBML_LAYOUT_DIMENSIONS: 51 return SWIGTYPE_p_Dimensions; 52 53 case SBML_LAYOUT_GRAPHICALOBJECT: 54 return SWIGTYPE_p_GraphicalObject; 55 56 case SBML_LAYOUT_LAYOUT: 57 return SWIGTYPE_p_Layout; 58 59 case SBML_LAYOUT_LINESEGMENT: 60 return SWIGTYPE_p_LineSegment; 61 62 case SBML_LAYOUT_POINT: 63 return SWIGTYPE_p_Point; 64 65 case SBML_LAYOUT_REACTIONGLYPH: 66 return SWIGTYPE_p_ReactionGlyph; 67 68 case SBML_LAYOUT_SPECIESGLYPH: 69 return SWIGTYPE_p_SpeciesGlyph; 70 71 case SBML_LAYOUT_SPECIESREFERENCEGLYPH: 72 return SWIGTYPE_p_SpeciesReferenceGlyph; 73 74 case SBML_LAYOUT_TEXTGLYPH: 75 return SWIGTYPE_p_TextGlyph; 76 77 case SBML_LAYOUT_REFERENCEGLYPH: 78 return SWIGTYPE_p_ReferenceGlyph; 79 80 case SBML_LAYOUT_GENERALGLYPH: 81 return SWIGTYPE_p_GeneralGlyph; 82 83 default: 84 return SWIGTYPE_p_SBase; 85 } 86 } 87 #endif // USE_LAYOUT 88